Displaying wrong amount in Paypal initial screen
Closed this issue · 11 comments
Here's my code but I am getting the wrong charge in my PayPal screen check below link :
PayPalPayment thingToBuy = getThingToBuy(PayPalPayment.PAYMENT_INTENT_SALE, "1.3");
Intent intent = new Intent(PaymentActivity.this, com.paypal.android.sdk.payments.PaymentActivity.class);
intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);
intent.putExtra(com.paypal.android.sdk.payments.PaymentActivity.EXTRA_PAYMENT, thingToBuy);
startActivityForResult(intent, REQUEST_CODE_PAYMENT)
private PayPalPayment getThingToBuy(String paymentIntent, String charge) {
return new PayPalPayment(new BigDecimal(charge), "USD", "SampleApp", paymentIntent);
}
Hey @nisd93 !
We tried replicating your issue using SampleApp, and we were able to see the price correctly. We used config.languageOrLocale("fr_FR")
to replicate your use case. What version of SDK are you using ?
Hey Thank you for quick response @jaypatel512 I am using 2.15.3 version, Should I use config.languageOrLocale("fr_FR") ? And it occurs for local language "en" as well btw !!
We do have locale support. You can read more about that here: https://github.com/paypal/PayPal-Android-SDK#international-support
This was testing with 2.15.3. I added the locale to replicate your phone UI. I am unclear what could be causing that error on your end.
Would you mind quickly downloading this repo, and testing out our SampleApp, and see if you are seeing the same error there as well. This should help us identify the issue extremely quickly.
Thanks @nisd93 for your support.
Yes let me try your repo @jaypatel512
Closing due to inactivity
@Karanp13 This SDK has been deprecated. Can you integrate Braintree SDK instead?
Thank you @xiaoleih41. Actually I need PayPal for Worldwide Payment. Currently i am targeting African countries. I saw Braintree SDK - https://www.braintreepayments.com/country-selection - Only limited countries are there.
@pp-randy - Can you please give me proper solution for this issue?
@Karanp13 The recommendation is to use the Express Checkout solution with Braintree SDKs. It should support all the countries listed on this page.