Open MiltosKaripidisPoq opened 10 months ago
Thank you for reaching out to the Native Checkout SDK team. This integration path is now inactive for new merchants. If you are an existing merchant, please contact us here for further assistance.
New merchants can integrate the Native Checkout experience via the Braintree Android SDK or PayPal Android SDK. For more information please see their respective developer documentation linked below.
@chpypl Could you please review it and point me to the right direction? Is it a misconfiguration from my side or an SDK issue? Thanks in advance.
@MaxHastingsPP / @chpypl can we get some help with this issue please? We have an existing Paypal integration based on this SDK. We are planning to move to the new Braintree/Paypal SDK in the coming months but are currently in the process of launching apps with the existing integration in countries where the currency codes are alphanumeric. This issue is blocking the release of the apps. Any help will be much appreciated 🙏
Describe the bug The PayPal SDK fails to map the currency from the shipping method when the country's currency contains letters rather than symbols. For example, Norway's
kr
compared to German's€
.The failure is happening on the
Repository
class (1079 line) and specifically in this function:In our example, the following line gets the value of
currencyFormatSymbolISOCurrency
which iszł290PLN
. The following line filters it and gets the resultzłPLN
, which of course cannot be mapped to theCurrencyCode
enum that expects justPLN
.To Reproduce Steps to reproduce the behavior:
Expected behavior Currency to be mapped correctly so the flow can proceed.
Additional context I am using
1.1.0
version.The API that is made by PayPal is
/graphql
and field path from the response isdata.checkoutSession.cart.shippingMethods[0].amount.currencyFormatSymbolISOCurrency
.