#hongda_44496

1 messages · Page 1 of 1 (latest)

wet inletBOT
timid bronze
#

hello! is there a reason why you're still using stripe.js v2? I strongly recommend that you migrate to v3

lavish glade
#

Yes, I also want to migrate. But it will be lots of works. The lib hasn't been updated for more than 3 years...

timid bronze
#

it's unlikely that we still have any docs on stripe.js v2

lavish glade
#

😫 Do you have any article to add BECS Direct Debit payments in Australia by using v2?

timid bronze
#

i don't think that's even supported using v2

lavish glade
#

Thank you!
We are current using credit card as payment in our system. It used Stripe.card.createToken to get token and make payment.

If we migrate to V3, the credit card payment type will be a paymentElement, and seems it need the clientSecret . But we don't have clientSecret stored in our database for existing customers. How can I get it?

timid bronze
#

generally, you don't need to save the clientSecret in your DB. your frontend will make a request to your server to generate a PaymentIntent / SetupIntent and return the corresponding clientSecret to your frontend to initialize the Payment Element

lavish glade
#

Oh, the secret is for each operation, it's not for each customer, right?

timid bronze
#

Oh, the secret is for each operation, it's not for each customer, right?

yep, pretty much

lavish glade
#

Cool, Thank you very much! We will consider to migrate it.
BTW.... our backend Stripe.net is version 19... Which version does it support the BECS Direct Debit payments in Australia feature?
Or you recommend to upgrade to latest (version 41) ?

timid bronze
#

if you can, you should just upgrade to the latest version