Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/veib6247/pay-on-integrator
Allows you to send transactions to the PAY.ON payment gateway
https://github.com/veib6247/pay-on-integrator
Last synced: about 2 months ago
JSON representation
Allows you to send transactions to the PAY.ON payment gateway
- Host: GitHub
- URL: https://github.com/veib6247/pay-on-integrator
- Owner: veib6247
- Created: 2022-03-18T08:35:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-11T09:23:03.000Z (over 2 years ago)
- Last Synced: 2024-11-07T10:07:55.383Z (2 months ago)
- Language: JavaScript
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pay-on-integrator
This library allows you to send transactions to the PAY.ON payment gateway without any hassle! (hopefully).
# Install
`npm install pay-on-integrator`
# Functions
Variable and parameter descriptions all in the JS Docs (comments) my dudes.
# Usage
ES Modules only for now folks.
`import integrator from 'pay-on-integrator'`
# Sample Codes
I'll try to add the rest in the coming days.
## CopyandPay
Use the `submitTransactionRequest` function to generate a `checkoutId`.
// create async function
const testSubmit = async () => {// pass in the integration type, your token, and request parameter string
const responseData = integrator.submitTransactionRequest(
'CopyAndPay',
'OGE4Mjk0MTc0YjdlY2IyODAxNGI5Njk5MjIwMDE1Y2N8c3k2S0pzVDg=',
'entityId=8a8294174b7ecb28014b9699220015ca&amount=92.00¤cy=EUR&paymentType=DB'
)let response = await responseData
console.log(response)
}// call function as needed
testSubmit()### Response Sample
{
result: { code: '000.200.100', description: 'successfully created checkout' },
buildNumber: '570fdf3ef2860323b0469c3cefbaa775b1c57500@2022-03-18 04:08:03 +0000',
timestamp: '2022-03-18 16:25:08+0000',
ndc: 'DE09D71BCF527F73C99ED9E90A94D98C.uat01-vm-tx02',
id: 'DE09D71BCF527F73C99ED9E90A94D98C.uat01-vm-tx02'
}The rest are coming soon, I'm sleepy xp