The Dibs D2 tokenization process is as follows:

  1. Use DIBS D2 Payment Window to pre-authenticate the card as described here.

  2. Retrieve the Ticket reference from the payment/pre-auth - this is your token.

Upodi Payment

To create a payment method for DIBS D2, make a POST request to /paymentmethods/:customerid/ with a body using the createpaymentmethod request object:

Example of body:

{
  "type" : 64 /* PureTokenBased = 64 */,
  "makedefault" : "true", /* will make the payment method default */
  "puretoken" : { 
    "token" : " 949893577", /* DIBS D2 Ticket Reference */
    "paymentgateway" : "dibsd2"
  }
}