#Fame

1 messages · Page 1 of 1 (latest)

grand lynxBOT
fading robin
undone eagle
#

thanks

#

Will check

undone eagle
#

I want to use stripe one time api on Firebase.

#

Can you help me?

fading robin
#

It depends on where are you stucking with. We can't build the whole app for you, but can help if you encounter Stripe API errors

undone eagle
#

const fetchPaymentIntentClientSecret = async () => {
const response = await fetch(${API_URL}/create-payment-intent, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
currency: 'usd',
}),
});
const {clientSecret} = await response.json();

return clientSecret;

};
Is there default API_URL ?