paypal

PayPal recurring payments negative testing

独自空忆成欢 提交于 2019-12-23 23:43:13
问题 I am trying to use the Recurring payment API offered by PayPal. When I create a recurring payment either with express chekout token or with credit card details the payment is always successful. There are instructions here on how to test error conditions http://www.paypalobjects.com/en_US/ebook/PP_Sandbox_UserGuide/testing_error_conditions.html i.e. you can specify for example cvv2=116 and it will produce an error for doDirectPayment, but it does not seem to work with recurring payments. Is

Black Screen after displaying root view controller, ONLY when inheriting PayPalPaymentDelegate

a 夏天 提交于 2019-12-23 23:21:16
问题 The problem is that I get a black screen after the splash screen ONLY when a class that inherits the PayPalPaymentDelegate. At the first I thought it was my PayPalMobile binding so I used this PayPalMobile binding by Alejandro. I got the same results by using his binding and mine. I ran Alejandro sample app and it works flawlessly. I have no idea why I'm getting the black screen on mine. What could be causing this issue on my project? What I have done so far: I changed the deployment target

Verify Paypal Restful Webhook Signature in Java

家住魔仙堡 提交于 2019-12-23 21:54:37
问题 I have a Java servlet that consumes Paypal Restful Webhooks. In verifying the request signature, I followed the instructions detailed in https://developer.paypal.com/webapps/developer/docs/integration/direct/rest-webhooks-overview/#event-security However, I can't seem to successfully verify the signature even while following the pseudocode in the paypal doc to the dot. Here's the actual code that I use to verify (the below method always returns false): private static final String WEBHOOK_ID =

Paypal PDT transaction ID expiration period

孤人 提交于 2019-12-23 21:24:56
问题 I got error 4003 from paypal PDT when I was trying to retrieve payment information using the transaction ID. Although I there's a similar thread here : Paypal PDT error 4003 and I believe the answer is because of my transaction ID has expired. However, I couldn't find any info of how long will the transaction ID expired. p/s: My system is able to retrieve PDT info perfectly right after user return from paypal. 来源: https://stackoverflow.com/questions/23862124/paypal-pdt-transaction-id

IPN Paypal “official” sample code doesn't work

吃可爱长大的小学妹 提交于 2019-12-23 20:12:50
问题 I have a problem that I imagine they also found many others. I am trying to integrate the PayPal payment system into my site, but I have some problem with the IPN. I tried this code, found on github Paypal: <?php require('PaypalIPN.php'); use PaypalIPN; $ipn = new PayPalIPN(); // Use the sandbox endpoint during testing. $ipn->useSandbox(); $verified = $ipn->verifyIPN(); if ($verified) { } // Reply with an empty 200 response to indicate to paypal the IPN was received correctly. header("HTTP/1

Paypal express sandbox access deined

假装没事ソ 提交于 2019-12-23 19:54:17
问题 I'm trying to use Paypal sandbox API and getting this response Access Denied You don't have permission to access "http://api-3t.sandbox.paypal.com/nvp" on this server. this is what im getting when the server tries to post data to paypal Im using curl to post the data Why is that ? 回答1: The sandbox environment is set up to only allow HTTP 1.1 so you will get this access denied error if you are using HTTP 1.0. The change to HTTP 1.1 was made a long while ago but was backwards compatible.

How to include or bootstrap the paypal-core-sdk php

独自空忆成欢 提交于 2019-12-23 19:37:59
问题 I've downloaded the paypal-core-sdk for php from GitHub manually, my server does not have 'composer' and I've just manually copied the files to an include directory outside the document root. Problem is when I go call on some of the classes the server borks and doesn't know what I'm talking about ... i.e. Fatal error: Class 'PPApiContext' not found in /home/rctoronto/public_html/start.php on line 143 if I include once on the file providing PPApiContext, it moves along to another error and so

PayPal REST API cross reference transaction with payment

懵懂的女人 提交于 2019-12-23 19:15:06
问题 I have managed to complete a PayPal payment using the REST PHP API. However, I want to know how to cross reference the REST transaction with the PayPal web user interface. On the REST side I have payment id (getID()) received before the transaction is approved. It looks like 'PAY-5BH83448XN85470XXXXXXXXXXX' . After the transaction is approved, I receive back at my redirect URL three other pieces of information: - success=true - token=EC-51Y92978Mxxxxxxxx - PayerID=4Q7YVxxxxxxxx When I log

How to pass JSON array inside body in retrofit

夙愿已清 提交于 2019-12-23 18:38:38
问题 { "intent":"sale", "redirect_urls":{ "return_url":"http://example.com/your_redirect_url.html", "cancel_url":"http://example.com/your_cancel_url.html" }, "payer":{ "payment_method":"paypal" }, "transactions":[ { "amount":{ "total":"7.47", "currency":"USD" } } ] } I want to pass following request in the body in retrofit.My problem is with json array which is being used as shown above.Can anyone tell how to pass this request in retrofit.Above is the json request which I want to pass in body of

PayPal REST API: Requesting oauth token returns 500

半世苍凉 提交于 2019-12-23 18:24:24
问题 Two days ago, something broke with our paypal integration. Unfortunately, trying to contact paypal support has proven to be of no help (no reply in 2 days), so I'll try my luck, here. Requesting the token (curl https://api.paypal.com/v1/oauth2/token -H "Accept: application/json" -H "Accept-Language: en_US" -u "****:****" -d "grant_type=client_credentials") started ALWAYS returning an empty response and well, a 500 error. Note that the same works just fine with api.sandbox.paypal.com and