rimiti / payline-example

Payline example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

payline-example

Install

$ yarn

How to run this snippet

$ 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"
}

About

Payline example


Languages

Language:JavaScript 100.0%