#RJ01
1 messages · Page 1 of 1 (latest)
This is the old Card Elements example. I would recommend using PaymentElements instead. It also has the Appearance API and you can mostly do the same design
No, it's the client secret create from backend via a call to Create PaymentIntent
sk_test_xxx is a Secret Key which you should share anywhere
oh. how to do that?
Please follow this Doc: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#retrieve-the-client-secret It's on the step "Create a Payment Intent"
base here i should get the ClientSecret
but the ClientSecret is not exists in service or in PaymentIntentService..
Please remove images which has your secret key sk_xxx
It's not safe to share on a public forum here
Please follow the Doc above choosing the language you are working on to see code example
im following the doc
the problem is
the response is not containing clientsecret key
If you log service what do you see (mask out secret key sk_test_xxx if it's in your screenshot)
Try this example code https://github.com/stripe-samples/accept-a-payment/blob/main/payment-element/server/dotnet/Program.cs#L45-L66
is this more on payment intents only?
how can we use subscriptions?
or monthly / yearly bill
You could but will need to modify a littel bit
oh. I can use curl calls right? since the client_secret key is just the id from the response if i use curl calls. like this..