To use Upodi with ePay tokens, you must create a subscription via the ePay gateway provider, by following the various integration options.
As ePay token, we use subscription token in this example of ID 49820479.
Read how to create subscription in ePay here.
Upodi Payment
To create a payment method for ePay token, make a POST request to /paymentmethods/:customerid/ with a body using the createpaymentmethod request object:
{
"type" : 64 /* PureTokenBased = 64 */,
"makedefault" : "true", /* will make the payment method default */
"puretoken" : {
"token" : " 49820479", /* ePay subscription ID */
"paymentgateway" : "epay"
}
}