#bhanu365

1 messages · Page 1 of 1 (latest)

shell spadeBOT
silent sparrow
#

I have tested with new customer as well but getting same issue

#

in_1M4tDEFmM52WOkSoLW38ZMlM

tawny swift
#

Hi there, did you pass in the coupon when you create the subscription?

silent sparrow
#

Yes but it's applied on upcoming invoice not the purchase one

#

As you can see in the screenshot

tawny swift
silent sparrow
#

I have used the coupon on subscription update

#

Because we are validating the coupon code on our side

#

Then that subscription is paid using the payment element

#

Like this

tawny swift
#

You applied the coupon after the first invoice, and that's why it's only effective in the upcoming invoice.

silent sparrow
#

Can I update the coupon in the subscription that I selected before the invoice is paid?

silent sparrow
# silent sparrow Like this

When a customer applies the coupon code in the input field and do validate it then we are calling the stripe request of subscription update.

\Stripe\Subscription::update(
$this->temp_subscription_id,
[
'coupon' => $this->voucher->voucher_code,
]
);

tawny swift
silent sparrow
#

sub_1M4tDDFmM52WOkSopAk0jU4m

tawny swift
#

Is this a question?

silent sparrow
#

Still same issue

#

is it correct?

#

the coupon applies

tawny swift
#

And that's why it's not applied to the first invoice.