skip to Main Content

Paypal api – PayPal chectout returns UNPROCESSABLE_ENTITY

My checkout code let ORDERPRICE = 2; paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ application_context: { shipping_preference: "NO_SHIPPING", brand_name: "MYCOMP", user_action: 'PAY_NOW', payment_method: { payee_preferred: 'IMMEDIATE_PAYMENT_REQUIRED' } }, payer: { name: { given_name: 'NAME' }, email_address: '[email protected]' }, purchase_units: [{…

VIEW QUESTION

PayPal API set return URL

With the oldest PayPal API, setting the return URL when a checkout is accomplishment, or when checkout is eliminated is easy, as described here: Payment payment = new Payment(); RedirectUrls redirectUrls = new RedirectUrls(); redirectUrls.setCancelUrl(cancelUrl); redirectUrls.setReturnUrl(successUrl); payment.setRedirectUrls(redirectUrls); How can I…

VIEW QUESTION
Back To Top
Search