Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Google Checkout in ASP.Net

Ok, my site has 3 check out options - our credit cards processing , PayPal , and Google Checkout, I handle the first two by processing the request then redirecting the user to a Receipt page to display a printable ticket and show details of the transaction. This seems very hard to implement with Google Check Out.

So I use Response.Redirect(...) to redirect the user to the Google CheckOut. As far as I understand there is no way to give Google a Redirect URL for successful transactions. The only way to do it is give Google a URL to send notifications.

So I am going to create an aspx page to listen to notifications from Google, Here this is will be placed in the database.

My problem is.. How do I implement all this for a smooth user interface? The user is going to be redirected to Google (I don't know of a way to do Response.Redirect in a new tab or window) so the user is now logging into google , processing transaction, Then they have to on their own go back to my site , log in, then maybe click on a recent purchases link?? Then I can display the receipt. This doesn't seem right ... Is there any other way that other people have implemented Google Checkout a little more smoothly.

like image 518
Scott Selby Avatar asked Sep 05 '12 19:09

Scott Selby


2 Answers

An alternative to the classic Checkout API is the newer Wallet API:

https://developers.google.com/in-app-payments/

The entire transaction is in-app which means the customer never leaves your site. The transaction fees are also cheaper.

like image 178
Mihai Ionescu Avatar answered Nov 10 '22 11:11

Mihai Ionescu


Did you look at the continue-shopping-url parameter, for more info see the html api parameter reference:

HTML API Parameter Reference

like image 35
Erwin Avatar answered Nov 10 '22 12:11

Erwin