Hi Jon!
I am also still on this road, still have some miles to go
but i can
help you!
1. Setup 2 accounts in the sandbox: (one of which should be
a merchant
account (http://sandb
ox.google.com/checkout/sell/) to enable you sell
and the other should be an ordinay account.)
2. Download the PHP Google Checkout API sample code
(http://
code.google.com/apis/checkout/samplecode.html)
3 (a). Logon to your merchant account (http://sandbox.google.com/
checkout/sell/) Click the Settings Tab -> Integration
-> here you
will see your
Google vendor ID and Merchant Key. Open the
responsehandler.php (in
the sample code u downloaded) and replace the blanks in your
Merchant
ID and Merchant Key with these values. Upload the whole
sample code
directory to your server and set its security to 777. make
sure the
messagelog file in this directory is writtable.
3 (b). set the API callback URL to the location of to the
new location
of your responsehandler.php file and set your Callback
method to XML
4. You then Need to setup Basic authentication, use this
wonderful
tool by Ropu! (My Hero!) (http://dem
o.globant.com/~brovagnati/tools/
htaccess.php). it will then create a .htaccess and a
.htpasswd in your
directory.
5. when you browse the demo page directory, and login in and
go
through the whole payment process using the second account.
6. Check the contents of your googlemessagelog.php (The
order details
should be written in this file)
7. look for the section bekow in resonsehandler.php
case "new-order-notification": {
$response->SendAck();
break;
}
adjust it include the code to post to your database
case "new-order-notification": {
//insert your code here
$response->SendAck();
break;
}
I havent gotten this bit either but thats how it should go.
Hope it helps!
On Jun 4, 4:13 pm, Jon <j... site-street.com> wrote:
> Hi everyone
>
> I am trying to implement Google Checkout into a site
and am impressed
> by it's incredible power. But, performing what I think
is a pretty
> simple task, is proving very difficult.
>
> All I want to do is send one or two products to GCO
along with the
> prices, no tax involved, no shipping, nothing fancy at
all. I then
> want to receive the transaction response and update a
record in aMySQLtable usingPHPto change it to 'paid' and
maybe the Google
> Order ID and date/time of payment, that's it!
>
> Because I need to send the purchase details as XML and
then interpret
> the response from XML, I am finding this very difficult
to achieve.
>
> Does anyone have a simple script to do this or at least
give me a
> startup help?
>
> I've been using PayPal for years and implementing that
was extremely
> easy so it's frustrating that this is giving me such a
headache.
>
> I've gone through the forums for help and not really
found the
> solution hence me starting this thread.
>
> Many thanks in anticipation.
>
> Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|