#zendron

1 messages ยท Page 1 of 1 (latest)

north isleBOT
tawdry vapor
prime night
#

That was EXACTLY what I was looking for. I really appreciate your quick support

#

Thank you very much, have a great day! :)

tawdry vapor
#

NP! ๐Ÿ™‚ Happy to help

north isleBOT
prime night
#

Oh and I do have one more question: Is it possible to use Coupons with the react native stripe sdk? Or rather: How would you suggest on how to implement coupons?

tawdry vapor
#

Coupons aren't something PaymentSheet support. So what you can do is build your own text input in your checkout flow, collect promo/coupon and apply it when you create subscription server-side

prime night
#

I see, how would I redeem this coupon in conjunction with the payment intent?

tawdry vapor
#

You can't update the PaymentIntent since its linked to the invoice (which has been finalized already)
You'd need to collect the coupon/promo before you create subscription server-side

prime night
#

So basically the payment flow would look like this:

  1. Create a subscription
  2. Collect the coupon and redeem it on the created subscription
  3. Create a payment intent
  4. Collect the payment information to pay for the subcription

Is that correct or am I misunderstanding something?

tawdry vapor
#

so the flow would look something like,

  1. Collect the coupon/promo code
  2. Create a subscription with the coupon/promo code (if any)
  3. Use the PaymentIntent created by the subscription to collect payment method information with PaymentSheet
#

The client-secret created by the subscription creation in the previous screenshot is what you'd set in initPaymentSheet(...)

#

does that clarify? @prime night