Problem with Vietnam shipping address

pbww-dev
Contributor
Contributor

Hello everybody,

 

I was developing a checkout process using this component https://github.com/paypal/paypal-checkout. While in sandbox, i am able to complete the checkout & payment process by using Malaysia/US (tested) address but not Vietnam. With Vietnam address, it always returns status HTTP 400 Bad request with error "SHIPPING_ADDRESS_INVALID", even with a valid Vietnam address.

 

Things i've tried with sandbox mode but failed attempts:

1. Use a valid Vietnam address with postal code 10000 (It seems like Vietnam does not have postal code.)

2. Try adding Vietnam address as preferred shipping address (failed, unable to add without displaying reasons but just exclamation mark)

3. Use USD as currency.

 

We were using ReactJS hence below is how the payment component instantiated.

  const payment = (data, actions) => actions.payment.create({
    payment: {
      transactions: [
        {
          amount: {
            total: grandTotal,
            currency: props.currency
          },
          item_list: {
            "shipping_address": {
              "recipient_name": `${first_name} ${last_name}`,
              "line1": `${street1} ${street2}`,
              "line2": `${street3} ${street4}`,
              "city": city,
              "state": state,
              "phone": telephone_number,
              "postal_code": postcode.toString(),
              "country_code": country_code
            }
          }
        }
      ]
    }
  });

Since we are targeting for Vietnam hence it is necessary to be able test on Vietnam address. Any help would be greatly appreciated.

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.