#hajoshi
1 messages · Page 1 of 1 (latest)
hi! not really no. What are you really trying to do?
i have to create stripe checkout session from my custom api where am send stripe secret key as payload data
but i have to use stripe publish key instead of sending Secret key.
why do you "have to"?
is there any way to retrieve stripe secret from publish key or any way to create checkout session from publish key ?
overall I don't really understand. The way Checkout works is like this :
- a customer visits your site and visits the payment page
- your backend server loads the payment page
- your backend server creates a CheckoutSession by calling our API with your secret key
- your backend server redirects the customer to the
urlof the CheckoutSession.
Is there a specific part of that process that you're having trouble with?
yes, am getting the secret key from another api
I don't understand unfortunately. The secret key of your Stripe account needs to be kept safe, you shouldn't be exposing it as something that can be retrieved from some API endpoint of your company.
exactly,
sorry but overall I'm not understanding you. Is there anything I can help with?