Quickstart: create a payment and confirm on the client.
// Create a Payment Intent
POST /v1/payment_intents
{
"amount": 4900,
"currency": "usd",
"capture_method": "automatic"
}
// Confirm on the client
SecurePay.confirmPayment(clientSecret)
.then(() => console.log('paid'))
.catch(console.error)
Use sk_test_***
and pk_test_***
to start in sandbox.