Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 2.0!

ePay

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"
  }
}