Paypal API: REST or CLASSIC?

I have successfully registered a REST API app wth Paypal but I am not sure if this is what I need or I need to create a CLASSIC API app from the same screen.

So far I have been testing in the sandbox, and the credentials I have been using follow this pattern:

{
"user" : "a@a.com", 
"host" : "api.paypal.com",
"port": "",
"client_id" : "ID",
"client_secret": "SECRET",

"classicAPI": {
"username" : "paypal_api1.domain.com",
"password" : "PWD",
"signature" : "SIGNATURE",
"environment" : "production" 
}
};

What my code is trying to do is to create a subscription, calling the "SetExpressCheckout" and "CreateRecurringPaymentsProfile", but I get a "PaypalMissing token"error.

Am I doing it the right way, ie REST API and those credentials? Looks like since I'm using the ClassicAPI parameters shouldn't I be registering a CLASSIC app?

For clarification, I'm using NodeJs and this plugin https://www.npmjs.org/package/paypal-recurring

Thank you in advance

Answers


Express Checkout specifically would be using the classic API. I'd recommend sticking with that for now as the REST API is still very young and doesn't have all of the features tied in yet that the classic API provides.


Need Your Help

Understanding Various I/O systems java

java io bufferedstream

i have been reading through the java tutorials on oracle.com recently and i am trying to understand I/O. But there are so many things, a lot of which appear to be the same, such as: