Issues with PayPal Express Checkout Integration

viktory1331
Member
Member

We are currently integrating PayPal Express Checkout into our application, and we are using version v5.59.0, as specified in the adyen documentation for the paypal express checkout. However, we have encountered two issues that are not addressed in the adyen and paypal documentation, and we would appreciate your assistance in resolving them.

1. Error in onShippingAddressChange Callback
When the onShippingAddressChange method is triggered, even without applying validation, we are receiving an error indicating that the address cannot be shipped to, despite the address data conforming to PayPal’s requirements.

The error details are as follows:

ADDRESS_ERROR: "Your order can't be shipped to this address."
COUNTRY_ERROR: "Your order can't be shipped to this country."
STATE_ERROR: "Your order can't be shipped to this state."
ZIP_ERROR: "Your order can't be shipped to this zip."

The shipping address provided is:

City: Richmond Country
Code: GB
Postal Code: TW9 1EH
State: Surrey

This address appears to be valid according to PayPal’s guidelines. Could you please provide guidance on what might be causing this issue and how we can resolve it?

2. onShippingOptionsChange Method Trigger
We are also experiencing uncertainty regarding the onShippingOptionsChange method. The adyen and paypal documentation does not specify when this method should be triggered: before or after the shipping address is selected, and what exactly causes it to be triggered. Could you please help me with expected behavior and trigger conditions for this method?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.