$ yarn
$ PAYLINE_CONTRACT=XXXXX PAYLINE_USERNAME=XXXXX" PAYLINE_PASSWORD=XXXXX node index.js
Output:
{
"result": {
"code": "00000",
"shortMessage": "ACCEPTED",
"longMessage": "Transaction approved"
},
"token": "1D0wc20Fm0d6hSldR3901856666495914",
"redirectURL": "https://homologation-webpayment.payline.com/v2/?token=1D0wc20Fm0d6hSldR3901856666495914"
}