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

AltaPay

To use Upodi with AltaPay tokens, you must create a payment token via the AltaPay frontend integration.

Read how to create tokens with AltaPay here.

Upodi Payment

To create a payment method for AltaPay 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" : " oT34568gYlPgYo9cTmIo192je+KJ7M83zRqABU/ovZaRGZoAUXVel00003ZSkZOiDYGplBlWQLKs+0Fr+C2oeA==+1", /* AltaPay token */
    "paymentgateway" : "altapay"
  }
}