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

Upodi Payment

To create a payment method with an AltaPay token, make a POST request to /paymentmethods/{customerId} with a body including the puretoken object:

{
  "gateway" : "altapay",
  "makedefault" : "true", /* will make the payment method default */
  "source" : "oT34568gYlPgYo9cTmIo192je+KJ7M83zRqABU/ovZaRGZoAUXVel00003ZSkZOiDYGplBlWQLKs+0Fr+C2oeA==+1", /* AltaPay token */
}