[CARRIER SERVICE THIRD-PARTY] ERROR ON CHECKOUT

benyi
New Member
10 0 0

Hello,

With the shipping provider API I added a Carrier Service to my Shopify app (both store and app are in developer mode) and selected it from my store settings. But now at checkout, when I go to choose shipping I get the error message :

benyi_0-1618846147712.png

 

Your cart has been updated and the items you added cant be shipped to your address. Remove the items to complete your order.

I have tried deleting the products, recreating them, marked them as active, adding stock to them, modifirng their weight & the weight of the package. Adding a zone to the specific country that I am adding as the shipping address and also add all the countries as a zone ... and I continue getting this error.

 

The callback url is public and https enable. To test I put this response by default (I find this json in Shopify doc):

    public function getBlueExpressRates(Request $request)
    {
        
        $rates = [
            'rates' => [
                [
                    'service_name'      => "BlueExpress",
                    'service_code'      => "ON",
                    "total_price"       => "1295",
                    "description"       => "This is the fastest option by far",
                    "currency"          => "PES",
                    "min_delivery_date" => "2021-04-20 14:48:45 -0400",
                    "max_delivery_date" => "2021-05-12 14:48:45 -0400"
        
                ]
            ]
        ];

        return json_encode($rates);
    }

Can someone help further my understanding of why this can occur?

Thank you in advance

0 Likes
_JB
Shopify Staff
Shopify Staff
821 97 178

Hey @benyi,

Are you sure PES is the correct currency code? I believe we use PEN for the Peruvian Sol. If that doesn't fix it, please provide the checkout token found in the checkout URL and I can check the logs for more info.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes