#hexiaolong
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
existing method of listening for URL parameters
Not sure what you mean by this
Our current method for obtaining payment results is to retrieve the payment result by calling stripe.retrievePaymentIntent after obtaining the payment_intent_client_secret parameter from the redirect URL.
It's best if you use webhooks for this, as some payment methods might take longer to succeed: https://stripe.com/docs/webhooks
Firstly, are you suggesting that the method of listening for redirects needs to be modified or that the method of receiving asynchronous results from stripe.confirmPayment needs to be modified? Secondly, if we only consider the three payment methods currently integrated - bank card payments, Alipay payments, and WeChat Pay - can we meet our requirements without using webhooks?
i use @stripe/react-stripe-js,PaymentElement,paymentIntent
I don't know if anything needs to be modified because I don't know how your integration looks like right now.
Using client secret to show a success message is sufficient, but for business logic (e.g. dispatching orders) I strongly advice to use webhooks.
Our product is a subscription service that takes effect immediately upon successful payment. Is dispatching orders necessary in this case?
"subscription ... that takes effect" is business logic. It's best to use webhooks for that.
Through your description, I understand the stripe is currently in use. The retrievePaymentIntent way for payment status is not the best solution, including through stripe. ConfirmPayment access as a result, The best solution is to use webhooks, but is it clear that the first two methods are also available?