My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Callbacks is just not working.. and I am stumped as to why. When I enable callbacks, this is the error I am getting after being transferred to the Amazon payment page and entering my Amazon login data:
Either there was a problem connecting to your endpoint or the merchant endpoint returned an invalid response status code. The status code received is 403
In Zen Cart this is the callback URL I am using: https://www.mydomain.com/checkout_by_amazon.php
This is the same URL I have confirgured as the merchant URL in Amazon Seller
Looking at the Amazon error log this is what I see with regards to the callback endpoint
Severity: ERROR
Error Type: OrderCalculationCallbacks
Error Code: HttpError
Error Message: Either there was a problem connecting to your endpoint or the merchant endpoint returned an invalid response status code. The status code received is 403.
Callback Request We Sent:
<OrderCallbackEndpoint>https://www.mydomain.com/checkout_by_amazon.php</OrderCallbackEndpoint>
Cart Request We Received:
<OrderCallbackEndpoint>https://www.mydomain.com/checkout_by_amazon.php</OrderCallbackEndpoint>
I am stumped and quite frustrated..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
While it's been years since I looked at CBA, I will respond generically to the 403 message you posted about.
403 FORBIDDEN means the visitor was denied due to server configuration settings, such as .htaccess rules or IP address restrictions.
The cause of such error should be recorded in the apache error log, even if it's as generic as "denied by server configuration".
It could be that there's a URL-rewriter module that's intercepting that file incorrectly.
Whatever the case, the logs should show some information. And it would be worth renaming the public_html/.htaccess file to htaccess_BAK temporarily to rule it out as a test.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
So callbacks are still not working, but I think I've got some other kinks worked out.. Wanted to share some of the changes I made in case anyone finds it useful.
- I had to comment out the stylesheet calls in the two jscript_cba.php files because it screws up my store's template stylesheet.. Hey Amazon.. just a thought.. there has to be a BETTER way to add these styles that DO NOT interfere with a shopowner's template.. I instead added lines 34 - 241 of the Amazon stylesheet to the end of my template's stylesheet. I left out lines 1-33 because these lines were all in direct conflict with the template's stylesheet.
- I had to create a checkout success page for this module so that the user experience using this payment module somewhat resembled the normal checkout. I used the define pages generator in the Downloads section to do this. I called mine amazon_checkout_success. In the settings for this module I used the URL for my new defined page as the URL for the Success Return Page setting.
- Still trying to figure out the best way to use this with COWOA as Amazon bypasses the normal Zen Cart checkout, I need to make sure that customers who checkout without an account know that Amazon is not going to be an available payment option.
- Neither of the fixes posted here: http://www.zen-cart.com/showthread.p...-Amazon-module are included in the "latest" version of this add-on.. (what's up with THAT???) I made both of these updates in my files.
- Changed the shipping display (presuming I can ever get callbacks to work) so that it shows the shipping method description and leaves out the shipping module ID (Having the shipping module ID in the display looks silly IMHO) Instructions for doing that are here: http://www.zen-cart.com/showthread.p...561#post927561
Though I haven't gotten callbacks to work I am not convinced that it will display all of my active shipping methods. Namely the Free Shipping Options. Does anyone know if adding another carrier to the "supported shipping carrier" section of the checkout_by_amazon_constants.php is the right way to do this?? Or do I have to worry about this??
Finally does have issues with Amazon not filling out the customer information on the order. Amazon checkout creates a customer record using the shipping address, but the order ONLY shows a Shipping address. There is no Customer address or a Billing address.. Does anyone else have this issue?? Any clue how to resolve this??
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
As soon as I started reading the first three lines of your post a lightbulb went off.. Then I read your last sentence.. DOH.. I'll bet it's the .htaccess I setup for Ceon URI.. Let me try updating my .htaccess to ignore the amazon payments folder..
Thanks.. I'm tired a a bit crunchy that I have to install this at all.. (client is in a dispute with PayPal and needed an alternate payment processor install ASAP he chose Amazon since he already has an affiliate account) Sometimes ya just need another set of eyes is all..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Ya, the CEON URI mod was known to have problems with any normal.php files other than index.php, in its early days anyway. I had hoped those had been sorted out.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Okay.. so I added the following rule to my .htaccess file and I'm still getting the 403 error.. grrrrrrrrrrrrrrrrrrrrrrrrr..... what am I still missing/doing wrong here??
Code:# Don't rewrite checkout_by_amazon directory RewriteCond %{REQUEST_URI} !^/checkout_by_amazon/ [NC]
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Did you rename the .htaccess and test?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I went one better.. to eliminate the Ceon URI mod altogether, I turned it off, and removed the rules in the .htaccess file that supported it. Then to be VERY sure I uninstalled Amazon Payments, and reinstalled it, and tried again to checkout and still got the same result.. As soon as I log into Amazon, I got the same error..
Grrrrrrrrrrrrrrrrrrrrrrrr... I am really frustrated and not loving Amazon Payments at the moment..
Maybe I need to go to Amazon and buy a couple of books from my massive wishlist to appease the Amazon powers to be..
Seriously though I am not sure what to do next here..
Last edited by DivaVocals; 13 Jan 2013 at 10:49 AM.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
If it's still throwing a 403, then you'll need to check the server logs.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks