Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
The module is a simple wrapper on top of the paypal-adaptive-sdk-nodejs module. By default sender pays all fees.
Installing the module
npm install paypal-pay
var pay = require('paypal-pay')({
{
//required parameters
'userId': '',
'password': '',
'signature' : '',
//make sure that senderEmail and above credentials are from the same paypal account
//otherwise paypal won't compete payment automatically
'senderEmail' : '',
//optional parameters and their defaults
'sandbox': true,
'feesPayer': 'SENDER',
'currencyCode': 'USD',
});
pay('john@doe.com', 18.00, "This is an example memo', function(err, response){
if(err){
//response.error -- will contains errors if something went wrong
//see response examples below for more details
return;
}
});
Paypal adaptive payments api documentation.
More information can be found in Paypal adaptive payments documentation
Success:
{
"responseEnvelope":{
"timestamp":"2014-03-25T00:03:02.486-07:00",
"ack":"Success",
"correlationId":"30eb8c99e2200",
"build":"10175386"
},
"payKey":"AP-5RW588649M220974T",
"paymentExecStatus":"COMPLETED",
"paymentInfoList":{
"paymentInfo":[
{
"transactionId":"4DB51146SF913544T",
"transactionStatus":"COMPLETED",
"receiver":{
"amount":"10.00",
"email":"paypal-pay-receiver@sandbox-mail.com",
"primary":"false",
"accountId":"MY2AP9Y85VAD6"
},
"pendingRefund":"false",
"senderTransactionId":"9TA40881PA968474G",
"senderTransactionStatus":"COMPLETED"
}
]
},
"sender":{
"accountId":"S46RUQD499YWJ"
},
"httpStatusCode":200
}
Error:
{
"responseEnvelope":{
"timestamp":"2014-03-24T23:49:22.419-07:00",
"ack":"Failure",
"correlationId":"6db128a52e68c",
"build":"10175386"
},
"error":[
{
"errorId":"589039",
"domain":"PLATFORM",
"subdomain":"Application",
"severity":"Error",
"category":"Application",
"message":"The email address not-exists@not-exists.com is invalid. It may not be registered in PayPal's system yet",
"parameter":[
"not-exists@not-exists.com",
"Sender Account not found"
]
}
],
"httpStatusCode":200
}
We are happy to accept pull requests.
Before issue pull request please make sure that tests are passing and code formatting is okay via grunt
command.
FAQs
Minimalist 'send money to email' - using the Paypal API
The npm package paypal-pay receives a total of 1 weekly downloads. As such, paypal-pay popularity was classified as not popular.
We found that paypal-pay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.