#Mr.oggy

1 messages ยท Page 1 of 1 (latest)

pale plazaBOT
minor harbor
#

If so, it should show up automatically

wide hawk
#

I have set payment_method_types to promptpay
but there is no client_secret return from subscription

wide hawk
#

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

minor harbor
#

Are you seeing any errors instead?

pale plazaBOT
wide hawk
#

No I don't see any error

#

It just I cannot find client-secret

violet flax
#

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

wide hawk
#

how can I achieve that?

violet flax
wide hawk
#

I still cannot find client-secret in both "invoice" and "subscription"

violet flax
#

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

wide hawk
#

Thanks I finally found it now