#RJ01

1 messages · Page 1 of 1 (latest)

somber spireBOT
old dagger
#

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

solar turret
#

is this part

#

i should replace with this value?

#

'{{sk_test_51m...}}' ?

old dagger
#

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

solar turret
#

oh. how to do that?

old dagger
solar turret
#

base here i should get the ClientSecret

#

but the ClientSecret is not exists in service or in PaymentIntentService..

old dagger
#

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

solar turret
#

im following the doc

#

the problem is

#

the response is not containing clientsecret key

old dagger
#

If you log service what do you see (mask out secret key sk_test_xxx if it's in your screenshot)

solar turret
#

here

old dagger
solar turret
#

is this more on payment intents only?

#

how can we use subscriptions?

#

or monthly / yearly bill

old dagger
#

You could but will need to modify a littel bit

solar turret
#

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..