#Mr.oggy
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Do you have promptpay enabled under your billing settings?
https://dashboard.stripe.com/settings/billing/invoice
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If so, it should show up automatically
I have set payment_method_types to promptpay
but there is no client_secret return from subscription
yes I did
I have to pass client-secret to front-end in order to work with import Elements from @stripe/react-stripe-js, Somehow when I add promtpay to my payment method there is no client-secret return from subscription
Are you seeing any errors instead?
No I don't see any error
It just I cannot find client-secret
Here is the response from subscription
The invoice for that subscription is not finalized yet, you will need to finalize the invoice for it to have a payment intent with a client secret
how can I achieve that?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry, should have specified, the client_secret is on the payment intent which will be on the finalized invoice. So when you finalize the invoice you will also want to expand payment_intent
Then the client secret should show up as payment_intent.client_secret on the newly finalized invoice
Thanks I finally found it now