subscribepro-magento2-ext
subscribepro-magento2-ext copied to clipboard
Shipping Address not working with apple pay (ShipperHQ)
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