Setting up CS-Cart with Amazon Checkout?

[size=4][font=arial,helvetica,sans-serif]Hi All![/font][/size]

[size=4][font=arial,helvetica,sans-serif]I am thinking of using Amazon Checkout as an extra checkout option in my store. [/font][/size]

[size=4][font=arial,helvetica,sans-serif]For configuring I did read this:[/font][/size]


[size=4][font=arial,helvetica,sans-serif]However on the Amazon Checkout Pipeline settings, do I need to use these URLs?[/font][/size]

[left]Successful Payment Return URL:[/left]

[left][size=4][font=arial,helvetica,sans-serif]Cancel Payment Return URL:[/font][/size][/left]

[left][size=4][font=arial,helvetica,sans-serif]Your Account Return URL:[/font][/size][/left]

[left][size=4][font=arial,helvetica,sans-serif]Integrator URL:[/font][/size][/left]


Do I need to set up these URLs with Amazon Checkout? I am not sure how exactly the Amazon checkout works with the cart and the only URL given by the CS-Cart is the Merchant URL.

And if you do already use the Amazon Checkout, does it work fairly well with CS-Cart 2.2.4?




[size=4]Just to add…[/size]

[size=4]After testing with the sandbox it seems okay operationally … however upon the return back to the store after the order/payment was made I got sandbagged by the Amazon Sandbox with this link and error:[/size]



[size=4]Page Not Found[/size]

[color=#626262][font=Arial, Helvetica, sans-serif][size=3]

[size=4]The page you have requested cannot be found.[/size]



Flow has got this set up OK I think check with him


Are you in Europe or USA? It should work OK in the US… Europe it was not working at all… we spend a lot of time and money on it to get it to work.

[quote name='Flow' timestamp='1332182254' post='133426']

Are you in Europe or USA? It should work OK in the US… Europe it was not working at all… we spend a lot of time and money on it to get it to work.


I'm in the USA.

The actual interface when checking out works good it seems … but the return URL is wrong? The full link is above but it starts with:


which I assume should be [url=“”][/url]

It is putting the extra “//store”

in the URL.

That is why I am not sure if I need to specify a certain URL in these Pipeline URL's or leave them blank?

Successful Payment Return URL:

Cancel Payment Return URL:

Your Account Return URL:

Integrator URL:



I also have a ticket open with support and unfortunately I am getting another bad support experience starting. So far I was charge 10 support credits and they are the support person states it is the third party add-on (Amazon Payments) causing the problem. Isn’t the Amazon Checkout option part of and included with the CS-Cart professional package?

Is not this amazon_checkout.php file (header shown below) part of CS-Cart or is this a third party add-on??? :shock:

<br />
/***************************************************************************<br />
*                                                                          *<br />
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *<br />
*                                                                          *<br />
* This  is  commercial  software,  only  users  who have purchased a valid *<br />
* license  and  accept  to the terms of the  License Agreement can install *<br />
* and use this program.                                                    *<br />
*                                                                          *<br />
****************************************************************************<br />
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *<br />
```<br />
<br />
<br />
Anyhow, the support person added 4 statements into the amazon_checkout.php file:<br />
Line 47 this was added: define('AREA', 'A');<br />
Line 59 this was added: define('AREA', 'C');<br />
Line 135 this was added: define('AREA', 'A');<br />
Line 140 this was added: define('AREA', 'C');<br />
<br />
Unfortunately this did not do anything as the Amazon checkout still returns to the bad URL. <img src="upload://nMBtKsE7kuDHGvTX96IWpBt1rTb.gif" class="bbc_emoticon" alt=":-("><br />
<br />
<br />
It is so aggravating as now I have to wait 24 hours before the support person will reply again with another 'hopeful' solution. And to get charged more credits possibly for another 'hmmm ... try this' type of solution.<br />
<br />
<br />

I had my store's URL as the successful payment return url. After upgrading to 2.2.4, Amazon worked fine. Stopped working a few days later after receiving several successful orders. Now, the order is successful in Amazon, but the customer is directed to the checkout.checkout page. I submitted a bug and submitted a ticket. In the mean time, I stopped using Amazon checkout


Hi Bob,

Actually since at one time it was working … How exactly does the Amazon Checkout work?

What I mean is once your have the items in your cart, click the Amazon Checkout button, and then make the payment successfully on the Amazon box…After this is done, does Amazon transfer that order information into the CS-Cart?? Or does this new order only exist at the Amazon website now?



What happens is a person orders using Amazon Checkout. Selects Address, Shipping method (now working, based on same choices as cs-cart) and method of payment. When this happens a CS-CART invoice is created and is in the status of incomplete… Some time later, maybe 10 minutes, the CS-Cart order changes to Received (This is how I name Processed). I get the purchase notification from CS-Cart and very shortly after, I get another email from Amazon that says “Your Checkout by Amazon sale is official!”

The order is in CS-CART and Amazon, and you have to go to Amazon seller central when shipped and update the order in order to get paid from Amazon. In cs-cart, its like any other order. The invoice is updated with an Amazon reference number.

My problem now is that when the customer submits the order to Amazon they are taken directly to the checkout.checkout page. If they do nothing, then the order just processes as above. The way I found out about the problem is that a customer, after going to the checkout.checkout page, where at the top a message says “processing” and then “order cancelled” (not really!) she then continued and then purchased the same order with a credit card and ended up with two orders.

This worked out good, because she decided to to buy two of the item anyway. I just processed the Amazon order and shipped two items. Got paid from Amazon and by Credit card.

I was able to recreate the problem 4 times and decided its not worth pursuing and just turned off Amazon Payments. CS-CART does not have time to look at it now. I put in a bug report since I do not customize the cart and feel its a CS-Cart problem.


the problem is that amazon payments does not immediately say the order has been processed. As you say it's first incomplete for a couple of minutes so cs-cart says the order is cancelled even though it's not.

I solved this by making a seperate landing page for amazon that people get after paying with amazon. Alt-team (who fixed the entire payment module for europe for me) came up with this idea and it works brilliantly.

It shouldn't be too hard to only do this redirect since you guys have the payment module working already.

Hi Flow,

That is a great idea of a separate landing page for the Amazon Checkout.

Hi pbannette,

I’m still thrown by how the order actually gets inserted into the CS-Cart… probably since I cannot see it happened since the return URL is messed up. And who knows when it will be fixed…I’m stuck with the ‘slow’ support tech again. The one that just sayes ‘I made a code changes … try it and let me know if it works.’ :shock: What!!?!?! You tossed in some code changes but do not even both to test what you just did??!? :shock: And now with perfect fashion with this individual, taking 24 hours to respond back to my ‘That did not do anything to fix the problem’ message (since I have to test it since their support person does not feel they need to I suppose). Only to get a return response of ‘Sorry but we are extremely busy today and I can review your ticket again tomorrow’ … again :shock: What?!?! Jeez just give me my 10 support credits back and I will try to find someone else that can fix it. :confused:

Only if I could request to only receive paid support from ‘Anastasiya Kozlova’ … This CS-Cart support person is absolutely wonderful! They would never just toss some untested code into the online store then tell me to try it and see if it works. Anastasiya Kozlova would test the new code themselves to see if that fixed the problem and if not they would continue to work until the problem is found. In fact I would pay double credit cost for support it I would only be sure to get the help of Anastasiya Kozlova.

This other support person … geez it’s three days now since the ticket was submitted and I’m still without any fix and out 10 credits already. Horrible.

Sorry … rant over. :neutral:


As soon as I setup everything in CS cart, I get this message once someone puts an item in the cart, clicks checkout with amazon, and enters their amazon user id/pass:

We're sorry, but we're currently having problems retrieving order details from the merchant, and cannot process your order. Please return to the merchant's website and try placing your order again.

[quote name='parodius420' timestamp='1335401298' post='135433']

As soon as I setup everything in CS cart, I get this message once someone puts an item in the cart, clicks checkout with amazon, and enters their amazon user id/pass:

We're sorry, but we're currently having problems retrieving order details from the merchant, and cannot process your order. Please return to the merchant's website and try placing your order again.


There is probably something wrong in your setup.

Hey Flow,

You say you've got a special landing page for Amazon, I don't get it.

When the user clicks “pay” in the Amazon window, it sends the order information to

And that's how the CS-Cart receives and process the order, right?

Is the browser redirect located in that file? Where and how do you redirect?

Did you just put a special URL in the Amazon Checkout Pipeline Settings?

I've almost got it working. I just need this last step…

Hey, I'd love to help you out more but am traveling in a couple of hours and only had a minute to check. I'm pretty sure the redirect is in amazon_checkout.php though around line 48:

// If order was placed successfully, associate the order with this customer
if (!empty($order_id)) {
$auth['order_ids'][] = $order_id;

fn_order_placement_routines($order_id, false);

$redirect_url = fn_url('checkout.complete?order_id=' . $order_id);
} else {
fn_set_notification('E', fn_get_lang_var('error'), fn_get_lang_var('text_amazon_failed_order'));
$redirect_url = fn_url('checkout.cart');

fn_redirect($redirect_url, true);

In Amazon I have:

[color=#282828][font=arial, verdana, tahoma, sans-serif]Successful Payment Return URL:[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][font=arial, helvetica, sans-serif]Cancel Payment Return URL:[/font][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][font=arial, helvetica, sans-serif]Your Account Return URL:[/font][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][font=arial, helvetica, sans-serif]Integrator URL: [/font][b][url=“”][/url][/b][color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]/payments/amazon/amazon_callback.php[/size][/font][/color][/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif][color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]Hope this helps![/size][/font][/color][/font][/color]

Awesome, thanks. I got it to work, almost. It now creates two duplicate orders and sends two duplicate confirmation emails to the customer.

Why won't thins thing just WORK?


I have not been able to get Amazon payments to work for a year.

I just tested tonight after about 8 months of inactivating it.

When I place a test order, I am directed to Amazon to complete the order., but then I am directed to the checkout.checkout page, says placing order (after it was already placed at amazon) then says transaction canceled by customer.

I end up with an incomplete order in the CS-Cart Admin (with correct shipping and taxes) and with an Amazon Transaction Id, a receipt from Amazon for the order, no taxes (should be) and incorrect shipping amount. Amazon invoice does not equal CS-Cart invoice.

I don't see the order in my Amazon order page, so I don't know if my credit card on the test order was charged or not. I was going to cancel it, but its not there.

I thought upgrading to 2.2.4 in February may have fixed it, but it did not.

Will try again after upgrading to 3.x a see what happens.


Update: The order went from incomplete to complete and order was finalized while I was typing this.

The amounts are still wrong. The taxes and shipping is still wrong in Amazon.

Still can't use it. It almost works!


I still can't get this to work. People are directed to checkout.checkout page after a successful order.

Does not matter what return link or even no return link at Amazon Pipeline settings.

In CS Cart Amazon Settings, what does Process order on callback failure Yes/No mean?

I thought that [color=#282828][font=arial, verdana, tahoma, sans-serif][font=arial, helvetica, sans-serif]Integrator URL is for "[/font][/font][/color]The Integrator URL is the URL of your Integration service provider where you want the notifications to be sent as the orders are processed. You can set this URL if you are using a third-party integration service provider to manage your orders. You can ask your integration service provider to give you the URL to receive notifications. If you leave this blank, your integration service provider will not receive notifications."

Do you really need this? Not in Knowledge Base for CS-CART to do this.

I did put in a bug report, but did not get a response yet. I can get orders, but people are confused when the go to the checkout.checkout page after a successful order. They think they have to order again and order was cancelled. Had to remove Amazon Payments again.



I'd like to know if we need to fill out the “Integrator URL” field on Amazon as well. If so, what do we put in it?

I sent cs-cart our fixed and working plugin for amazon checkout. I hope they will implement it in the new version.