Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rimiti/payline-example

Payline example
https://github.com/rimiti/payline-example

example payline snippet soap xml

Last synced: about 5 hours ago
JSON representation

Payline example

Awesome Lists containing this project

README

        

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