Hi ,
I tried out the api and as soon as the authenticate method is called and the user is redirected to the paypal website, without waiting for the user to fill out the credentials,
I get 'Success' in the data variable here :
paypal.authenticate({
RETURNURL: "https://localhost/purchase/success",
CANCELURL: "https://localhost/purchase/fail",
PAYMENTREQUEST_0_AMT: 10,
L_BILLINGAGREEMENTDESCRIPTION0: "A description of this subscription"
}, function(err, data, url) {
// Redirect the user if everything went well with
// a HTTP 302 according to PayPal's guidelines
if (!err) { res.redirect(302, url); }
});
Hi , I tried out the api and as soon as the authenticate method is called and the user is redirected to the paypal website, without waiting for the user to fill out the credentials, I get 'Success' in the data variable here : paypal.authenticate({ RETURNURL: "https://localhost/purchase/success", CANCELURL: "https://localhost/purchase/fail", PAYMENTREQUEST_0_AMT: 10, L_BILLINGAGREEMENTDESCRIPTION0: "A description of this subscription" }, function(err, data, url) { // Redirect the user if everything went well with // a HTTP 302 according to PayPal's guidelines if (!err) { res.redirect(302, url); } });
Am I doing something wrong ?