Google Groups Home
Help | Sign in
Discussions > PHP & Google Checkout API > PHP Sample code v1.2.5
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
ropu  
View profile
(2 users)  More options Sep 25 2007, 5:26 pm
From: ropu <rovagn...@gmail.com>
Date: Tue, 25 Sep 2007 21:26:37 -0000
Local: Tues, Sep 25 2007 5:26 pm
Subject: PHP Sample code v1.2.5
Hi all!

im glad to announce the release of the PHP Sample code v1.2.5

Go here to get your copy:
http://code.google.com/p/google-checkout-php-sample-code/downloads/list

Full Docs can be found here:
http://demo.globant.com/~brovagnati/php-sample-code/doc/

Changelog:

v1.2.5 09/25/2007 (ropu)
  - Added Carrier Calculation Support
  - Added Line-Item Shipping
  - Updated posting URLs
  - Added PHP Docs
  - Modified xml-processing/* class names to avoid conflics
  - Added buyNow button support CheckoutButtonNowCode()

Ropu


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ropu  
View profile
(2 users)  More options Sep 27 2007, 11:05 am
From: ropu <rovagn...@gmail.com>
Date: Thu, 27 Sep 2007 15:05:01 -0000
Local: Thurs, Sep 27 2007 11:05 am
Subject: Re: PHP Sample code v1.2.5
Hi

i've just updated the PHP Sample code to v1.2.5a with these fixes:

v1.2.5a 09/27/2007 (ropu)
  - Fixed bugs in Line-Item Shipping
  - Added Line-Item Shipping demos

http://code.google.com/p/google-checkout-php-sample-code/downloads/list

Ropu

On Sep 25, 6:26 pm, ropu <rovagn...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Hutchinson  
View profile
(1 user)  More options Sep 27 2007, 1:37 pm
From: Bob Hutchinson <hu...@arwystli.net>
Date: Thu, 27 Sep 2007 18:37:35 +0100
Local: Thurs, Sep 27 2007 1:37 pm
Subject: Re: [google-checkout-api-php] Re: PHP Sample code v1.2.5
On Thursday 27 September 2007 16:05, ropu wrote:

> Hi

> i've just updated the PHP Sample code to v1.2.5a with these fixes:

> v1.2.5a 09/27/2007 (ropu)
>   - Fixed bugs in Line-Item Shipping
>   - Added Line-Item Shipping demos

> http://code.google.com/p/google-checkout-php-sample-code/downloads/list

perhaps (next time) you could add a demo case for third party tracking, there
isn't one and there have been one or two people scratching their heads.

--
--------------------------------------------------
Bob Hutchinson
Arwystli Networks
  Linux specialists
  Server administration
  Programming
  Web Hosting
  Mail Hosting
web: http://midwales.com
email: hu...@arwystli.net
skype: bobhutch
--------------------------------------------------

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ropu  
View profile
(2 users)  More options Oct 1 2007, 12:35 pm
From: Ropu <rovagn...@gmail.com>
Date: Mon, 1 Oct 2007 13:35:42 -0300
Local: Mon, Oct 1 2007 12:35 pm
Subject: Re: [google-checkout-api-php] Re: PHP Sample code v1.2.5

may be this can help

  $tracking_attr_types = array(
                              'buyer-id' => 'buyer-id',
                              'order-id' => 'order-id',
                              'order-subtotal' => 'order-subtotal',
                              'order-subtotal-plus-tax' =>
'order-subtotal-plus-tax',
                              'order-subtotal-plus-shipping' =>
'order-subtotal-plus-shipping',
                              'order-total' => 'order-total',
                              'tax-amount' => 'tax-amount',
                              'shipping-amount' => 'shipping-amount',
                              'coupon-amount' => 'coupon-amount',
                              'coupon-amount' => 'coupon-amount',
                              'billing-city' => 'billing-city',
                              'billing-region' => 'billing-region',
                              'billing-postal-code' =>
'billing-postal-code',
                              'billing-country-code' =>
'billing-country-code',
                              'shipping-city' => 'shipping-city',
                              'shipping-region' => 'shipping-region',
                              'shipping-postal-code' =>
'shipping-postal-code',
                              'shipping-country-code' =>
'shipping-country-code',
                            );

$Gcart->AddThirdPartyTracking(MODULE_PAYMENT_GOOGLECHECKOUT_3RD_PARTY_TRACK ING,

$tracking_attr_types);

Note for 3rd party tracking: Actual configuration supports just one 3rd
party
 tracking Co. And some modification maybe needed to do in the code for
 specific trakers.
 Read:
 http://code.google.com/apis/checkout/developer/checkout_pixel_trackin...
 And change the code here:
  googlecheckout/gcheckout.php
 Maping works this way:
  $tracking_attr_types = array(
                              'GC_attr_type1' => '3rd_attr_name1',
                              'GC_attr_type2' => '3rd_attr_name2',
                              ...
                              );
  Will be traduced to:
  <parameters>
    <url-parameter name="3rd_attr_name1" type="GC_attr_type1"/>
    <url-parameter name="3rd_attr_name2" type="GC_attr_type2"/>
    ...
  </parameters>

ropu

On 9/27/07, Bob Hutchinson <hu...@arwystli.net> wrote:

--
.-. --- .--. ..-
R  o  p  u

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tofu  
View profile
(3 users)  More options Oct 2 2007, 5:58 pm
From: tofu <kob...@gmail.com>
Date: Tue, 02 Oct 2007 21:58:51 -0000
Local: Tues, Oct 2 2007 5:58 pm
Subject: Re: PHP Sample code v1.2.5
Is there possibly something more bite sized?

For example, with authorize.net, all I need is curl, merchant id/key
and one simple array containing (at minimum) the total, cc details and
address. Even with comments, it takes less than a hundred lines of
code to get a card charged, and a result back from their server saying
it's approved. Flipping a test bit and using a test CC is all you need
to go from production to test. It takes less than an hour to figure
out how it works and to integrate it within a site.

Now with google checkout, I can send XML to the server and get a
response back, but I'm still confused about how I auth. and capture a
card. Isn't there a simple way of saying "here's the card, here's the
cost, here's the address, please verify it, charge it, and let me know
it went thru."? I can handle the rest of the logic on my own, but
without knowing how to actually charge a card, I'm kinda stuck.

Any suggestions would be greatly appreciated.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pablof  
View profile
(2 users)  More options Oct 3 2007, 8:21 am
From: pablof <pab...@gmail.com>
Date: Wed, 3 Oct 2007 09:21:51 -0300
Local: Wed, Oct 3 2007 8:21 am
Subject: Re: [google-checkout-api-php] Re: PHP Sample code v1.2.5
GC will authorize the cc autmatically, but you have to charge the
order manually in the merchant center.
you can set the option to charge the orders automatically:
http://checkout.google.com/support/sell/bin/answer.py?answer=45987&qu...
but you have to be sure the cart came from you and was not tampered in the way.

so..
if you're gonna review the orders manually use the html api which is
very simple, yet you can do a lot of things:
http://checkout.google.com/support/sell/bin/answer.py?answer=45987&qu...

if you want everything automated you should go with the xml api.
you can use any part of the sample code you need, or implement the api
yourself, etc.

cheers,

On 10/2/07, tofu <kob...@gmail.com> wrote:

--
pablof

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Redbrazil  
View profile
(1 user)  More options Oct 3 2007, 10:26 am
From: "Redbrazil" <redbra...@earthlink.net>
Date: Wed, 3 Oct 2007 10:26:13 -0400
Local: Wed, Oct 3 2007 10:26 am
Subject: RE: [google-checkout-api-php] Re: PHP Sample code v1.2.5
I am a member of the Forum and I have Google checkout implemented on our
website www.redbrazil.com. We are looking for an IT person to write a short
book about Google Checkout. If I can get someone to come up with the bulk of
the text (even rough) text, we can edit it into a useable draft.

Editor will receive 15% of cover price on all sales plus a small advance. If
anyone thinks they have what it takes to pull a book like this together (you
don't have to be a professional writer) then please contact me at
s...@mindspring.com  or call me At 540-305-6552.

While this may not be an approved use of the forum, I have seen enough
questions and anguish over Google Checkout to believe that such a book would
be a real service.

Sean O'Reilly
President & CEO
Auriga Distribution Group
Redbrazil.com
***************

Paypal for Business
Accept Credit Cards in Minutes
https://www.paypal.com/us/mrb/pal=78WZ3WYMU56U2

Redbrazil.com
Customer Service
**************

Paypal for Business
Accept Credit Cards in Minutes
https://www.paypal.com/us/mrb/pal=78WZ3WYMU56U2


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ropu  
View profile
(1 user)  More options Oct 3 2007, 11:24 am
From: Ropu <rovagn...@gmail.com>
Date: Wed, 3 Oct 2007 12:24:41 -0300
Local: Wed, Oct 3 2007 11:24 am
Subject: Re: [google-checkout-api-php] Re: PHP Sample code v1.2.5

Yeap a handbook could be a great idea...

it will help us forum supporters too :P

ropu

On 10/3/07, Redbrazil <redbra...@earthlink.net> wrote:

--
.-. --- .--. ..-
R  o  p  u

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thegempalace@gmail.com  
View profile
(2 users)  More options Nov 16 2007, 5:07 pm
From: "thegempal...@gmail.com" <thegempal...@gmail.com>
Date: Fri, 16 Nov 2007 14:07:31 -0800 (PST)
Local: Fri, Nov 16 2007 5:07 pm
Subject: Re: PHP Sample code v1.2.5
Hi,

I did download the sample that u have. I was wondering how and where
do i copy the php files to make them start working.

I am very very new with php and am trying to offer google checkout
with osc shopping cart. A detailed reply would be highly appreciated.

Thanx.

On Sep 27, 10:05 am, ropu <rovagn...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.