Skip to main content

Check a payment

Look a payment intent up by its intent_secret, which you got when you created it. Do this on your server before you deliver an order, if you’re not using webhooks.
You get the payment intent back, with its status, amount, currency, metadata, link and customer.
Check amount as well as status. That way you know the customer paid the right amount for the right order.

List payment intents

Use limit and offset to page through. meta.total is how many there are in all.

Cancel a payment intent

Cancel an intent that should no longer be paid, for example when the customer empties their cart or the item sells out. A cancelled intent can’t be paid.
The intent’s status becomes cancelled and you get a payment_intent.cancelled webhook.