Stripe payments in one minute
0:00 Stripe payments
0:02 The Stripe payment method lets your shoppers pay by card, wallet or bank payment through your own Stripe account.
0:09 At checkout, your shopper chooses Stripe as the payment method.
0:14 When they confirm the order, they pay on a secure page hosted by Stripe. It shows their items and total, and the ways to pay you have turned on in Stripe.
0:24 After paying, they come back to your storefront and the order is placed.
0:29 In your admin area, the order shows its payment status, and you can capture and refund from the order.
0:36 In Stripe, each payment can carry details such as your order number, so payouts are easy to match to orders.
0:44 You connect your own Stripe account with its API keys and a webhook, then choose when payments are captured. The lessons on this page take you through each step.
Connect Stripe to your storefront
0:00 Connect Stripe to your storefront
0:03 You'll need a Stripe account. Start with its sandbox keys, so you can test before you take real payments.
0:10 In the Stripe Dashboard, open the API keys page. Sandbox and live mode each have a publishable key and a secret key. Keep the secret key private.
0:20 In your admin area, go to Configuration, then Payment Methods, and click Configure on the Stripe row.
0:27 Paste your sandbox keys into the two test key fields, and tick Enable Test Mode.
0:34 Your live keys go in the two production fields. They're used when test mode is off.
0:40 The blue panel at the top of the page shows your storefront's webhook address. Copy it.
0:46 In Stripe, open Workbench, then Webhooks, and click Add destination.
0:51 Choose Your account as the event destination scope.
0:56 Choose Snapshot as the payload style, not Thin, and leave the API version as Stripe suggests.
1:03 Select the six events shown here. They're also listed in the webhook lesson on this page.
1:09 Choose Webhook endpoint as the destination type.
1:13 Give the destination a name, paste your webhook address, and click Create destination.
1:19 On the new destination, reveal the signing secret and copy it.
1:24 Back in your admin area, paste it into Webhook signing secret.
1:29 Choose when payments are captured. The capture mode lesson explains each option.
1:35 Click Save.
1:37 Finally, in Payment Methods, click Edit on the Stripe row, tick Is active, and click Update.
1:44 Next, test your setup with Stripe's test cards. When you go live, add your live keys and a live webhook with its own signing secret.
Test your Stripe setup
0:00 Test your Stripe setup
0:02 With your sandbox keys entered and test mode on, you can place test orders with Stripe's test cards. No real money moves.
0:11 Check out on your storefront and choose Stripe. While you're testing, Stripe's page shows a Sandbox badge.
0:18 The test card ending in 0002 is always declined. Your shopper sees the error and can try another card. With the On Order Placement capture mode used here, no order is created for a declined attempt.
0:32 The test card ending in 3220 asks for a 3D Secure check. On this test page, click Complete. In live mode, your shopper's bank does the check instead.
0:43 Your shopper comes back to your storefront, and the order is placed.
0:48 In your admin area, the order notes show the Stripe capture succeeded and the order was marked as paid.
0:55 In Stripe, still in your sandbox, the payment shows as Succeeded.
1:00 Open the payment to see each step: the declined card, the 3D Secure check, the authorisation and the capture.
1:08 On your webhook destination, Event deliveries shows each event delivered with 200 OK.
1:15 When your tests pass, add your live keys and a live webhook, untick Enable Test Mode, and place a small real order to check.
Capture and refund Stripe payments
0:00 Capture and refund Stripe payments
0:03 You can capture and refund Stripe payments from the order in your admin area.
0:09 With the Manually capture mode, your shopper's payment is authorised but not taken. They see Payment was authorized.
0:16 In Stripe, the payment shows as Uncaptured. The money is held on the card.
0:22 On the order, click Capture to take the full amount, or Void to release it. Card authorisations usually expire after seven days, so capture before then.
0:32 Once captured, the order is paid, and Stripe shows the payment as Succeeded.
0:38 To refund, open the order and click Refund, or Partial refund for part of the amount. The offline buttons only mark the order, and send nothing to Stripe.
0:49 The order notes show the Stripe refund succeeded, and the order is marked as refunded.
0:55 In Stripe, the payment shows as Refunded. It can take a few days for the money to reach your shopper's bank account.
1:03 Cancelling an order doesn't refund it, so refund first. If you refund in the Stripe Dashboard instead, the order is updated through the webhook.
No lines in the transcript match your search.