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)

CaseLogic 12-17-2010 12:33 PM

-FTP access or someone to upload an updated PHP file for me
-Template modification access

The only thing that needs to change between the two versions is the template-related code (the template itself and the code fetching the template).

Tasking Mickey 01-05-2011 01:16 AM

With my test transaction, the Integration Console showed these errors:
One of the times you entered is too far in the past.
Quote:

XML Recieved: _type=notification-history-request&start-time=2007-01-01T05:00:00Z&end-time=2010-01-01T05:00:00Z
XML Sent: _type=error&error-message=One+of+the+times+you+entered+is+too+far+in +the+past&serial-number=241005a8-7749-4c68-a756-259b85e4278a
Invalid Serial Number
Quote:

XML we sent: _type=error&error-message=Invalid+serial+number%3A+&serial-number=4fd97cf1-33dd-40f3-8f0f-556f3f18c289
XML we recieved: _type=notification-history-request&serial-number=

CaseLogic 01-05-2011 11:30 AM

Quote:

Originally Posted by desi5257 (Post 2144198)
With my test transaction, the Integration Console showed these errors:
One of the times you entered is too far in the past.

Invalid Serial Number

by test transaction, are you referring to when you do "test communications" via vB admin panel? Or are you running an actual transaction?

The notification history request start/end time stuff is part of the test communications function. All it's trying to do is verify that we can communicate with Google. The error can be ignored. I'm not positive on the serial # part though. The dashes look suspect though.

Please let me know what steps you took to produce this error.

Tasking Mickey 01-05-2011 10:42 PM

By test transaction, I mean an actual transaction. It never showed up in vB.

I made a test subscription (only $0.50).
I purchased the test subscription.
Entered credit card info.
Submitted the order, success.
Went back to vB, saw no record of the order being completed.

CaseLogic 01-10-2011 12:28 PM

Quote:

Originally Posted by desi5257 (Post 2144643)
By test transaction, I mean an actual transaction. It never showed up in vB.

I made a test subscription (only $0.50).
I purchased the test subscription.
Entered credit card info.
Submitted the order, success.
Went back to vB, saw no record of the order being completed.

Sorry for the slow response, I've been busy the past week.

Did you by chance get any transactions working in this time, or are you still encountering this issue?

Verify that your Google Merchant account is setup properly (see mod details above), and verify your google ID/key.

Tasking Mickey 01-10-2011 02:27 PM

As far as I know, I setup the mod right.

I also see the transaction in the log, with this error:

API
vb_error_code invalid_payment_amount

CaseLogic 01-10-2011 02:38 PM

Quote:

Originally Posted by desi5257 (Post 2147029)
As far as I know, I setup the mod right.

I also see the transaction in the log, with this error:

API
vb_error_code invalid_payment_amount

Are you doing transactions in USD or another currency?

jayhawk785 01-11-2011 01:57 PM

I'm seeing the same error 'One of the times you entered is too far in the past' - I'll recheck merchant keys & such, but i copied and pasted so I doubt they are wrong. I've also setup a .50cent subscription for testing, and I do not see anything coming back (yet) in the transaction logs. USD is the currency.

jayhawk785 01-11-2011 06:03 PM

This shows in the google log, as the other error (if you wan to ignore the time one for testing communication):

xml we received:

_type=notification-history-request&serial-number=

xml we sent:

_type=error&error-message=Invalid+serial+number%3A+&serial-number=f31af266-de3e-42c2-ab82-a58654b56cc9

CaseLogic 01-12-2011 12:08 PM

From my memory the "time you entered too far in the past" is simply because I used an old timestamp when doing the "Test communication" function. It shouldn't have any real impact other than annoyance for triggering an error.

As for the serial # error, what kind of system are you running? Can you link me to your forum? I should be able to see if the form information is being sent properly to Google's API

jayhawk785 01-12-2011 02:40 PM

CaseLogic, sent you a pm with the forum info.

Tasking Mickey 01-12-2011 03:38 PM

Quote:

Originally Posted by CaseLogic (Post 2147040)
Are you doing transactions in USD or another currency?

Just USD.

CaseLogic 01-27-2011 08:55 PM

I'm really sorry I haven't been able to address this. I've been incredibly busy at work and I simply haven't had time!

If anyone else wants to try and help out, feel free!

MentaL 01-31-2013 07:32 PM

when a user subscribes it gives the subscription to a random user.

MahdyE23 04-20-2013 11:11 PM

I'm getting this error:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: subscription_payment_gcheckout in [path]/includes/functions.php on line 4734

But there is no line 4734. Can someone please help me? Please PM me how to fix this error, I really need this!

ForceHSS 04-21-2013 02:51 AM

Quote:

Originally Posted by MahdyE23 (Post 2417586)
I'm getting this error:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: subscription_payment_gcheckout in [path]/includes/functions.php on line 4734

But there is no line 4734. Can someone please help me? Please PM me how to fix this error, I really need this!

it goes to line 8557 so i dont know what functions.php you are looking at

line 23 of product-gcheckout-1.01.xml
PHP Code:

plate name="subscription_payment_gcheckout" templatetype="template" date="1283011303" username="CaseLogic" version="1.01"><![CDATA[  <input type="hidden" name="item_name_1" value="<phrase 1="$subinfo[title]">$vbphrase[x_subscription]</phrase>"/> 

line 4734 of functions.php
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userlist AS userlist ON (userlist.relationid user.userid AND userlist.type 'buddy' AND userlist.userid " . $vbulletin->userinfo['userid'] . "

try a fresh install see if that replaces the missing code

MahdyE23 04-21-2013 07:54 PM

Quote:

Originally Posted by ForceHSS (Post 2417606)
it goes to line 8557 so i dont know what functions.php you are looking at

line 23 of product-gcheckout-1.01.xml
PHP Code:

plate name="subscription_payment_gcheckout" templatetype="template" date="1283011303" username="CaseLogic" version="1.01"><![CDATA[  <input type="hidden" name="item_name_1" value="<phrase 1="$subinfo[title]">$vbphrase[x_subscription]</phrase>"/> 

line 4734 of functions.php
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userlist AS userlist ON (userlist.relationid user.userid AND userlist.type 'buddy' AND userlist.userid " . $vbulletin->userinfo['userid'] . "

try a fresh install see if that replaces the missing code

I replace the codes with what you have given me, correct? I currently replaced line 23 with the code you gave me, now on line 4734, it says:

[
PHP Code:

trigger_error('fetch_template() calls should be replaced by the vB_Template class. Template name: ' htmlspecialchars($templatename), E_USER_WARNING); 

Replace it with what you gave me?
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userlist AS userlist ON (userlist.relationid user.userid AND userlist.type 'buddy' AND userlist.userid " . $vbulletin->userinfo['userid'] . "

Thanks for the help!!!!

ForceHSS 04-21-2013 08:41 PM

All you needed to do was to replace the functions.php file as it seems to be messed up for you

MahdyE23 04-22-2013 12:02 AM

Quote:

Originally Posted by ForceHSS (Post 2417746)
All you needed to do was to replace the functions.php file as it seems to be messed up for you

So, once I edit this, it will work? Or, it should work?

Going to test now, thanks boss.

ForceHSS 04-22-2013 01:17 AM

Quote:

Originally Posted by MahdyE23 (Post 2417770)
So, once I edit this, it will work? Or, it should work?

Going to test now, thanks boss.

Don't edit functions.php file you need to upload the default one redown load it from the members area and take out the functions.php file from the zipped pack

MahdyE23 04-22-2013 03:15 AM

Quote:

Originally Posted by ForceHSS (Post 2417775)
Don't edit functions.php file you need to upload the default one redown load it from the members area and take out the functions.php file from the zipped pack

Oh my... So, I was going into my webhosting files to edit the error on line 4734..
I opened it in notepad and this is what it currently is:

PHP Code:

trigger_error('fetch_template() calls should be replaced by the vB_Template class. Template name: ' htmlspecialchars($templatename), E_USER_WARNING); 

I was going to switch it with this:
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userlist AS userlist ON (userlist.relationid user.userid AND userlist.type 'buddy' AND userlist.userid " . $vbulletin->userinfo['userid'] . "

Then save, reupload the functions.php file and then test the mod.. Do I not do that? I thought that is what you said to do in your previous post

MahdyE23 04-23-2013 02:01 PM

Quote:

Originally Posted by MahdyE23 (Post 2417786)
Oh my... So, I was going into my webhosting files to edit the error on line 4734..
I opened it in notepad and this is what it currently is:

PHP Code:

trigger_error('fetch_template() calls should be replaced by the vB_Template class. Template name: ' htmlspecialchars($templatename), E_USER_WARNING); 

I was going to switch it with this:
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userlist AS userlist ON (userlist.relationid user.userid AND userlist.type 'buddy' AND userlist.userid " . $vbulletin->userinfo['userid'] . "

Then save, reupload the functions.php file and then test the mod.. Do I not do that? I thought that is what you said to do in your previous post

Still need help. Anyone :(?

MahdyE23 04-24-2013 03:43 PM

Getting another error.. Can I get some help? I am getting this:

http://prntscr.com/11z3l2

PHP Code:

Warningfetch_template() calls should be replaced by the vB_Template class. Template namesubscription_payment_gcheckout in [path]/includes/functions.php on line 4591 


Eric 04-25-2013 03:59 PM

Quote:

Originally Posted by MahdyE23 (Post 2418269)
Getting another error.. Can I get some help? I am getting this:

http://prntscr.com/11z3l2

PHP Code:

Warningfetch_template() calls should be replaced by the vB_Template class. Template namesubscription_payment_gcheckout in [path]/includes/functions.php on line 4591 


You are running vBulletin 4. This mod is for vB 3.8, and has not been updated to work on vB4 as of yet, from what I can see.

craigvm 05-28-2013 02:53 PM

is this going to be updated for use with vb 4.2

joeychgo 05-28-2013 04:48 PM

Google has announced that Google Checkout will be discontinued in November 2013 http://googlecommerce.blogspot.ca/2013/05/an-update-to-google-checkout-for.html#!/2013/05/an-update-to-google-checkout-for.htmlhttps://vborg.vbsupport.ru/external/2014/09/3.gif

craigvm 05-28-2013 08:12 PM

Quote:

Originally Posted by joeychgo (Post 2424663)

yes but but it will just move to google wallet then witch should be the same sort of thing
i`m using nochex now but it dont work right as it dont change the user group after payment

joeychgo 05-28-2013 08:57 PM

Try 2checkout

craigvm 05-28-2013 09:27 PM

Quote:

Originally Posted by joeychgo (Post 2424691)
Try 2checkout

do you use it


All times are GMT. The time now is 08:37 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.01401 seconds
  • Memory Usage 1,850KB
  • 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
  • (12)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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