In my android app the payment fails when my customer pay by credit card (without login to PayPal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi people,
I've a big problem and I can't find the solution. In my Android App, credit card payment always fails (see picture 1) with any credit card, I speak of the case without login to paypal (see picture 2). If I pay with a paypal account by login, either with the paypal balance or with a registered card, everything works fine.
picture 1
picture 2
This is my code (only relevant parts):
PayPalConfiguration cfgPayPal = new PayPalConfiguration()
.environment(PayPalConfiguration.ENVIRONMENT_PRODUCTION)
.clientId(Constants.PAYPAL_CLIENT_ID)
.acceptCreditCards(true);
Intent iPPS = new Intent(ctx, PayPalService.class);
iPPS.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, cfgPayPal);
context.startService(iPPS);
PayPalPayment itemsToBuy = getItemsToBuy(PayPalPayment.PAYMENT_INTENT_SALE);
Intent iPA = new Intent(context, PaymentActivity.class);
iPA.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, cfgPayPal);
iPA.putExtra(PaymentActivity.EXTRA_PAYMENT, itemsToBuy);
startActivityForResult(iPA, Constants.PAYPAL_REQUEST_CODE);
private PayPalPayment getItemsToBuy(String paymentIntent) {
return new PayPalPayment(
new BigDecimal(dOrderTotalValue),
Constants.PAYPAL_CURRENCY,
getString(R.string.lab_order_code)+": "+sOrderCode,
paymentIntent
);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I can't see the error image, only the second picture. Do you have the full error message and the log for the error returned? I will try to see if I can find the API request that returned this error in our logs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I've spoke with PP expert and he told me that for Italy the direct credit card payment doesn't work, this method work only in USA, Canada and UK. Thanks for your help.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- recurring payments when price maybe changed and price have 2 decimal point in REST APIs
- How do I update shipping in the popup when using onShippingAddressChange() in REST APIs
- Paypal express checkout, payment they error "Sorry, something went wrong. Please try again." in PayPal Payments Standard
- Add Others data in SDKs
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs