paypal-rest-sdk

billing agreement token lifetime

拜拜、爱过 提交于 2020-01-16 04:55:07
问题 When I create an agreement for paypal payment, it return the REDIRECT link with a token. The user must connect to paypal via this link and accept agreement, then I can execute agreement. I want to know, how long the REDIRECT link (and its assoicated token) is valid ? I ask because I want top precompute agreement and put them in cache, so If user want to subscribe I use a cached REDIRECT link and it's fast. Create agreement call take 2 seconds, it's too long, speed is critical at checkout

payment creation error paypal sdk android

五迷三道 提交于 2020-01-15 09:11:50
问题 i am using sandbox environment in paypal sdk integration and getting the following error anyone came across the error?? request failure with http statusCode:422,exception:org.apache.http.client.HttpResponseException: Unprocessable Entity paypal.sdk﹕ request failed with server response:{"name":"PAYMENT_CREATION_ERROR","debug_id":"968064d634e8e","message":"checkout-session not created","information_link":"https://api-m.sandbox.paypal.com/docs/api/#PAYMENT_CREATION_ERROR"} /paypal.sdk﹕ PAYMENT

Is there a way to set up recurring payments with the PayPal REST API?

不羁岁月 提交于 2020-01-11 07:21:12
问题 I read this question and this one. They both said (a year ago) that recurring payments via the REST API was in the works. On my client's website, customers need to be able to pay either in full (all at once — e.g., $1200 at check out) in installments ($1200 over 6 months at $200 per month) It is crucial that his website be notified when a customer pays. I have currently set this up for option #1: app.get("/cart/checkout/paypal", isLoggedIn, isVerified, function (req, res) { var user = req

Integrating paypal with c++ MFC app

陌路散爱 提交于 2020-01-07 05:03:49
问题 We are planning to integrate Paypal with one of our cpp application written using MFC. The question is shall we use Rest apis to accomplish this? or there is any other easier way to do achieve this? I have recently used Paypal REST Services via Postman and they look pretty easy. What I want to achieve is how can I use rest apis for paypal without launching the browser ? How can I achieve Login credentials from the user ? Can anyone point me to right direction ? Appreciate your help in advance

PayPal REST API returning 500 Server error for credit Card Token

只愿长相守 提交于 2019-12-30 18:30:33
问题 I am trying to have the PayPal REST api create a payment with a credit card stored in the vault. But, whenever I try and make a payment with the card in the vault PayPal's API will hang for around half a minute, and then give me the following 500 error: Exception: Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/payment. {"name":"INTERNAL_SERVICE_ERROR","message":"An internal service error has occurred","information_link":"https://developer.paypal.com

Paypal PHP SDK REST is not returning any “success” variable

不羁的心 提交于 2019-12-25 08:48:03
问题 I make basic PayPal payment on sandbox, following instructions on official samples here: CreatePaymentUsingPayPal Execution The problem appears when my Execution service is getting request from paypal server. After dumping $_GET variables I can see something like: array:3 [▼ "paymentId" => "PAY-9HM25571EF136871GLEWZM6A" "token" => "EC-6VX65808WU776334M" "PayerID" => "2ADP8W2S9ST8Z" ] So there is no variable called "success". If payment ended without success I should get "success": false. I

PayPal Rest API: How to disable registration/pay with creditcard dialog at express checkout

China☆狼群 提交于 2019-12-25 04:53:23
问题 I am wondering whether there is an option at PayPals Rest API to disable the registration dialog in the user approval dialog (@see screenshot). I am using the php-sdk (https://github.com/paypal/PayPal-PHP-SDK) and I have set the payment method exclusively to 'paypal' in the order creation process: $payer = new \PayPal\Api\Payer(); $payer->setPaymentMethod("paypal"); ... $payment = new \PayPal\Api\Payment(); $payment->setPayer($payer); ... $payment->create($this->_getApiContext()); I also have

Exception Using PayPal-PHP-SDK [Http response code 400]

删除回忆录丶 提交于 2019-12-24 23:34:30
问题 I'm following a tutorial about how to use PayPal-PHP-SDK and i got stuck in somewhere with this error in the console: [Sun Mar 08 16:11:21.729977 2015] [:error] [pid 4484:tid 1760] [client ::1:4308] PHP Fatal error: Uncaught exception 'PayPal\\Exception\\PayPalConnectionException' with message 'Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment.' in C:\\UniServerZ\\www\\PayPal\\vendor\\paypal\\rest-api-sdk-php\\lib\\PayPal\\Core\\PayPalHttpConnection

Get customer details after transaction

╄→尐↘猪︶ㄣ 提交于 2019-12-24 06:08:04
问题 I'm struggling to decide between Paypal NVP and REST APIs. The REST API seems to be newer and better but I can't find a way to get customer details after a transaction occured. Basically I want to set up a billing plan for recurring payments and then get customer details via API so they do not have to enter them through my website. Paypal Express checkout seems to be what I should use here. The NVP API offers a GetExpressCheckoutDetails method to get these details. I didn't find something

Get customer details after transaction

£可爱£侵袭症+ 提交于 2019-12-24 06:07:02
问题 I'm struggling to decide between Paypal NVP and REST APIs. The REST API seems to be newer and better but I can't find a way to get customer details after a transaction occured. Basically I want to set up a billing plan for recurring payments and then get customer details via API so they do not have to enter them through my website. Paypal Express checkout seems to be what I should use here. The NVP API offers a GetExpressCheckoutDetails method to get these details. I didn't find something