A payment service provider (PSP) offers shops online services for accepting electronic payments by a variety of payment methods including credit card, bank-based payments such as direct debit, bank transfer, and real-time bank transfer based on online banking. Typically, they use a software as a service model and form a single payment gateway for their clients (merchants) to multiple payment methods. read more
npm install @flittpayments/flitt-node-js-sdkgit clone -b master https://github.com/flittpayments/node-js-sdk.gitnode >= 7
const FlittPay = require('@flittpayments/flitt-node-js-sdk')
const flitt = new FlittPay(
{
merchantId: 1549901,
secretKey: 'test'
}
)
const requestData = {
order_id: 'Your Order Id',
order_desc: 'test order',
currency: 'GEL',
amount: '1000'
}
flitt.Checkout(requestData).then(data => {
console.log(data)
}).catch((error) => {
console.log(error)
})merchant_data must be string.
Example:
const merchant_data = JSON.stringify([{
email: '[email protected]',
comment: 'Some comment'
}])
See docs