The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Google Checkout to Paid Subscriptions Details »» | |||||||||||||||||||||||||||||
Add Google Checkout to Paid Subscriptions
Developer Last Online: May 2013
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
Show Your Support
|
Благодарность от: | ||
PHILIPS-08 |
Comments |
#12
|
|||
|
|||
yeah the code that it is trying to execute is inserting google checkout into the vB API. The error is coming from mysql_real_escape_strings, which is throwing an access denied error (commonly because there isn't a valid mysql connection).
First thing I would is uninstall (assuming it installed the product despite the error), then reinstall. It's possible it was a fluke with mysql, although not really likely. I will look into replacing that function with the appropriate vB wrapper |
#13
|
|||
|
|||
I just updated to version 1.01 which replaced that mysql call with vB's version. See how that works for you and then get back to me
|
#14
|
|||
|
|||
Ok installed and all working now, that did the trick, dont see any issues, did communication test and all was good
Forgot to mention in my last post that for VB4, the template fetch command in the php file needs changing to the correct format or an error message comes up on the subscriptions page, I replaced it with the following: PHP Code:
But all in all, great mod and much needed in VB |
#15
|
|||
|
|||
Quote:
thanks for the code, I'll have to add it into a vb4 version for the future (I don't have a vb4 forum to test it on right now unfortunately) |
#16
|
|||
|
|||
Ive actually now encountered a problem. I was originally using the Buy Now Buttons and had the product as a digital product and was adding my users manually to the paid subscriptions but now when they are purchasing, its completing the order but then telling me I have to ship the order when the order is Digital so no shipping is required, also it is not changing the usergroup of the customer upon completion of the order.
Its showing up in the transaction stats but not for an individual subscription. Hope that makes sense and you can help me out with this. |
#17
|
|||
|
|||
Quote:
However, the vB Payment API reacts to the 'charge' process, and should be adding the paid subscription successfully once it's charged. The ship state has no impact to the paid subscription. So if you go into transaction log, are you seeing the date, the correct user, and a successful charge? Or is it showing Failure? If it is showing that it Charged, that means everything went through successfully and beyond that, VB Core API is taking over (so my code doesn't impact that). I would make sure your paid subscription is setup correctly to move them to the right usergroup. |
#18
|
|||
|
|||
Ok ive now just checked and the log is now showing as failure for the subscriptions that have been purchased.
When clicked on failure its giving me the transaction details with 3 different sub categories: API: VB error code - Invalid subscription ID Get: Method - Google Checkout Post: Shows all details of the transaction My paid subscription is set up correctly as I use another method on them aswell which works 100% fine and have used many others. |
#19
|
|||
|
|||
Quote:
The first thing I would check is to verify that your template is properly using all the variables, notably the $hash (which it is using to tie the checkout transaction to a user). My guess is that the variable is not properly registering in the template object, or there is a typo in the modified template (because I'm assuming you edited the code and template to support vb4). When you are on the page that says "Order now using Google Checkout", go look at the source and verify that the form input item "item_merchant_id_1" (or something similar, this is off memory) is being set properly. It should look like some random numbers and letters with some dashes in there. If it is blank or something obviously incorrect, I would say that is your issue. |
#20
|
|||
|
|||
Quote:
PHP Code:
Thanks for the replies. |
#21
|
|||
|
|||
Quote:
invalid subscription ID means that google checkout and my API are not correctly exchanging that hash back and forth that identifies the exact transaction |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|