Creates a Stripe PaymentIntent for purchasing credits. Returns a client secret that should be passed to Stripe.js for payment confirmation.
access token
SKU code for the credit package to purchase (1-100 characters)
"CREDITS_50"
Number of packages to purchase (1-100, defaults to 1)
1
Optional custom tracking data (reserved keys are ignored)
{
"source": "web-app",
"campaign": "summer-2025"
}Payment intent created successfully
Client secret for Stripe.js payment confirmation
"pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YZ6X7YW8vU9tU8oZ1kL2mN3o"
"pi_3MtwBwLkdIwHu7ix28a3tqPa"
Charge amount in cents
2500
"usd"
"CREDITS_50"
50