Payline
Fork of cubyn/payline
I choose to refine the package entirely.
Usage
Where to find those f**** config strings? Well I've been there:
userId
is sent by email when you subscribe to Payline. joyfully named Vendor identifier or Merchant's Login elsewhere in their adminuserPass
is called access key and available in Settings > Change your access keyurl wsdl
is working now!
npm install flav-payline
var Payline = ;var payline = '<% userId %>' '<% userPass %>' '<% url wsdl (optional) %>';
Example using doWebPayment
payline;
API
new Payline(userId, userPass) -> instance
See Usage to find those variables You can override the wsdl bundled in this module by setting a 3th arg :
new Payline(userId, userPass, 'my file path or url')
instance.runAction(doWebPayment, object) -> Promise(object)
Use the method describe to see wich methods is available with your wsdl.