#hajoshi

1 messages · Page 1 of 1 (latest)

quartz solarBOT
cosmic aspen
#

hi! not really no. What are you really trying to do?

eternal girder
#

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.

cosmic aspen
#

why do you "have to"?

eternal girder
#

is there any way to retrieve stripe secret from publish key or any way to create checkout session from publish key ?

cosmic aspen
#

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 url of the CheckoutSession.

Is there a specific part of that process that you're having trouble with?

eternal girder
#

yes, am getting the secret key from another api

cosmic aspen
#

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.

eternal girder
#

exactly,

cosmic aspen
#

sorry but overall I'm not understanding you. Is there anything I can help with?