Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
paypal-classic-api
Advanced tools
Readme
This is a wrapper for PayPal "Classic" NVP API: https://developer.paypal.com/docs/classic/
npm install paypal-classic-api --save
class PayPal(options)
options
object mandatory fields: username
, password
and signature
from PayPal developer account.
options
.live
is an optional field which enables "live" mode. Default value is false
, so the module will operate in sandbox mode if this field is not explicitly set to true
.
method call(methodName, methodArguments, callback)
Methods names and arguments information can be found at https://developer.paypal.com/docs/classic/api/ under "Express Checkout API Operation"
PayPal = require('paypal-classic-api');
var credentials = { username: 'tok261_biz_api.abc.com',
password: '1244612379',
signature: 'lkfg9groingghb4uw5' };
var paypal = new PayPal(credentials);
paypal.call('TransactionSearch',
{ StartDate: '2012-06-11T10:50:44.681Z' },
function (error, transactions) {
if (error) {
console.error('API call error: ' + error);
} else {
console.log(transactions);
}
});
Example output
{ TIMESTAMP: Mon Mar 09 2015 16:56:22 GMT-0700 (PDT),
CORRELATIONID: '584ced41b8ab3',
ACK: 'Success',
VERSION: 94,
BUILD: 15220584,
objects: [ { TIMESTAMP: Thu Feb 26 2015 20:00:01 GMT-0800 (PST),
TIMEZONE: 'GMT',
TYPE: 'Payment',
EMAIL: 'developer@paypal.com',
NAME: 'Developer',
TRANSACTIONID: '0J1L38973J4267114',
STATUS: 'Completed',
AMT: 100,
CURRENCYCODE: 'JPY',
FEEAMT: -44,
NETAMT: 56 },
{ TIMESTAMP: Thu Feb 26 2015 19:53:21 GMT-0800 (PST),
TIMEZONE: 'GMT',
TYPE: 'Payment',
EMAIL: 'developer@paypal.com',
NAME: 'Developer',
TRANSACTIONID: '07Y30605XS335043T',
STATUS: 'Completed',
AMT: -12,
CURRENCYCODE: 'USD',
FEEAMT: -0.06,
NETAMT: -12.06 },
{ TIMESTAMP: Thu Feb 26 2015 19:41:24 GMT-0800 (PST),
TIMEZONE: 'GMT',
TYPE: 'Transfer',
NAME: 'PayPal',
TRANSACTIONID: '6L2489117V5191606',
STATUS: 'Completed',
AMT: 500,
CURRENCYCODE: 'USD',
FEEAMT: 0,
NETAMT: 500 } ]
}
FAQs
Paypal Classic API bindings
The npm package paypal-classic-api receives a total of 1 weekly downloads. As such, paypal-classic-api popularity was classified as not popular.
We found that paypal-classic-api 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.