Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Add Google Checkout to Paid Subscriptions Details »»
Add Google Checkout to Paid Subscriptions
Version: 1.01, by CaseLogic CaseLogic is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 3.8.x Rating:
Released: 08-30-2010 Last Update: 09-04-2010 Installs: 26
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

This is my first released mod, so please rate!

This modification will allow you to use Google Checkout as a payment processor for paid subscriptions.

Google Checkout Steps
-Under Settings->Preferences, select the option to automatically authorize and charge
-Under Settings->Integration, uncheck the digitally signed cart box
-For the API Callback URL, enter in the following:
http://path to your forum/payment_gateway.php?method=gcheckout
-Select the Notification Serial # method
-Select API version 2.5 (do NOT check the notification filtering checkbox!)
-Note your Merchant ID and Merchant Key on the right-hand side (will need for below)

vBulletin Steps
-Upload class_gcheckout.php to <forum base>/includes/paymentapi
-Install product
-Under Paid Subscriptions->Payment API Manager->Google Checkout, enter in the merchant ID and key found under your Settings.
-Activate Google Checkout payment API
-Optionally run "Test Communication" under Paid Subscriptions to ensure successful setup and integration

Known Issues
-Incorrect operation on 32bit systems! (found 12/14/2010)
-Only works with curl installed
-Chargeback handling not implemented yet

Release notes
1.01
-Replaced mysql_ function in install code with vB SQL wrapper
1.0
- Original version

Download Now

File Type: zip product-gcheckout-1.01.zip (4.1 KB, 202 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
PHILIPS-08

Comments
  #22  
Old 09-10-2010, 07:43 AM
whitey06 whitey06 is offline
 
Join Date: Sep 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

In the log in the admincp, there is the following:

"order-summary_shopping-cart_items_item-1_merchant-item-id"

And then its blank next to it.

I think I have found the issue, when I use your php file from this thread, when looking at the page source on the "order using google checkout page", the "item_merchant_id_1" has a value of letters and numbers as you said, as soon as I edit the template part in the php file to enable it to function properly in VB4, the "item_merchant_id_1" value is then blank in the page source so I think it just needs the correct template class for VB4, the code that I am using mustn't be far away from it, just not quite right.

EDIT: Ok ive now edited the template code so that the page source shows a value for "item_merchant_id_1". I'll keep a check on it and see how it goes and post my findings.
Reply With Quote
  #23  
Old 09-10-2010, 10:34 AM
whitey06 whitey06 is offline
 
Join Date: Sep 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I can now confirm that the recent change I made has now worked and the plugin is now working, doing everything it should be
The code change I made was to the template part again and is as follows:

PHP Code:
$templater vB_Template::create('subscription_payment_gcheckout');
            
$templater->register('hash'$hash);
            
$templater->register('cost'$cost);
            
$templater->register('currency'$currency);
            
$templater->register('item'$item);
            
$templater->register('no_shipping'$no_shipping);
            
$templater->register('settings'$settings);
            
$templater->register('subinfo'$subinfo);
            
$templater->register('timeinfo'$timeinfo);
            
$templater->register('userinfo'$userinfo);
        
$form['hiddenfields'] .= $templater->render();
        return 
$form
Thanks again for the help and replies.
Reply With Quote
  #24  
Old 09-10-2010, 02:52 PM
CaseLogic CaseLogic is offline
 
Join Date: May 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by whitey06 View Post
Ok I can now confirm that the recent change I made has now worked and the plugin is now working, doing everything it should be
The code change I made was to the template part again and is as follows:

PHP Code:
$templater vB_Template::create('subscription_payment_gcheckout');
            
$templater->register('hash'$hash);
            
$templater->register('cost'$cost);
            
$templater->register('currency'$currency);
            
$templater->register('item'$item);
            
$templater->register('no_shipping'$no_shipping);
            
$templater->register('settings'$settings);
            
$templater->register('subinfo'$subinfo);
            
$templater->register('timeinfo'$timeinfo);
            
$templater->register('userinfo'$userinfo);
        
$form['hiddenfields'] .= $templater->render();
        return 
$form
Thanks again for the help and replies.
no problem thanks for the vb4 code
Reply With Quote
  #25  
Old 09-13-2010, 09:31 AM
MichaelDance MichaelDance is offline
 
Join Date: Dec 2009
Location: Warwickshire, UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CaseLogic View Post
is that when you are going to the google checkout cart? at what stage in the process is it giving you this error?
The First stage, but ill update to the 1.1 and see but if it comes up again bye bye google.



------------------------

No sorry im not using as it wont work for me..
Click on:
Order Using Google Checkout

Takes me to:
https://checkout.google.com/api/chec...ant/2147483647

Error:

Oops!
We were unable to process your request.


Time when the error happened: 2010-09-13T10:35:26 (UTC) (49021a792b5c8)


I entered all my information correct..

Tbh i dont like it now. I'm clicking un-installed.
Reply With Quote
  #26  
Old 11-18-2010, 12:08 PM
dimopoulos dimopoulos is offline
 
Join Date: Dec 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great plugin!!

Thank you for sharing. I really wanted to have an alternative to Paypal and now I have it.
Reply With Quote
  #27  
Old 11-20-2010, 03:02 PM
dimopoulos dimopoulos is offline
 
Join Date: Dec 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having an issue in the integration.

I followed the instructions.

Created the GCheckout account.
Added bank information/verified bank etc.

Settings/Preferences
- Automatically authorize and charge

Settings/Integration
- Not checked the digitally signed cart box
- Typed (correctly) the callback URL
- Selected the first option in the Serial # (I don't have https)
- Selected API 2.5

In vBulletin I uploaded the class, installed the product and set up the merchant ID and merchant Key. I activated the gateway and tested the communication - all is OK.

Now when I go with a test account to subscribe, I see the google checkout option. I click on it, go to the relevant page with my subscription and pay for it.

In the Google Checkout account, I do see the charge, however it awaits for me to click the relevant button to make the order shipped. This is issue number 1.

Even when I do click shipped, I do not see the order in the logs nor do I see the subscription activated through the callback....

I am somewhat baffled by this. Any help is appreciated.
Reply With Quote
  #28  
Old 11-20-2010, 03:18 PM
CaseLogic CaseLogic is offline
 
Join Date: May 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dimopoulos View Post
I am having an issue in the integration.

I followed the instructions.

Created the GCheckout account.
Added bank information/verified bank etc.

Settings/Preferences
- Automatically authorize and charge

Settings/Integration
- Not checked the digitally signed cart box
- Typed (correctly) the callback URL
- Selected the first option in the Serial # (I don't have https)
- Selected API 2.5

In vBulletin I uploaded the class, installed the product and set up the merchant ID and merchant Key. I activated the gateway and tested the communication - all is OK.

Now when I go with a test account to subscribe, I see the google checkout option. I click on it, go to the relevant page with my subscription and pay for it.

In the Google Checkout account, I do see the charge, however it awaits for me to click the relevant button to make the order shipped. This is issue number 1.

Even when I do click shipped, I do not see the order in the logs nor do I see the subscription activated through the callback....

I am somewhat baffled by this. Any help is appreciated.
for starters, you don't have to worry about clicking ship or anything. once the order is charged, that is enough to initiate the proper callback to vB. vB doesn't care about the status of the shipment, so you don't have to click ship or anything.

if you are not seeing anything in the transaction logs, then google checkout is not communicating properly with vB. If there was an error in the communication, you'd still see that in the logs.

Double- and triple-check the URL that google checkout is contacting. It should be your forum address/payment_gateway.php?method=gcheckout

If that is correct, go to the Google Checkout Integration console (https://checkout.google.com/sell/set...grationConsole). See if there are any errors listed.

Next, go to your transaction log verify the recent transactions (successful or otherwise). See if there are any listed errors for your recent GC transactions, anything at all being logged under gcheckout can be helpful

Finally, the process isn't as instantaneous as paypal. It usually takes 5-10 mins on average,
though.
Reply With Quote
  #29  
Old 11-21-2010, 11:39 AM
dimopoulos dimopoulos is offline
 
Join Date: Dec 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello CaseLogic,

Thank you for the prompt reply.

The issue seems to be twofold. For starters Google did not authorize the transaction (even after 10-15 minutes). My credit card was being checked and that took more than 4 hours. In the end they did charge it successfully.

Now something happened with the communication itself which I am going to try and assess looking at the logs as you suggested.

Thank you again. I will keep you posted.
Reply With Quote
  #30  
Old 11-21-2010, 01:08 PM
CaseLogic CaseLogic is offline
 
Join Date: May 2008
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me know so I can help you debug
Reply With Quote
  #31  
Old 11-22-2010, 08:40 PM
dimopoulos dimopoulos is offline
 
Join Date: Dec 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello CaseLogic,

It appears that the issue was from Google's fraud detection department. It took them several hours to clear my credit card and my second test was successful. The communication with vBulletin is complete and I have enabled the modification for my forum.

Two issues that I want to draw your attention to:

1. I have added the gcheckout_order_instructions phrase so as to display some information when one is presented with the Google Checkout button (follows the other payment apis)
2. In the class itself I have introduced the $_server variable which defaults to checkout.google.com. However you can if you wish set it to sandbox.google.com/checkout so that you can do some testing.

I am attaching the changed files for your attention.

Thank you again!
Attached Files
File Type: zip product-gcheckout-1.01_ND.zip (4.6 KB, 13 views)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12571 seconds
  • Memory Usage 2,361KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete