vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help with Google Checkout API (https://vborg.vbsupport.ru/showthread.php?t=172652)

ChurchMedia 03-10-2008 08:07 PM

Help with Google Checkout API
 
I'm working on a Google Checkout API. Right now I'm stuck with the settings field in the paymentapi table. All I need are two fields -- one for the Vendor ID and one for the Merchant Key. I don't know how to use datastore (would love to learn).

What does this code need to look like? It doesn't work as-is:

a:3:{s:17:"google_vendorid";a:3:{s:4:"type";s:4:"t ext";s:5:"value";s:12:"";s:8:"validate";s:6:"strin g";}s:6:"google_merchantkey";a:3:{s:4:"type";s:4:" text";s:5:"value";s:16:"";s:8:"validate";s:6:"stri ng";}}

Thanks!

MoT3rror 03-10-2008 08:16 PM

Needs to be unserialize.

ChurchMedia 03-10-2008 10:06 PM

1 Attachment(s)
I didn't actually serialize it, though. I just modified it from the authnet api info. I thought that the subscriptions.php script in the admincp would unserialize it.

This is the way it looks:
Attachment 77070

Any ideas?

(edit) Yeah, it's here:

PHP Code:

if ($_REQUEST['do'] == 'apiedit')
    {
        
$settings unserialize($api['settings']);
        if (
is_array($settings))
        { 

I must not have the code right, but I don't know what to do....

ChurchMedia 03-10-2008 11:05 PM

I got it:

a:1:{s:17:"google_merchantid";a:3:{s:4:"type";s:4: "text";s:5:"value";s:10:"1234567890";s:8:"validate ";s:6:"string";}}

:)

iogames 03-10-2008 11:45 PM

Would be 3.7.x Integrated Google CheckOut? [Am I missing something?]

ChurchMedia 03-10-2008 11:50 PM

Quote:

Originally Posted by iogames (Post 1461903)
Would be 3.7.x Integrated Google CheckOut? [Am I missing something?]

Not so far! I wish it was. If the vB team plans to include it, I'd like to know! :)

I've gotten as far as putting together the class_google.php file, but I'm stuck again.

Chewy954 06-08-2008 08:19 PM

Did you ever get this working?


All times are GMT. The time now is 11:42 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.01024 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete