List Info

Thread: Notification problem




Notification problem
country flaguser name
United States
2007-08-23 09:29:57
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("","<scri
pt>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.


--~--~---------~--~----~------------~-------~--~----~
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-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Notification problem
user name
2007-08-23 12:56:27
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 <usamaalamgmail.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-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )