oceanpayment
v1.0.1
Published
Oceanpayment SDK for Node.js.
Maintainers
Readme
oceanpayment
Oceanpayment SDK for Node.js.
Install
$ npm i oceanpayment --saveExample
import Oceanpayment from 'oceanpayment'
const oceanpayment = new Oceanpayment({
environment: 'sandbox',
account: 'xxx',
terminal: 'xxx',
secureCode: 'xxx',
key: 'xxx'
})
;(async () => {
const res = await oceanpayment.gatewayServicePay({
order_number: 'test_1',
order_currency: 'USD',
order_amount: '9.99',
backUrl: 'https://google.com/backUrl',
noticeUrl: 'https://google.com/noticeUrl',
methods: 'Credit Card',
billing_lastName: 'test',
billing_firstName: 'test',
billing_email: '[email protected]',
billing_phone: '13000000000',
billing_country: 'US',
billing_state: 'AL',
billing_city: 'New York',
billing_address: 'address',
billing_zip: '123456',
billing_ip: '8.8.8.8',
productName: 'productName',
productNum: 'productNum',
productSku: 'productSku',
productPrice: '9.99',
pay_website: 'https://google.com'
})
// https://test-secure.oceanpayment.com/paymentpages/web/bundledpay.html;jsessionid=EB8A59743EEBD45D09DE0A2CDAD787B7?trNo=251203155138021144002
console.log(res)
})().catch(console.error)