check out merchant-private-data:
http://code.google.com/apis/c
heckout/developer/index.html#tag_merchant-private-data
the data you place there will be returned to you in
merchant-calculation-callbacks and new-order-notifications
cheers,
On 8/23/07, usamaalam <usamaalam gmail.com> wrote:
>
> Hello everybody,
>
> I have implemented the notification API successfully
and the code
> fires when someone places an order. I need to know how
can I sent a
> Customer Number while charging the credit card so that
on the API
> callback page, I can activate that particular customer
automatically
> when the charge notification is received.
>
> Right now it gives me order number and charged amount,
in addition to
> this I need to pass a customer number and get that
customer number
> somehow in the notification so that the customer will
be processed
> accordingly.
>
> I am using following code on the google checkout button
click event.
>
> CheckoutShoppingCartRequest Req
= btnGCheckout.CreateRequest();
> Req.AddItem(plan, paymentFor,
Convert.ToDecimal(amount) , 1);
> GCheckoutResponse Resp =
Req.Send();
>
> if (Resp.IsGood)
> {
>
//Page.RegisterStartupScript("","<script&g
t;window.open('" +
> Resp.RedirectUrl + "');</script>");
>
Response.Redirect(Resp.RedirectUrl, true);
> }
> else
> {
>
Response.Write("Resp.ResponseXml = " +
Resp.ResponseXml + "<br>");
>
Response.Write("Resp.RedirectUrl = " +
Resp.RedirectUrl + "<br>");
>
Response.Write("Resp.IsGood = " + Resp.IsGood +
"<br>");
>
Response.Write("Resp.ErrorMessage = " +
Resp.ErrorMessage +
> "<br>");
> }
>
>
> I am using following code in the
charge-amount-notification.
>
>
ChargeAmountNotification N4 = (ChargeAmountNotification)
> EncodeHelper.Deserialize(RequestXml,
> typeof(ChargeAmountNotification));
> // Google has
successfully charged the customer's credit
> card.
> string
OrderNumber4 = N4.googleordernumber;
> decimal
ChargedAmount = N4.latestchargeamount.Value;
>
>
> Thanks.
>
>
> >
>
--
pablof
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|