Skip to content

rimiti/payline-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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