subscribepro-magento2-ext icon indicating copy to clipboard operation
subscribepro-magento2-ext copied to clipboard

Shipping Address not working with apple pay (ShipperHQ)

Open qaniel opened this issue 2 years ago • 0 comments

When loading the shipping methods the data being sent to the module has the wrong values: Data sent

{
    "shippingContact": {
        "administrativeArea": "IL",
        "country": "United States",
        "countryCode": "US",
        "familyName": "",
        "givenName": "",
        "locality": "Chichago",
        "postalCode": "60007",
        "subAdministrativeArea": "",
        "subLocality": ""
    }
}

but on the module in \Swarming\SubscribePro\Model\ApplePay\Shipping::getDirectoryRegionByName the administrativeArea is needed to be used as the state/region name (Illinois in this case) instead of the provided id or code. Thus sending an empty region to shipperhq and returning invalid rates for the requested address

qaniel avatar Apr 18 '22 20:04 qaniel