Google Checkout

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/19/2008 4:16:22 AM
Gravatar
Total Posts 6

Google Checkout

Hi Joe,

I saw your implementation of Google Checkout in mojoPortal.Business.WebHelpers in SVN. I would also like to setup an online shopping site using mojoPortal.

How's your view on using Google Checkout in the portal?

There are mainly 4 APIs from google and which of them you are going to support? I saw the implementation about Checkout API and Notification API. Will you support Merchant Calculations API and Order Processing API in the near future?

Thanks alot!

alex

7/21/2008 6:23:43 AM
Gravatar
Total Posts 18439

Re: Google Checkout

Hi Alex,

In general I'm doing what is needed to sell download products as I will soon be opening a store on this site to sell some products.

I have implemented all of the notification API because it was needed to support download products otherwise the user could not download until the order has been reviewed. This way we get notification from google that the payment has cleared an we automatically change the status of the order to Fulfillable so that the downloads are available. I also implemented 1 call to the Order Processing API to tell google the order is "Delivered" after the order status has changed.

Later when I get around to implementing support for shippable products I will look into additional work with the Order Processing API, though one could easily just use the google pages for processing the orders if google was the only payment process being used.

With PayPal its different, the user is immediately redirected back to your site and we can direct him to his order detail page. If the payment is cleared the download links are there, otherwise a message indicating that the links will appear as soon as payment is cleared. Generally with PayPal the payment is cleared right away unless they pay with an echeck. In any case I have implemented the PayPal IPN and PDT APIs.

I've structured it so that the re-useable ecommerce parts are now in the core of mojoportal and there is a provider model in place so when posts come in from google or PayPal the correct provider is called to handle the post. So the WebStore project has the actual implementations working, but now I am also implementing ecommerce in a new product "Event Calendar Pro" which will also have providers and will be able to sell tickets to events.

The WebStore is getting alot of work lately in order to open my store, I think I'm within a few days of opening the store and making a new release of mojoportal. The store is very basic right now but sufficient for selling a few downloadable products or taking donations using Authorize.NET and/or PayPal and/or Google Checkout. A lot of work yet remains to implement a proper product catalog with categories, support for shippable products etc.

Best,

Joe

9/10/2012 2:17:04 PM
Gravatar
Total Posts 24

Re: Google Checkout

Hi Joe, the other piece I'd like to see is the ability to use the new google subscription api for checkout.  Here is a link to the documentation:

https://developers.google.com/checkout/developer/Google_Checkout_Beta_Subscriptions#HTML_Example

Basically you want to be able to post a checkout button that will use a form to fill in all of the information.  Once submitted, the customer can be recharged periodically for their subscription.  Google stores the payment information on their system.

Here's what the form looks like:


<form method="POST" action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/MERCHANT_ID" accept-charset="utf-8">
<input type="hidden" name="shopping-cart.items.item-1.item-name" value="Subscription to My Awesome Site"/>
<input type="hidden" name="shopping-cart.items.item-1.item-description" value="Twelve Months of Access to My Awesome Site"/>
<input type="hidden" name="shopping-cart.items.item-1.unit-price.currency" value="USD"/>
<input type="hidden" name="shopping-cart.items.item-1.unit-price" value="0.00"/>
<input type="hidden" name="shopping-cart.items.item-1.quantity" value="1"/>
<input type="hidden" name="shopping-cart.items.item-1.subscription.type" value="google"/>
<input type="hidden" name="shopping-cart.items.item-1.subscription.period" value="MONTHLY"/>
<input type="hidden" name="shopping-cart.items.item-1.subscription.payments.subscription-payment-1.times" value="12">
<input type="hidden" name="shopping-cart.items.item-1.subscription.payments.subscription-payment-1.maximum-charge" value="12.00">
<input type="hidden" name="shopping-cart.items.item-1.subscription.payments.subscription-payment-1.maximum-charge.currency" value="USD">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.item-name" value="Usage of My Awesome Website for One Month">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.item-description" value="Your flat charge for accessing my website">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.quantity" value="1">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.unit-price" value="12.00">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.unit-price.currency" value="USD">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.digital-content.display-disposition" value="OPTIMISTIC">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.digital-content.url" value="http://mywebsite.example.com">
<input type="hidden" name="shopping-cart.items.item-1.subscription.recurrent-item.digital-content.description" value="Head over to the website linked below for pie!">
<input type="hidden" name="shopping-cart.items.item-1.digital-content.display-disposition" value="OPTIMISTIC">
<input type="hidden" name="shopping-cart.items.item-1.digital-content.description" value="Congratulations! Your subscription is being set up. Feel free to log onto &lt;a href='http://mywebsite.example.com'&gt;mywebsite.example.com&lt;/a&gt;and try it out!">
<input type="hidden" name="shopping-cart.items.item-2.item-name" value="Decoder Ring">
<input type="hidden" name="shopping-cart.items.item-2.item-description" value="One-time charge for the decoder ring you (coincidentally) also ordered from me.">
<input type="hidden" name="shopping-cart.items.item-2.unit-price" value="5.00">
<input type="hidden" name="shopping-cart.items.item-2.unit-price.currency" value="USD">
<input type="hidden" name="shopping-cart.items.item-2.quantity" value="1">
<input type="hidden" name="_charset_"/>
<input type="image" name="Google Checkout" alt="Fast checkout through Google" src="http://checkout.google.com/buttons/checkout.gif?merchant_id=MERCHANT_ID&w=180&h=46&style=white&variant=text&loc=en_US" height="46" width="180"/>
</form>

9/15/2012 4:45:35 PM
Gravatar
Total Posts 18439

Re: Google Checkout

You might be able to impement something like this as a custom feature similar to the tutorial about Building a Simple PayPal Buy Now button.

At some point I may implement google checkout subscriptions for Site Membership Pro and for Recurring Invoices in Web Invoice Pro.

I don't expect to add it to WebStore any time soon.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.