#ledevfoufoufou
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ledevfoufoufou, 21 hours ago, 21 messages
before I use : $stripe->subscriptions->update(
subscription_id,
['coupon' => "$coupon"]
);
Hi, let me help you with this.
Elements don't support coupons. You just need to update the total amount.
... unless you use subscription, sorry.
You can update the Subscription via API on the backend to add a coupon: https://stripe.com/docs/api/subscriptions/update#update_subscription-coupon
Then you can update the total amount in your UI.
ok but my amount is generated by subscriptions->create and clientSecret
I can modify maybe the current paymentIntent ?
You don't need to, it will update by itself when you update the Subscription object.
This is not the case, he does not take the correct amount from the first payment
Could you please share the Subscription ID?
sub_1O8LtuJsUJztFB3FcYP4IoNA
may update the lastest invoice ?
the initial amount is 18.50 with free-period coupon, and when I add an another coupon (abompro), the amount stay at 18.50 and no 27.75
The new coupon is added on subscription but the first invoice is false
another finalized subscription_id : sub_1O8LOGJsUJztFB3FfZ46NM0Z
the first invoice is false and the next invoice is true
What do you mean by "the first invoice is false and the next invoice is true"?
the amount of first invoice is 18.50 (subscription with free-period coupon) this is the initial amount when I create elements.
When I add coupon, it is applied to the second invoice, not the first
I understand. Can you try adding a coupon to the Invoice too? https://stripe.com/docs/api/invoices/update#update_invoice-discounts-coupon
thanks I will try this