Welcome to Anyway! We are currently in Early Access, check out our website at Anyway for more info!
{
"success": true,
"message": "Subscription setup created successfully. Redirect customer to setup_url.",
"data": {
"paymentUrl": "https://payment.dev.anyway.sh/pay?token=eyJhbGciOiJIUzM4NCJ9.eyJvcmRlcklkIjoiT1JEMjUxMDIzMDMyNjE5MTQzMDNOMVZOT0kzMSIsIm1lcmNoYW50SWQiOiJPUkcyNUcxTDhUQjVHMDNOMSIsInR5cGUiOiJzdWJzY3JpcHRpb25fc2V0dXAiLCJzdWJzY3JpcHRpb25JZCI6IlNVQjI1MTAyMzAzMjYxOTE0MzAzTjFWTk9JMzEiLCJzdWIiOiJPUkQyNTEwMjMwMzI2MTkxNDMwM04xVk5PSTMxIiwiaWF0IjoxNzYxMTYxMTgwLCJleHAiOjE3NjExNjQ3ODB9.7HYt-Nx-VJV2rem2HmDyKFSWUWa8VaU5GgssJkqMivTL50AsjCUlaOxWRVNIgPwc",
"orderId": "ORD25102303261914303N1VNOI31",
"setupJwtToken": null,
"subscriptionId": "SUB25102303261914303N1VNOI31",
"status": "PENDING",
"expiresIn": 3600000
},
"error": null
}| Field | Type | Description |
|---|---|---|
paymentUrl | string | The URL to redirect customers to complete payment setup |
orderId | string | Unique identifier for the order |
subscriptionId | string | Unique identifier for the subscription |
status | string | Current status of the payment setup (e.g., PENDING) |
expiresIn | number | Token expiration time in milliseconds (default: 1 hour) |
paymentUrl to complete the payment setup:Note: Replace YOUR_TOKEN_HEREwith the actual token from thepaymentUrlresponse.
| Card Type | Card Number | CVV | Expiry |
|---|---|---|---|
| VISA | 4035 5010 0000 0008 | Any 3 digits | Any future date |
| MASTERCARD | 2223 0000 4841 0010 | Any 3 digits | Any future date |
| AMEX | 3706 3680 3809 394 | Any 4 digits | Any future date |