#zard-afterpay
1 messages · Page 1 of 1 (latest)
hello @timid hearth! how are you integrating afterpay into your website? is it using Stripe Checkout : https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment?platform=checkout or a customer payment form : https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment?platform=web ?
customer payment form
When the customer is redirected back, the payment_intent_client_secret is included in the query parameters. You can use the publishable key to query for the PaymentIntent status: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
https://stripe.com/docs/api/payment_intents/retrieve
But in general, you really should use webhooks to perform any important post payment actions. The user may for example close the browser and not return to your site.
thanks for your advice, I haven't tried webhooks, our web is built by .net framework ,it seems it needs .net core to bulid.