#ledevfoufoufou

1 messages · Page 1 of 1 (latest)

white ruinBOT
#

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.

ocean tiger
#

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.

#

Then you can update the total amount in your UI.

hidden flicker
#

ok but my amount is generated by subscriptions->create and clientSecret

#

I can modify maybe the current paymentIntent ?

ocean tiger
#

You don't need to, it will update by itself when you update the Subscription object.

hidden flicker
#

This is not the case, he does not take the correct amount from the first payment

ocean tiger
#

Could you please share the Subscription ID?

hidden flicker
#

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

ocean tiger
#

What do you mean by "the first invoice is false and the next invoice is true"?

hidden flicker
#

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

ocean tiger
hidden flicker
#

thanks I will try this