Skip to content

this is a JavaScript Class for work with BehPardakht API

License

Notifications You must be signed in to change notification settings

saeedtrb/node-behpardakht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2062fab · Aug 13, 2016

History

5 Commits
Aug 13, 2016
Aug 13, 2016
Aug 13, 2016
Aug 13, 2016
Aug 13, 2016
Aug 13, 2016

Repository files navigation

node-behpardakht

this is a JavaScript Class for work with BehPardakht API

var behPardakht = new require("beh-pardakht");
behPardakht.bpPayRequest( transactionId , amountCharge , desc , function( err , refId ){
	if( err ){
		/*
			err.message  is exception message or bank answer when payment is not success
			err.statusCode    500 is server error 406 is behPardakht error
			err.resCode 	  behpardakht answer code
		*/
		return next( err );
	}else{
		// redirect to bank with refId
	}
});

About

this is a JavaScript Class for work with BehPardakht API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published