skip to Main Content

Not getting refresh_token when authenticating with paypal API

Node.js Using paypal sandbox env const PAYPAL_BASE_URL = "https://api.sandbox.paypal.com"; const PAYPAL_TOKEN_URL = `${PAYPAL_BASE_URL}/v1/oauth2/token`; const tokenOptions = { method: "post", headers: { "Content-Type": "application/x-www-form-urlencoded", "Access-Control-Allow-Credentials": true, }, data: qs.stringify({ grant_type: "client_credentials" }), auth: { username: `${CLIENT_ID}`, password: `${CLIENT_SECRET}`, }, url: `${PAYPAL_TOKEN_URL}`,…

VIEW QUESTION

Paypal api – PayPal Order Request never gets back

Dears all, I'm starting with payPal, and I've tried to implement the standard sample provided with SDK (c#, FW 4.6.1) here below my server-side method public async static Task<PayPalHttp.HttpResponse> CreateOrder() { OrdersCreateRequest oRequest = new OrdersCreateRequest(); oRequest.Prefer("return=representation"); //System.Net.ServicePointManager.Expect100Continue = true;…

VIEW QUESTION

Paypal api – Paypal REST Api with retrofit

I am trying to use Paypal REST api with retrofit, but i am getting the following error {"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"2689a7ff7bf28","details":[{"field":"/purchase_units","value":"","location":"body","issue":"MISSING_REQUIRED_PARAMETER","description":"A required field / parameter is missing."},{"field":"/intent","value":"","location":"body","issue":"MISSING_REQUIRED_PARAMETER","description":"A required field / parameter is missing."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_REQUIRED_PARAMETER","rel":"information_link","encType":"application/json"}] here is…

VIEW QUESTION
Back To Top
Search