Create a Paycode
To create a Paycode
, specify the basic information about what you want to charge the customer for, and for how much.
PaycodeRequest paycodeReq = new PaycodeRequest()
.amount(new BigDecimal("1010.50"), "EUR")
.orderId("A1442")
.description("Holiday for two in Croatia")
.settings()
.reserveFundsOnly(true)
.done();
Paycode paycode = gateway.paycode().create(paycodeReq);
Optionally, you can set a validUntil
(timestamp) to set the limit on until when the Paycode
can be used by the customer to make a payment to you.