#Suren

1 messages · Page 1 of 1 (latest)

thorny compassBOT
torpid lodge
#

Hi there!

#

What's your question?

celest cipher
#

I'd like update subscription or create subscription through card but when i try it it not working

torpid lodge
#

I'd like update subscription or create subscription through card
You already have a card PaymentMethod saved in Stripe that you want to use for the subscription? Or you want to ask the customer to entier their card details?

celest cipher
#

Yes customer already have saved card and I provided that id when customer trying create or update subscription but it returned client_secret id

torpid lodge
#

Can you share the request ID where you saw that issue?

celest cipher
#

Yes I can, of course

#

sub_1MJCVnBfTh1Z0SMkh5S8GDuo

#

this is last subscription id when i try update subscription

#

via payment method

torpid lodge
#

It seems that it worked, now the default payment method for that subscription is pm_1MFCHgBfTh1Z0SMkSbgV5AkH. So what is the issue?

celest cipher
#

I don't know, now I also try it and it working, but then it not worked

#

I don't know, maybe I try it with another customer

torpid lodge
#

but then it not worked
Can you share the request ID (req_xxx) where it didn't work?

celest cipher
#

where I can get req id ?

torpid lodge
celest cipher
#

req_yNg6ZNASSkcfeT

torpid lodge
#

This request worked. What is the issue?

#

The subscription was correctly updated to use the new PaymentMethod.

celest cipher
#

This is returned me client secret id

#

Why?

torpid lodge
#

The request succeed, and the default payment method was updated. So next time a new invoice is created, the new payment method will be used.

#

Why getting a client secret ID an issue?

celest cipher
#

I simply thinking when I get client secret it should be used with another method

torpid lodge
#

What your API request is doing: changing the default payment method of the subscription, nothing else.
So this has no direct impact on the existing invoice and client secret. Is your goal to pay the existing invoice?

celest cipher
#

I understand but why don't works webhook ?

torpid lodge
#

What do you mean? What doesn't work?

celest cipher
#

when I pay with without linked card so webhook works

#

but it isn't working when I pay with linked card

#

not working subscription.update

torpid lodge
#

So when you updated the subscription, you were expecting to recieve a webhook event? Which one?

celest cipher
#

I'd like to get subscription.update! because when I used pay without linked card I recieve a webhook subscription.update

torpid lodge
#

If you update the default payment method of a subscription, you should receive a subscription.updated event.

#

Can you share an example of a request ID where you didn't recieve that event?

celest cipher
#

req_EbDsjmYQzKRFhb

torpid lodge
#

This is a request to create a brand new subscripton, so the event you get is customer.subscription.created

celest cipher
#

can I check immediately if the payment was successfully ?

#

without webhook ?

#

but when I paid with payment method status subscription is incomplete

#

req_wCuY2YtUcbj9YZ

torpid lodge
#

The corresponding PaymentIntent requires confirmation to go through 3DS, that's why the subscription is complete

celest cipher
#

can I off 3DS ?

torpid lodge
#

No, it's the bank that may require 3DS. So your integration needs to handle this case.

celest cipher
#

how can I test that case

#

?

#

because now I used testing card stripe

#

is it possible

#

because actually payment wasn't successful

#

maybe client_secret needed me for activation 3DS ?

torpid lodge
#

Can we take a step back, and can you explain to me what are you trying to do?
You want to create a brand new subscription? And do you also want to collect the card payments at the same time, or you already had that stored previously?

celest cipher
#

Yes I'd like used payment with linked card for create or update subscription

#

but I'd like to know how to testing it ? how attache phone number to ***42424 testing card stripe?

torpid lodge
#

And then you'll see a popup like this for test cards: