Stripe Payments interview questions

25 questions from the Stripe Payments course, each with the correct answer and an explanation. Try to answer before you open the answer.

Payments Foundations

1. Which stage reserves funds on the card without taking them yet?

  1. Payout
  2. Settlement
  3. Authorisation
  4. Reconciliation
Show answer

Answer: Authorisation

The issuer approves and holds the amount; capture actually takes it. Uncaptured card authorisations expire after a limited window, so check the docs for the exact limits.

Lesson: How Online Card Payments Work

2. Which key is safe to include in browser JavaScript?

  1. The publishable key (pk_test_... or pk_live_...)
  2. The secret key (sk_live_...)
  3. A restricted key with write access
  4. The webhook signing secret (whsec_...)
Show answer

Answer: The publishable key (pk_test_... or pk_live_...)

Publishable keys are designed to be public; everything else stays on the server.

Lesson: Accounts, Modes and API Keys

3. Which object tracks a single payment from creation to success?

  1. Customer
  2. Product
  3. Price
  4. PaymentIntent
Show answer

Answer: PaymentIntent

A PaymentIntent moves through statuses until it succeeds or is canceled.

Lesson: The Core Stripe Objects

Accepting Payments

4. Where should you send the customer after creating a Checkout Session?

  1. To your success_url immediately
  2. To the session's url
  3. To the Stripe Dashboard
  4. To a page that asks for the card number on your server
Show answer

Answer: To the session's url

Stripe hosts the payment page at session.url.

Lesson: Stripe Checkout

5. What does the server send to the browser so it can confirm a PaymentIntent?

  1. The secret API key
  2. The PaymentIntent's client_secret
  3. The raw card number
  4. The webhook signing secret
Show answer

Answer: The PaymentIntent's client_secret

The client secret is scoped to a single PaymentIntent.

Lesson: Payment Element and PaymentIntents

6. Which option needs no code at all to start accepting payments?

  1. Stripe Connect custom accounts
  2. The Payment Element
  3. A custom PaymentIntent flow
  4. Payment Links created in the Dashboard
Show answer

Answer: Payment Links created in the Dashboard

Payment Links can be made entirely in the Dashboard.

Lesson: Payment Links and Choosing an Option

Webhooks and Fulfilment

7. Why should order fulfilment happen in a webhook handler rather than on the success page?

  1. The customer may never reach the success page, and some payments complete later
  2. Webhooks are faster than redirects in every case
  3. Success pages cannot read query strings
  4. Stripe forbids success pages
Show answer

Answer: The customer may never reach the success page, and some payments complete later

Events arrive even if the browser closes, and they cover asynchronous payment methods.

Lesson: Why Fulfil From Webhooks

8. What does constructEvent need in order to verify a webhook?

  1. Only the event ID
  2. The parsed JSON body and the publishable key
  3. The raw request body, the Stripe-Signature header and the endpoint secret
  4. The secret API key and the customer ID
Show answer

Answer: The raw request body, the Stripe-Signature header and the endpoint secret

The signature is computed over the exact raw payload.

Lesson: Verifying Webhook Signatures

9. Your handler receives the same event ID twice. What should it do?

  1. Return 500 so Stripe stops sending
  2. Fulfil the order a second time
  3. Recognise it as already processed and return 2xx without fulfilling again
  4. Delete the webhook endpoint
Show answer

Answer: Recognise it as already processed and return 2xx without fulfilling again

Deliveries are at least once, so duplicates are normal.

Lesson: Retries, Idempotent Handling and the CLI

Authentication and Payment Methods

10. Which PaymentIntent status means the customer must complete an extra step such as 3D Secure?

  1. requires_action
  2. requires_capture
  3. succeeded
  4. canceled
Show answer

Answer: requires_action

Stripe.js handles the next action when you confirm on the client.

Lesson: Strong Customer Authentication and 3D Secure

11. Which object saves a payment method for later without charging it now?

  1. Price
  2. Refund
  3. Payout
  4. SetupIntent
Show answer

Answer: SetupIntent

SetupIntents collect and authenticate payment details for future use.

Lesson: Saving Cards and Off-Session Payments

12. What is the main benefit of dynamic payment methods?

  1. Card data is stored on your server
  2. Eligible methods are shown per customer without changing code
  3. Payments never need webhooks
  4. Fees are waived for local methods
Show answer

Answer: Eligible methods are shown per customer without changing code

Methods are managed in the Dashboard and filtered by eligibility.

Lesson: Local and Dynamic Payment Methods

Subscriptions and Billing

13. What does Stripe generate at the start of each billing period of a subscription?

  1. A new Product
  2. An Invoice that it then tries to pay
  3. A new Customer
  4. A Payment Link
Show answer

Answer: An Invoice that it then tries to pay

Subscriptions bill through invoices.

Lesson: Recurring Prices and Subscriptions

14. A renewal payment fails and Stripe is retrying. What status does the subscription usually have?

  1. active
  2. trialing
  3. incomplete_expired
  4. past_due
Show answer

Answer: past_due

past_due signals a failed renewal under retry.

Lesson: Subscription Statuses and Webhooks

15. What does proration do when a customer upgrades mid-period?

  1. Credits unused time on the old price and charges the remaining time on the new price
  2. Refunds the whole previous invoice
  3. Waits until next year to apply the change
  4. Creates a second subscription
Show answer

Answer: Credits unused time on the old price and charges the remaining time on the new price

Proration keeps billing fair across mid-period changes.

Lesson: Customer Portal, Upgrades and Proration

Refunds, Disputes and Connect

16. How do you issue a partial refund?

  1. Delete the PaymentIntent
  2. Cancel the Customer
  3. Create a Refund with an amount smaller than the original payment
  4. Edit the Price to a lower amount
Show answer

Answer: Create a Refund with an amount smaller than the original payment

The amount parameter controls how much is returned.

Lesson: Refunds and Partial Refunds

17. Which event tells you a customer has opened a dispute?

  1. invoice.paid
  2. payment_intent.created
  3. charge.dispute.created
  4. customer.created
Show answer

Answer: charge.dispute.created

Act before the evidence deadline.

Lesson: Disputes and Chargebacks

18. In a destination charge, how does the platform keep its cut?

  1. With application_fee_amount on the payment
  2. By refunding the seller
  3. By creating a separate subscription
  4. By changing the payout schedule
Show answer

Answer: With application_fee_amount on the payment

The application fee stays with the platform; the rest is transferred.

Lesson: Balances, Payouts and Stripe Connect

Reliability and Correctness

19. What happens when you repeat a create request with the same idempotency key and parameters?

  1. Stripe deletes the original object
  2. Stripe creates a second object
  3. Stripe always returns an error
  4. Stripe returns the result of the original request
Show answer

Answer: Stripe returns the result of the original request

That is what makes retries safe.

Lesson: Idempotency Keys

20. How do you represent 25.50 USD in a Stripe amount field?

  1. 25.50
  2. 2550
  3. 25
  4. 255
Show answer

Answer: 2550

USD amounts are in cents.

Lesson: Amounts, Currencies and Metadata

21. Which error should NOT be retried automatically with the same card?

  1. A connection error
  2. A card error such as a decline
  3. A rate limit error
  4. A temporary API error
Show answer

Answer: A card error such as a decline

Declines need a different payment method or customer action.

Lesson: Error Handling and Retries

Going to Production

22. Why does using the Payment Element reduce your PCI scope?

  1. It disables 3D Secure
  2. It encrypts data with your secret key
  3. It stores card numbers in your database securely
  4. Card details go directly to Stripe and never touch your servers
Show answer

Answer: Card details go directly to Stripe and never touch your servers

Your servers only handle tokens and object IDs.

Lesson: Security and PCI Scope

23. After switching to live keys, why do webhooks still not arrive?

  1. A live-mode webhook endpoint with its own secret has not been created
  2. Live mode does not support webhooks
  3. Webhooks only work with publishable keys
  4. Radar blocks all webhooks
Show answer

Answer: A live-mode webhook endpoint with its own secret has not been created

Test and live endpoints are configured separately.

Lesson: The Go-Live Checklist

24. What do test clocks let you do?

  1. Change the API version
  2. Speed up live payouts
  3. Advance simulated time to test subscription billing quickly
  4. Bypass 3D Secure in live mode
Show answer

Answer: Advance simulated time to test subscription billing quickly

Trials, renewals and retries can be tested in minutes.

Lesson: Testing Strategy

25. Which item belongs on a Stripe production checklist?

  1. Amounts are calculated in the browser
  2. Secret keys are embedded in the mobile app
  3. Webhook signatures are verified and duplicate events are ignored
  4. Fulfilment happens on the success page only
Show answer

Answer: Webhook signatures are verified and duplicate events are ignored

Verified, idempotent webhooks are the backbone of a reliable integration.

Lesson: A Stripe Integration Checklist

← Back to the course