vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Add Google Checkout to Paid Subscriptions (https://vborg.vbsupport.ru/showthread.php?t=249656)

whitey06 09-10-2010 07:43 AM

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.

whitey06 09-10-2010 10:34 AM

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 :D
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.

CaseLogic 09-10-2010 02:52 PM

Quote:

Originally Posted by whitey06 (Post 2096162)
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 :D
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 :)

MichaelDance 09-13-2010 09:31 AM

Quote:

Originally Posted by CaseLogic (Post 2094098)
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.

dimopoulos 11-18-2010 12:08 PM

Great plugin!!

Thank you for sharing. I really wanted to have an alternative to Paypal and now I have it.

dimopoulos 11-20-2010 03:02 PM

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.

CaseLogic 11-20-2010 03:18 PM

Quote:

Originally Posted by dimopoulos (Post 2123888)
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.

dimopoulos 11-21-2010 11:39 AM

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.

CaseLogic 11-21-2010 01:08 PM

Let me know so I can help you debug

dimopoulos 11-22-2010 08:40 PM

1 Attachment(s)
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!


All times are GMT. The time now is 01:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01246 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete