#Stone.D

1 messages · Page 1 of 1 (latest)

median basalt
#

You should bring back customer online and collect their authorization using handleNextAction on stripe.js

void trout
#

Is there handle action on Native app?

median basalt
winged finch
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

winged finch
#

Hi, About subscription sub_1LaEaDIXF5VHSVPptSX8qjJy,
At the beginning, I successfully purchased the subscription of the $7 monthly package, and then changed the payment method to 3DS credit card payment method, and then upgraded the current package to the annual package, but after the upgrade, the deduction failed because there was no 3DS process, and then I changed the payment method to the correct payment method way, try the same upgrade operation again, com.stripe.model.Subscription vo = pricingService.updateStripeSubscription returns vo normal, but there is no webhook.
What is there without webhook?

void trout
#

63AB2DAA-0003 Should be found

#

63AB2DAA-0002 is the first upgrade operation, the result is a failure

#

63AB2DAA-0003 should not be displayed, but not seen

winged finch
#

Sorry, I don't know what any of that means. Displayed but not seen?

void trout
#

If you change the available credit card, the subsequent payment should be successful, but it is not successful, and no record is seen

winged finch
#

Can you share the in_xxx ID for 63AB2DAA-0003?

#

That's an invoice number, I can't look it up

void trout
#

63AB2DAA-0003 is just a hypothetical value, my call to com.stripe.model.Subscription vo = pricingService.updateStripeSubscription should yield 63AB2DAA-0003, but it didn't; that's the problem

winged finch
#

Is this the Subscription you're trying to update? sub_1LaEaDIXF5VHSVPptSX8qjJy

void trout
#

yes

winged finch
void trout
#

Yes

#

The first upgrade using a 3DS credit card upgrade failed because payment_action_required was not processed. Then change to another test credit card: 4242424242424242 To test the upgrade, call com.stripe.model.Subscription subscription
= stripeSubscription.update(subscriptionUpdateParamsBuilder.build());
After that, there is no upgrade.

winged finch
#

That won't generate a new Invoice, which I guess is what you're expecting?

void trout
#

How should I handle this scenario on my service code?

south socket
#

what scenario exactly?

void trout
#

Subscription scenario:

  1. The user subscribes to the $7 monthly package with a 3DS credit card, and uses the checkout session to pay
  2. Upgrade to the $96 annual package, billed by proration; failed to process invoice.payment_action_required hook
  3. The user changes the test card whose payment method is 42424242424242, and tries step 2 again.
    What I hope is a successful upgrade with webhook event invoice.paid.
south socket
#

cool, so you changed the card. Did you try to pay the invoice after changing it?

void trout
#

Yes, try step 2 to upgrade to different peroid plan.

#

I think that this operation will result in an immediate charge.

south socket
#

yes, changing from e.g a monthly plan to a yearly plan will trigger an immediate invoice.

void trout
#

But i didn't get any webhook event.

south socket
#

not sure what you mean.

void trout
#

in step 3

south socket
#

what's the request ID req_xxx corresponding to the update call that code made?

void trout
#

req_Or4oA3SSJ5rrde

south socket
#

ok that is the request corresponding to "The user changes the test card whose payment method is 42424242424242"

#

that change does not generate any invoice.

south socket
#

just changing the PaymentMethod does nothing. You'd have to try to pay the invoice again(https://stripe.com/docs/api/invoices/pay) after changing the payment method if you want a new attempt and a possible invoice.paid event. I think my colleague explained that earlier.

void trout
#

ok, let use api check again.

#

later.

#

I will use a new thread. please close this thread.