Last updated 1 month ago
Payment intent creation data
1000
Payment intent created successfully
"pi_1F7X2Y2eZvKYlo2C0q0G5Z2e"
"usd"
"pi_1F7X2Y2eZvKYlo2C0q0G5Z2e_secret_12345"
"requires_payment_method"
const response = await fetch('/payments/create-payment-intent', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "id": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e", "amount": 1000, "currency": "usd", "clientSecret": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e_secret_12345", "status": "requires_payment_method" }