#Fame
1 messages · Page 1 of 1 (latest)
Sure, you can start by following this Doc https://stripe.com/docs/payments/accept-a-payment?platform=react-native
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
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 ?