Create a Paycode
To create a Paycode
, specify the basic information about what you want to charge the customer for, and for how much.
$paycodeReq = Pencepay_Request_Paycode::build()
->amount('1050.99')
->currencyCode('GBP')
->orderId('A1442')
->description('Holiday for two in Croatia')
->settings()
->reserveFundsOnly(true)
->done();
$paycode = Pencepay_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.