-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Produce the module that is described in the readme #1
Comments
As I know to pay to someones email you have to use paypal adaptive payments which is not yer supported by paypal rest. To achieve what you want you have to use paypal classic sdk -> https://github.com/Ideame/paypal-adaptive-sdk-nodejs. Here is sample implementation: var config = require('./../../config');
var Paypal = require('paypal-adaptive');
var paypalSdk = new Paypal({
userId: config.paypal.classicApi.userId,
password: config.paypal.classicApi.password,
signature: config.paypal.classicApi.signature,
sandbox: config.paypal.classicApi.isSandbox
});
function withdraw(amount, userEmail, callback) {
var payload = {
requestEnvelope: {
errorLanguage: 'en_US'
},
actionType: 'PAY',
currencyCode: 'USD',
feesPayer: 'EACHRECEIVER',
memo: 'Memo goes here',
cancelUrl: "http://fake.com", //we no need cancel url for withdrawals from our account
returnUrl: "http://fake.com",//we no need return url for withdrawals from our account
senderEmail: config.paypal.email,
receiverList: {
receiver: [
{
email: userEmail,
amount: amount
}
]
}
};
paypalSdk.pay(payload, function (err, response) {
callback(err, response);
});
} |
Hi @anorsich , and thank you for your reply. So, are you interested to do the project? I understand that there is little to be done yet beyond the sample implementation you have pasted above, still if you are interested I can pay you $100, via the odesk contract, and you will do all the necesary work so as the corresponding module is "npm ready". (and answer any question I might have regarding its use) Also, there are also a couple more similar node modules that I need, that I would rather someone owning the implementation - and I prefer to keeping them open source Finally, how did you find this - I don't see you as a candidate in the odesk job... |
I'm offering $100.00 on oDesk for someone to do this task: https://www.odesk.com/jobs/~018bd754c57632c01c
Produce the module that is described in the readme
.jshintrc
style - (if you have strong (different) preferences, feel free to adapt the.jshintrc
file appropriatelyREADME.md
The text was updated successfully, but these errors were encountered: