Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5952007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:37:10+00:00 2026-05-22T17:37:10+00:00

Google checkout is having an issue with dynamic merchant shipping callback calculation. When customer

  • 0

Google checkout is having an issue with dynamic merchant shipping callback calculation.

When customer click on the checkout with google button, I pass in the shipping method called “default shipping” and shipping cost is $100.

This default value will only show to customer when he selected shipping address and google callback to merchant site to fetch shipping method fail.

When customer login to google account and entered the shipping address (country/city/state/postcode…) , google will do an instant callback to merchant script to fetch the latest shipping method available.

I able to have google callback to me successfully, but my shipping method to google is not accepted.

Example,

When customer selected to ship to US NC, then:

  • I will return FedEx Economy as shipping method (my system will retrive available shipping method based on address given)
  • I don’t need to show default shipping at all

but google say error below:

Merchant Calculations: We were looking for data in your merchant-calculation-results, but were not able to find it: result: address-id:209802946439880shipping-name: default shipping when fail

XML received from google instant callback:

<?xml version="1.0" encoding="UTF-8"?>
<merchant-calculation-callback xmlns="http://checkout.google.com/schema/2" serial-number="abd99db3-d3e3-485b-ba9c-75863d02ed65">

  <shopping-cart>

    <merchant-private-data>
      <session-id>f199c97f7fa9b19ade6fa57a17ce79d61508aef4</session-id>
    </merchant-private-data>

    <items>
      <item>
        <item-weight value="0.0" unit="LB" />
        <tax-table-selector>food</tax-table-selector>
        <item-name>Test prod 3</item-name>
        <item-description></item-description>
        <unit-price currency="USD">1.0</unit-price>
        <quantity>1</quantity>
        <merchant-item-id>test11</merchant-item-id>
      </item>
    </items>

    <cart-expiration>
      <good-until-date>2011-05-20T23:59:59.000Z</good-until-date>
    </cart-expiration>

  </shopping-cart>

  <buyer-id>119687448728341</buyer-id>

  <calculate>

    <addresses>

      <anonymous-address id="209802946439880">
        <country-code>US</country-code>
        <city>Charlotte</city>
        <region>NC</region>
        <postal-code>28227</postal-code>
      </anonymous-address>

    </addresses>

    <shipping>
      <method name="default shipping" />
    </shipping>

    <tax>false</tax>

    <merchant-code-strings />

  </calculate>

  <buyer-language>English</buyer-language>

</merchant-calculation-callback>

XML to post to google after merchant script custom shipping calculation done:

<?xml version="1.0" encoding="UTF-8"?>
  <merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
    <results>
      <result shipping-name="Fedex Economy" address-id="209802946439880">
        <shipping-rate currency="USD">15.20</shipping-rate>
        <shippable>true</shippable>
      </result>
    </results>
  </merchant-calculation-results>

So I suspect google must require me to return back the same default shipping name when I post back to google.

I tried it, if return the same default shipping name by modify the shipping amount, it works!

But when I return same default shipping name, at the same time an additional shipping method as FedEx Economy to google, google will reply error saying invalid extra data:

Merchant Calculations: You sent us invalid extra data in your merchant-calculation-results: [address-id: 209802946439880/shipping-name: Fedex Economy ]

<?xml version="1.0" encoding="UTF-8"?>
  <merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
    <results>
      <result shipping-name="default shipping" address-id="209802946439880">
        <shipping-rate currency="USD">8</shipping-rate>
        <shippable>true</shippable>
      </result>
      <result shipping-name="Fedex Economy" address-id="209802946439880">
        <shipping-rate currency="USD">15.20</shipping-rate>
        <shippable>true</shippable>
      </result>
    </results>
  </merchant-calculation-results>

How come! Isn’t it not practical to have this kind of rules…

When google pass back shipping city/state/postcode/country to me, my system will calculate and return available shipping method(s) only

It means before google let me know the address, I don’t even know there is how many shipping method available for the particular customer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:37:11+00:00Added an answer on May 22, 2026 at 5:37 pm

    That is how merchant calculated shipping works:

    REF: Merchant Calculations API -> Shipping

    You must specify a unique name and a
    default shipping cost for each
    shipping option.

    An alternative is for you to collect the zip code prior to sending your customer to Google Checkout. Your system can then pre-determine shipping availability and costs prior to redirecting your customer to Google and pass the shipping options/costs as “flat rate shipping” – this is just a Google Checkout specific term that means “here are the shipping costs for this order” (that you have already pre-calculated some way).

    More reference:

    1. Ok to ask for zip code
    2. More forum discussions

    Hope this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My business is setting up online billing using PayPal and Google checkout. I'm looking
Google Analytics reads like a seismic chart lately
Google is not being my friend - it's been a long time since my
Google maps in some region can serve traffic information showing the blocked roads and
Google's not coming to my rescue, here, and I just know this is the
Google results on this one are a bit thin, but suggest that it is
Google chrome doesn't behave the same as other browsers when encountering this nugget: <?php
Google is failing me on this one. Let's say I have some ECMA script
Google/MyBrain are failing me. Without using a framework (which I'll never get past my
Does Google force employees who have offers from Facebook to leave immediately?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.