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

  • SEARCH
  • Home
  • 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 6924823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:42:40+00:00 2026-05-27T10:42:40+00:00

i am trying to setup google checkout on my site, now at one point,

  • 0

i am trying to setup google checkout on my site, now at one point, google sends me a serial number, to which i am supposed to reply after posting the ‘OK’ header,
( some details here http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html#responding_to_notifications )

The problem is that, idk how to reply, i am trying this:

{
header('HTTP/1.0 200 OK');
$post = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : file_get_contents("php://input");
$post = substr($post, 14);
$pr = @'<?xml version="1.0" encoding="UTF-8"?>
       <notification-acknowledgment xmlns="http://checkout.google.com/schema/2" serial-number="' . $post . '" />';
        echo $pr;

        if (isset($post)) {

         //Something with the DB..
 }

After receiving this acknowledgement recieved notification google will stop posting me the request for the same serial numebr, but i keep on getting the requests(know this from db), implying that google is not able to receive my notification acknowledgement.

Where do i err>’?

  • 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-27T10:42:40+00:00Added an answer on May 27, 2026 at 10:42 am

    I did some more search and some hit-and-trials, and the result is this :

    To make a server-to-server reply you just echo your reply. And if you need to pass any header, pass them before you echo anything,

    Note: if you are sending reply in xml, like in case of google checkout, beware of spaces and line returns in your echo text.

    $pr = "<xyz>
    123
    </xyz>";
    

    might not be same as $pr="<xyz>123</xyz>";

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

Sidebar

Related Questions

After trying to setup my site for Google Webmaster Tools I found that my
I am trying to setup my nexus one and acer iconia google email account
I'm trying to setup a private beta for a site that I'm working on.
I have setup google checkout for my java web application and I want to
I am trying to setup drupal to host multiple sites which will not effect
I am trying to setup django-nonrel on GAE (Google App Engine) - following the
I am trying to setup a mapper job on Google app engine using the
I'm trying to implement Google's hybrid OpenID+OAuth login on a Google AppEngine site. For
I'm trying to setup a cookieless domain in accordance with Google's instructions for best
I'm trying to use the Django nonrel project for google app engine. I setup

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.