PayPal Mobile SDK authorization issue - ios

I am having an issue with the integration of the PayPal mobile SDK for iOS.
I’ve downloaded the new and latest api. Using the integrated sample for first time lookup.
Set the correct client IDs (they are correct, triple checked it).
Mock mode - works without any issues.
As soon as i switch to Sandbox i start getting these:
2014-07-08 19:21:05.477 PayPal-iOS-SDK-Sample-App[24241:60b] PayPal iOS SDK version: PayPal iOS SDK 2.1.4
2014-07-08 19:21:06.579 PayPal-iOS-SDK-Sample-App[24241:60b] Environment: mock. Accept credit cards? 0
2014-07-08 19:21:07.315 PayPal-iOS-SDK-Sample-App[24241:60b] Environment: mock. Accept credit cards? 1
2014-07-08 19:21:07.766 PayPal-iOS-SDK-Sample-App[24241:60b] Environment: sandbox. Accept credit cards? 1
2014-07-08 19:21:09.239 PayPal-iOS-SDK-Sample-App[24241:60b] PayPal SDK: Request has failed with error: INTERNAL_SERVICE_ERROR - System error. Please try again later. (500) | PayPal Debug-ID: b4bbc51d2a20d [sandbox, PayPal iOS SDK 2.1.4]
2014-07-08 19:21:10.241 PayPal-iOS-SDK-Sample-App[24241:60b] PayPal SDK: Request has failed with error: INTERNAL_SERVICE_ERROR - System error. Please try again later. (500) | PayPal Debug-ID: a5f9e9e417d35 [sandbox, PayPal iOS SDK 2.1.4]
2014-07-08 19:21:14.657 PayPal-iOS-SDK-Sample-App[24241:60b] PayPal Future Payment Authorization Canceled
2014-07-08 19:21:15.634 PayPal-iOS-SDK-Sample-App[24241:60b] PayPal SDK: Request has failed with error: INTERNAL_SERVICE_ERROR - System error. Please try again later. (500) | PayPal Debug-ID: d1242faa1500d [sandbox, PayPal iOS SDK 2.1.4]
Apart from this a second question :)
The way i understand the authorization of payments is that - we don't authorize a specific payment (say the Client wants to purchase 1 ball for $4.50 - we don't authorize this specific payment - but get a generic token instead with which we can complete any future payment)?
Thanks again!

Dave from PayPal here.
We'll look into those errors. (Thanks for including the full error message, including the PayPal Debug-ID!) Anytime our servers return INTERNAL_SERVICE_ERROR we are concerned -- you should never receive that one.
Most commonly, this sort of problem reflects some transient flakiness of our Sandbox server. So the problem might resolve itself before we complete our investigation of your specific error reports.
Re your second question, I have two answers. :)
You can ask the user to "authorize" a single payment, specifying its amount, and later "capture" that via your server.
You can ask the user to approve future payments, without specifying their amounts in advance.
See this discussion for more details.

Related

Paypal iOS SDK return me an error and crash my app

I implemented Paypal iOS SDK in my app and it works perfectly. Only for 1 account (1!) I can't login and as I write in title the SDK crash my app. In the logs I see the following error:
PayPal SDK: Request has failed with error: stepup_required - Non è possibile completare l’accesso. Riprova più tardi o accedi a www.paypal.it per risolvere eventuali problema di sicurezza del tuo conto PayPal. (401) | PayPal Debug-ID: 6dcc0fceceb0d [live, PayPal iOS SDK 2.13.1] | Details: (
{
"error_description" = "Unable to authenticate the user, and a limited token is being returned. Stepping up the user with this Access Token via authentication flows is necessary. Authflow push notifications are disabled";
}
).
I tried to search it into Paypal github but without success. Any ideas?
With the last update of Paypal iOS SDK framework this problem disappear.
I have also faced this problem. Got solution by updating PayPal SDK framework.

paypal sandbox not working and display popup error

Error i Log:
PayPal-iOS-SDK-Sample-App[4326:177457] PayPal SDK: Request has failed
with error: PAYMENT_CREATION_ERROR - There was a problem setting up
this payment. Please visit the PayPal website to check your account.
(422) | PayPal Debug-ID: bcb3771abac29 [sandbox, PayPal iOS SDK
2.11.4]
popup error:
There was a problem setting up this payment. please visit paypal
website to check your account.
I checked account. Its valid, have fund, have business and personal is same country currency. I didnt find what problem occurs.

PayPal SDK iOS - Login always return INTERNAL_SERVICE_ERROR (500)

After successfully integrating iOS PayPal SDK and testing with no-network mode, I created some test users in the app dashboard and switched to sandbox mode. When I try to login I always get this INTERNAL_SERVICE_ERROR as below:
PayPal SDK: Request has failed with error: INTERNAL_SERVICE_ERROR -
System error. Please try again later. (500) | PayPal Debug-ID:
003f3b97339c5 [sandbox, PayPal iOS SDK 2.8.1]
I gave it some time, even a day as the description tell me to try again later but the failure persists. Is there any additional step I should be doing? Or maybe this is not related to my end?
A 500 response indicates a bug in the PayPal backend. In general, debug IDs should be sent to [https://www.paypal.com/mts](merchant support). They can examine the logs for more information and file a problem report with the appropriate internal team.
However, I will bring this case to their attention.
This particular error has to do with your buyer account not being completely set up according to the country it's registered with. Your buyer account needs a Tax ID set up on it in order to be able to process. As for the 500 Error, this was corrected shortly after you posted the question so that a more appropriate error is returned.

Paypal request has failed with system error?

I have Implemented Paypal SDK in my iOS Application and When I make request to Paypal Server, I am getting error as below
**PayPal SDK: Request has failed with error: UNKNOWN_ERROR - System error (UNKNOWN_ERROR). Please try again later. (400) | PayPal Debug-ID: b2ebd65f0347d [sandbox, PayPal iOS SDK 2.6.1]**
Please help me to sort out this issue.
Thanks in advance.
Dave from PayPal here.
We have occasionally seen this sort of unexplained error before, and are trying to get to the bottom of it.
Could you please open this a new issue at the PayPal-iOS-SDK repository? There we can work with you to try to pin down why this is happening.
Thanks!

Paypal Getting error regarding redirect_url

I am using the latest version of the iOS Paypal SDK (2.0.1) and am getting the following error when making a single payment.
payPal SDK: Request has failed with error: VALIDATION_ERROR - The payment information is invalid. Please correct and submit again. (400) | PayPal Debug-ID: 5a103a01e6d3a | Details: (
{
field = "redirect_urls";
issue = "This field required when payment_method is 'paypal'";
}
So it appears I need to set some redirect_urls. I have not seen any mention of how/where I should be setting these in the PayPal documentation (for iOS)
Can someone shed some light on this for me please?
Thanks
Dave from PayPal here.
We've seen this rather surprising error message before, if when making a payment one specifies the same PayPal account for both the payer and the merchant (payee).
When you make test payments using the PayPal iOS SDK, be sure to log into a PayPal account different from your merchant account.
(And yes, our server team is looking into fixing the error message that is returned in this situation.)

Resources