Skip to content

NodeJs module to integrate worldpay(www.worldpay.com) credit card processing in your applications.

Notifications You must be signed in to change notification settings

dmitrykvochkin/node-worldpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-worldpay

NodeJs module to integrate worldpay(www.worldpay.com) credit card processing in your applications.

NPM - https://www.npmjs.com/package/node-worldpay WorldPay docs - http://support.worldpay.com/support/

###How to use:

var Worldpay = require('node-worldpay'),
	worldpay = new Worldpay({
		merchantCode: 'YOUR_MERCHANT_CODE',
		password: 'PASSWORD',
		installationId: 'INSTALLATION_ID',
		baseUrl: 'https://secure-test.worldpay.com/jsp/merchant/xml/paymentService.jsp'
	});

####Charge credit card

worldpay.charge({
	card: {
      number: '4945670000000',
      cvc: '000',
      expirationMonth: '03',
      expirationYear: '2016',
      holderName: "Ra's al Ghul"
    }
}, function(err, result){
	console.log(result.orderStatus[0].payment);
});

About

NodeJs module to integrate worldpay(www.worldpay.com) credit card processing in your applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published