#hexiaolong

1 messages · Page 1 of 1 (latest)

lime lilyBOT
rich latch
#

Hi! Let me help you with this.

#

existing method of listening for URL parameters

#

Not sure what you mean by this

tough willow
# rich latch Hi! Let me help you with 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.

rich latch
tough willow
#

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

rich latch
#

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.

tough willow
lime lilyBOT
rich latch
#

"subscription ... that takes effect" is business logic. It's best to use webhooks for that.

tough willow
candid elbow
#

👋 stepping in

#

Yep so if you want to show the customer a success page then you would use retrievePaymentIntent to immediately get the info