paypal / paypalcheckout-ios

Need to add Native Checkout to your iOS Application? We can help!
http://www.paypal.com
Other
70 stars 55 forks source link

[🐞] Bug Report #132

Closed mpalanisamy-pkglobal closed 1 year ago

mpalanisamy-pkglobal commented 1 year ago

🐞 Data missing in callbacks

onShippingChange callback is not sending the full address.

🔬 Minimal Reproduction

Initialize the SDK and continue with Checkout.start function and setOnShippingChangeCallback will be called. In the shippingChangeCallback we are not getting the user full shipping address.

😕 Actual Behavior

adminArea1, AdminArea2 is providing the state and city code but AddressLine1 and AddressLine2 values are not getting.

🤔 Expected Behavior

Expecting adminArea3, adminArea4, fullName details

🌍 Environment

➕ Additional Context

from the callbacks we are not getting the required information from Paypal account Callback: onShippingChange AddressLine1(adminArea3), AddressLine2(adminArea4), fullName Callback: onApproval onApproval.cart.bill firstname, lastname, phone

jonathajones commented 1 year ago

Hi @mpalanisamy-pkglobal - Thanks for the ticket. We are working to better align the android and iOS interfaces, and this is an area we are improving on iOS. We should have this resolved in the next release.

jonathajones commented 1 year ago

Hi @mpalanisamy-pkglobal -

We do not provide addressLine1 and addressLine2, as it is considered protected information until the user completes the transaction with that address. We only provideadminArea1 and adminArea2 in the shipping callback to allow you to recalculate shipping costs based on the locality / postal code. This should be consistent across iOS and Android with the latest release (0.112.0)