-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
dealbyethan.com
Hi,
My 2checkout module was working fine. Until recently, I found out that I stopped getting the order confirmation email if customers chose to pay using 2checkout. There is no order record in my zencart admin either. Any idea how this happened? Please help. Thank you.
Same thing happended to me last Novemeber, but I was using osCommerece then. That is also the same time that my hosting provider switched to PHP 5.2 and Mysql 5. Has your been upgraded recently?
Did you get a copy of the order from 2checkout? I was able to find the order by using Recover cart sales and changing the status it looks for to processing. I was then able to fill it. I could never get the 2checkout to work though. I just Switched my cart over to Zen and I have 2checkout running fine (as far as I know). Using the same hosting provider so I'm not sure why yours would stop working.
I know 2checkout was recently working on there checkout pages so you might want to check and see if they changed something. Guess I better do another test run on mine.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hi,
Thanks for your suggestion. My php is still 4.4.7 as my hosting company insists that php 5 is buggy. I did get the email from 2checkout but nothing from zencart. Any other idea?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Ok, I just had a friend make a live purchase from my store and everything worked as it should so I don't know what to tell you. Have you made any changes to your zen cart? If you have access to your server logs you may want to check them and see if there are any clues on it. Also are you using the latest version of 2checkout? I think it's 1.4.
I really don't know what else to tell you. I hate problems like that when things are woring fine then suddenly they just stop. Also try to remember the last correct transaction you had with 2checkout and what changes, if any, might have been made to your site since then.
-
Re: 2CheckOut with Zen 1.3.0.2 Released
Just a thought.
I'm not sure what thirdshere.com did to their shopping cart -- but it is integrated with 2check out and I didn't have to update a CVS file. I remember when I had a problem, I called the 2checkout and they walked me through the fix.
They have made many changes to their system recently.
-
Re: 2CheckOut with Zen 1.3.0.2 Released
PS. For now, if I upload the products, etc. to zen-cart, can I produce the cvs file to updload to 2checkout?
-
Re: 2CheckOut with Zen 1.3.0.2 Released
Quote:
Originally Posted by
elevatingyourbusines
PS. For now, if I upload the products, etc. to zen-cart, can I produce the cvs file to updload to 2checkout?
I haven't done it as I can't get the formatting correct. There is a contribution you can use to download your products to CVS. I can't recall what it is, but there is one or two in the downloads.
Once down loaded you will have to change it to meet the 2checkout requirements then upload it to 2checkout.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hey I got a really good question... I installed the latest version offered in the download section. Orders go through great. However, the orders are not registering with zencart in the order queue.
What do i do?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Can someone help me confirm that this is the correct url that i need to enter in the LOOK AND FEEL at the 2checkout website
Approved URL and Pending URL
https://www.mywebsitename.com/process_2checkout.php
it worked well in the past but these 2 lines where removed from the 2checkout page. The installation manual states
process_2checkout.php - page user returned to on completion of transaction
Thanks :hug:
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I got this after upgrading the 2checkout to the latest version at the Submit Order page:
Quote:
1364 Field 'return_md5' doesn't have a default value
in:
[INSERT INTO 2checkout (start_time, status, amount, session_id) VALUES (now(), 'Requested', '30', '508b6231c7affddc2858452b08413d6c')]
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
wccomp
Well I fixed mine however I don't know if it is the correct way or not.
In the includes\modules\payment\as2checkout.php find line 181 or do a search for Process_2checkout (there is only one) the line will look like this
zen_draw_hidden_field('x_receipt_link_url', HTTPS_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
take the "S" out of HTTPS_Server so it reads
zen_draw_hidden_field('x_receipt_link_url', HTTP_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
This solved both the issue of the blank page as well as the issue of MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE
What this line does is overwrite the settings that you have in 2CO, they call it an X-Return if you look in thier forums.
I dont have much luck getting this to work after I migrate my site to a new server.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
We have been having the same problems, after turning on the test mode and trying different configurations I came to realize 2CO does perform the direct return properly, The orders work if I have 2CO leave a link for the customer to click on but direct return just does not work. All the params are set up correctly.
Quote:
Originally Posted by
dealbyethan.com
Hi,
My 2checkout module was working fine. Until recently, I found out that I stopped getting the order confirmation email if customers chose to pay using 2checkout. There is no order record in my zencart admin either. Any idea how this happened? Please help. Thank you.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Does anyone have a fix for an error:
1364 Field 'return_md5' doesn't have a default value
in:
[INSERT INTO 2checkout (start_time, status, amount, session_id) VALUES
(now(), 'Requested', '21.94', '040sjp9an6gnamrqmmclc6att0')]
with ZC version 1.3.8 with Mysql 5.1 ?!?!?
I've tried reapplying the patch to sql, reinstalling the asp modules, nothing changes the error from occuring.
Curt
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Seems like it just doesn't like the there being no default value, I've examined the 2checkout table and the return_md5 is set as TEXT with a Null value.
I tried altering to a VARCHAR(50) with a default value of 0, the error no longer appears, however once zencart takes you over to 2checkout you get a parameter error and the entries for the order are blank, I could really use some help out there guys, this module has been out now for nearly 3 years, someone else has had to have encountered this issue and there must be a resolution for it.
Curt
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hi
Please can someone let me know whichi is the current and best 2checkout module for zen cart and where to download it from?
Are there any problems with this?
I am selling flowers but i dont want to collect a delivery address, only delivery address since it complicates things. I dont want to pass the delivery address to 2checkout.com only the billing address. So i would set my products up as virtual in Zen and have them enter the billing address in the instructions for seller box (or whatever its called) in zen cart.
I currently use PayPal and dont pass the delivery address to PP since they reject orders with different billing and delivery address. Since i sell flower people dont ever send them to themselves
Thanks
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I am about to upload my ZC product table (in a .csv file) onto my 2CO account. But I have the following issues to be clarified before I dare to mess about:
The first column of the csv file is "Product ID, i.e. The ID that you use to identify your product". This ID is obviously very important, and I don't want to get it wrong. And linked to this ID, there is product description, "base price", etc.
So my question is ... which ID from ZC do I use? I noticed from Admin area that the first product I created in ZC carries an ID "1". Do I use this?
Related to this ... for every product, I have different "product options" (with different pricing), and I noticed that each product option also has an ID. The two sets of ID's in ZC are not uniquely generated (there are duplications). So which set should I use? I am hoping that it is the "Product Options" ID's, so that each product option can be captured in 2CO as a unique product.
Last question is ... I noticed that, without the product table loaded, the product shown on 2CO order confirmation is always c_prod_1, with "base price" as "0.00". And there is a "Cart ID". And then there are is info shown as follows:
Quote:
Contents of your order :
Cart ID : 29
Vendor Product ID : 29
Product Description : Vendor site cart purchase: Invoice 29 Product Name : Cart Purchase: 29 Quantity : 1 Base Price : 4.79
I suppose 2CO used the "Cart ID" to generate some sort of product information for the customer. I hope with properly uploaded product table, this info will ceased to be displayed.
Hope to get a response from the experienced. Thanks!
Jeff
http://haostaff.com
-
Re: 2CheckOut for Zen 1.3.0.2 Released
The key question is ... I suppose ...
Does the 2CO module in Zencart pass "Product ID" or "Product Attribute ID" to 2CO?
I.e. which Zencart ID should I use on 2CO Admin to identify all the products that I "mirror-upload" there?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Through own test, I have found:
- It is the Zencart product ID, not the product attribute ID, that is used to communicate with 2CO.
- Whatever ID is used, 2CO do not show the individual product prices anyway. They only show the total order amount. This module generates a "Cart ID", and it is shown to represent the order.
- I have uploaded my product catalogue to 2CO account using .csv file (spreadsheet), based on 2CO instructions.
With this, let me close my earlier questions.
Jeff
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I do not know whether this thread is still "looked after", as I have been talking to myself.
Post it here anyway ... PATCH NEEDED!
In the PayPal Express payment module, there is a very useful function ... auto creation of an accout for the unregistered customers. The customer is sent a Welcome email with the login details.
I am allowing the customers to pay with 2CO (credit cards) without registering an account. It would be nice to duplicate the same auto account creation function from PayPay Express to 2CO module.
I know this is probably viable because 2CO requires the customer to input an email address. Can't ZC request for that email address and create an account with it?
I am not worried if the customer chooses to enter a wrong email address. If he/she just wants to pay for a downloadable product, and does not want to receive anything information after that, then it is fine with me.
Can someone, by any chance, point me to the right direction of how to develop a patch for 2CheckOut Addon Module for above purpose?
This is beyond me as I have zero programming ability, but can follow instructions to amend codes, if someone can kindly provide the instructions.
Thanks in advance.
Jeff
==========================
Attention !!!
I have now posted this at the "Features Wishlist" section with the following thread:
http://www.zen-cart.com/forum/showth...t+creation+2co
Please post your replies there, to avoid double threads on same topic. Thanks !
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Is 2checkout module upgraded or its still in old version from 2006 ?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Well... the latest version that I can see is "Nov 28 2007" Version: 1.4.
Did you installed? can I see your website to see how is working? Do you receive the money without problems? I want to add this module in my store but it would be great to have the opinion of users that are using this module. Thanks!
-
Re: 2CheckOut for Zen 1.3.0.2 Released
hello I tried integrating my zen cart with 2checkout and after I followed all the steps I just got the images for back and forward, and add to cart broken and the title of the webpage got changed to TITLETERTIARY_SECTIONSITE_TAGLINE Idk what is the problem and seem to be looking everywhere on how to fix it.
Thanks you
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Posted my question here http://www.zen-cart.com/forum/showthread.php?t=178233
but found this thread
I did a new install this morning of the zen cart 1.3.9
Added the 2checkout module
set up the information as needed.
Placed one item in the store to make a purchase.
Placed the item in the cart, went through checkout
all the way to the end but when it gets sent to 2checkout.com,
I get a parameter error:
Parameter Error
A pparameter error was encountered when attempting to process this sale. Please notify the supplier so that this can be resolved as soon as possible.
Anybody have any ideas as to why I get this error?
I spent an hour on the phone with tech support at 2co and he has never seen this. He had me check some of the php files and settings and said it is set up correctly.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I installed 1.9.3h and also installed the 2checkout payment module. It works great.
http://www.zen-cart.com/index.php?ma...roducts_id=180
is the contrib I used. The update_database.sql file was easy to install. Not sure I did it exaclty right
but in my admin control panel in zen, went to tools/ install SQL patches.
I opened the file, copied the text, pasted it into the install SQL patches area, also uploaded
the update_database.sql file and hit go. You have to make sure its in the payment module
and install and fill in your info from there. It worked great for me several times.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I'm using ZC 1.3.9d and for the last few months, I have not received confirming email on 2checkout purchases. Anyone else dealing with this? What should I look for and do? I reinstalled the payment module and the same issues have occurred.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Are you saying you have actual sales from your cart and your not receiving emails from 2co? or from the cart itself?
if you're not getting emails from 2co, call their tech support. They are awesome!
If it's the fact your not getting email from the cart, that's another issue.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
CAguy
Posted my question here
http://www.zen-cart.com/forum/showthread.php?t=178233
but found this thread
I did a new install this morning of the zen cart 1.3.9
Added the 2checkout module
set up the information as needed.
Placed one item in the store to make a purchase.
Placed the item in the cart, went through checkout
all the way to the end but when it gets sent to 2checkout.com,
I get a parameter error:
Parameter Error
A pparameter error was encountered when attempting to process this sale. Please notify the supplier so that this can be resolved as soon as possible.
Anybody have any ideas as to why I get this error?
I spent an hour on the phone with tech support at 2co and he has never seen this. He had me check some of the php files and settings and said it is set up correctly.
Did you ever get this figured out. I just installed this module and got the same error.
Thanks
-
Re: 2CheckOut for Zen 1.3.0.2 Released
im having a problem with the actual shopping cart i cant seem to make it visible on the webpage of my buisness and it is annoying because i have the price etc showing and my customers cannot ''add to cart'' please help ive tried the manual and am really stuck!
Thanks :blush:
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hi,
I've added some attributes to the product (size and delivery type)... based on these attributes the prices varies...
attributes are working fine till the client moves from my shopping cart to 2checkout website... at that time, although I get the right price (driven by attributes) but the attributes get lost...
Please advice...
Thanks
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
birdoasis
Hey,
the 2checkout mod was working great, but suddenly my orders are not getting back to admin, and the emails tell me I have 1) Cart 22 ordered, and the customer is getting the same info.
Any ideas?
Using 1.3.7
JP
how did you get this fixed...?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
wccomp
Well I fixed mine however I don't know if it is the correct way or not.
In the includes\modules\payment\as2checkout.php find line 181 or do a search for Process_2checkout (there is only one) the line will look like this
zen_draw_hidden_field('x_receipt_link_url', HTTPS_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
take the "S" out of HTTPS_Server so it reads
zen_draw_hidden_field('x_receipt_link_url', HTTP_SERVER . DIR_WS_CATALOG . 'process_2checkout.php');
This solved both the issue of the blank page as well as the issue of MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE
What this line does is overwrite the settings that you have in 2CO, they call it an X-Return if you look in thier forums.
Hi,
I've removed the S out of HTTPS but still I am getting the same error message...
Please advice...
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
tparvaiz
Hi,
I've added some attributes to the product (size and delivery type)... based on these attributes the prices varies...
attributes are working fine till the client moves from my shopping cart to 2checkout website... at that time, although I get the right price (driven by attributes) but the attributes get lost...
Please advice...
Thanks
anyone...?
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I am running ZC 1.39f
I have a site with downloadable product.
and have the 2CO module installed.
I am still not clear on the what the "order Status' settings do (if anything).
I assume that if I set the Order status to "Delivered" and an order comes in, that downloadable is available to download whether or not 2Co has 'passed', or 'failed' the purchase.
If I set the order status to "Processing" will that hold the downloadable until 2Co 'passes' the purchase and then release it?
In other words does the module communicate with 2CO and release a product for download once the order has 'passed'?
OR
Will an 'order status' of 'Processing hold the order until I get a 'pass' on the order and then I have to manually release the download by changing the 'order status' to 'Delivered'.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
gxjenkins
Did you ever get this figured out. I just installed this module and got the same error.
Thanks
This normally indicates that your 2Chcekout account is in a status where it is not able to make live sales. Please contact 2Checkout support at [email protected] to get this resolved.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
tparvaiz
Hi,
I've removed the S out of HTTPS but still I am getting the same error message...
Please advice...
This error normally indicates that either the secret word that you setup in ZenCart is not matching the secret word setup with your 2Checkout account or you are placing demo sales. Please contact 2Checkout support at [email protected] for assistance with troubleshooting.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
tparvaiz
anyone...?
2Checkout will only display the product name and description in the purchase routine so the additional attributes are not passed in. These attributes should still be listed with the lineitem with in ZenCart when you view the order in the Zencart admin. I have tested this with the 2CO module and with several other built in payment methods and the attributes are always listed. If they are not listing in the Zencart admin then it would be unrelated to the payment method.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
r189
I am running ZC 1.39f
I have a site with downloadable product.
and have the 2CO module installed.
I am still not clear on the what the "order Status' settings do (if anything).
I assume that if I set the Order status to "Delivered" and an order comes in, that downloadable is available to download whether or not 2Co has 'passed', or 'failed' the purchase.
If I set the order status to "Processing" will that hold the downloadable until 2Co 'passes' the purchase and then release it?
In other words does the module communicate with 2CO and release a product for download once the order has 'passed'?
OR
Will an 'order status' of 'Processing hold the order until I get a 'pass' on the order and then I have to manually release the download by changing the 'order status' to 'Delivered'.
The 2CO module does not update the order when it goes through fraud review so if you want to provide download access immediately, you can set the appropriate order status (I assume it's delivered) for your downloadable products under the 2Checkout configuration in ZenCart.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Thanks, that is what I was afraid of, If you set the status to "delivered" - as I had done, that opens the door for someone with a stolen card to place multiple orders with 2co and get an immediate download before the fraud report gets back to me.
This did happen to me and many items were downloaded on a fraudulent Credit card.
So, now I must release each purchase as I get the fraud report from 2co.
This not only is not automated and there for annoying to me (and means I must always be on alert for a sale day and night), but will also annoy customers who want their download as soon as they pay for it....
An automated update of status in the 2co plugin - well actually 2co would have to send the status update when they send the email report - would be a huge help for us who are selling downloadable items.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
r189
Thanks, that is what I was afraid of, If you set the status to "delivered" - as I had done, that opens the door for someone with a stolen card to place multiple orders with 2co and get an immediate download before the fraud report gets back to me.
This did happen to me and many items were downloaded on a fraudulent Credit card.
So, now I must release each purchase as I get the fraud report from 2co.
This not only is not automated and there for annoying to me (and means I must always be on alert for a sale day and night), but will also annoy customers who want their download as soon as they pay for it....
An automated update of status in the 2co plugin - well actually 2co would have to send the status update when they send the email report - would be a huge help for us who are selling downloadable items.
I'll see if I can whip something up to correct this for you. I'll update this thread when it's ready so you can download the latest version. Just FYI, it may be a couple weeks as I am pretty busy right now.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Wow!
That would most appreciated, whenever you can would be wonderful.
Thanks
Ric
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I have tried everything I have found (removing s from https line 181) but I still keep getting this error when using 2checkout... MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE
Thank you in advance for your time and attention to helping me with this issue :smile:
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
r189
Wow!
That would most appreciated, whenever you can would be wonderful.
Thanks
Ric
I will probably write a major update to this payment module in the future to integrate with 2Checkout's back office API and Pass through Products parameter set but until then feel free to try this out.
https://github.com/undeadzed/ZC-INS-Update
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
jgalbraith
I have tried everything I have found (removing s from https line 181) but I still keep getting this error when using 2checkout... MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE
Thank you in advance for your time and attention to helping me with this issue :smile:
If you are placing live sales, this indicates that some information is not matching up, most likely the secret word that you have setup in ZC does not match the secret word set on your 2Checkout Site Management page. Also, please set your return method in 2Checkout to "Given links back to my Website" for testing purposes.
If you are placing demo sales, this error will always get thrown as 2Checkout intentionally breaks the hash on demo sales by forcing the order number to "1". You have to set demo mode on in your ZC 2Checkout module settings to handle the demo hash calculation.
Please contact 2Checkout support at http://www.2checkout.com/support/ so that your account settings and cart integration can be reviewed.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hi I have a question before I deicde to switch to 2checkout,
Right now I use moneybookers but the uer interface is not good, further, it has a big bug if you sell downloadable items.
If customer make a false payment, it will still re-direct to checkout success page which allow customers to download products while there is no payment at all.
the correct logic is the system should check if payment is successful before it decides to re-direct customers to success page or failure page.
I am wondering if 2checkout has this kind of problem or not or is there anybody report the similar problem before.
Thank you!
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I'm using ZC 1.3.9d, once again I have not received confirming email on 2checkout purchases from Zen Cart nor does the purchase display in ZC (shows up in recovered sales cart). The transaction goes through on 2CO side and we get email from them. Anyone else dealing with this? What should I look for and do? I reinstalled the payment module and the same issues have occurred. I also verified that the return address points to process_2checkout.php and direct returns radio button on 2CO site has been selected. When we tested this, at the end of the transaction, it did not return us to the website.
Tony
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hello ranger_lp even I am facing the same issue, I am using 2Co and can only see the orders in recover cart sales and don't get any emails from zencart, I am using Ver 1.3.9f
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Hi .. I am still awaiting help, I am using 2Co and I don't get any emails from zencart nor do I see the order in admin, however I only receive mails from 2Co on successful orders, I am using Ver 1.3.9f
PS: I can see the details in recover cart sales but cant move them to orders
-
Re: 2CheckOut for Zen 1.3.0.2 Released
Quote:
Originally Posted by
gtalwar
Hi .. I am still awaiting help, I am using 2Co and I don't get any emails from zencart nor do I see the order in admin, however I only receive mails from 2Co on successful orders, I am using Ver 1.3.9f
PS: I can see the details in recover cart sales but cant move them to orders
This is working now.....
-
How to download a copy of your products table to a CSV file?
I have Easy Populate 1.2.5.4 installed on my zencart. How to download a copy of your products table to a CSV file? Should I click "
Download Complete tab-delimited .txt file to edit (Attributes Not Included)
"?
I don't quite understand how to use Easy Populate....
-
Re: 2CheckOut for Zen 1.3.0.2 Released
2Checkout does not require that you setup your products in your 2Checkout account if you are using a third party shopping cart such as Zencart. Zencart will pass the product details in on each sale automatically using this extension.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
I am installing 2checkout on my zencart shopping cart
I have put the files in their correct positions and I can see the module in Modules, Payments but one thing is unclear to me in the instruction.
Where is the database_update.sql file and how do I run it
thank you
Ivanna
-
Re: 2CheckOut for Zen 1.3.0.2 Released
The latest release of this module no longer requires you to run this query so you can just install in the Zencart admin.
-
Re: 2CheckOut for Zen 1.3.0.2 Released
This is a fix if you are using multiple sites with 2checkout. 2checkout allows you to have 5 websites on your account.
If you checkout using an addon domain, it does not redirect you to your addon domain.
So change your process_2checkout.php the the following:
PHP Code:
<?php
require('includes/application_top.php');
$ssl_str = 'NONSSL';
if (ENABLE_SSL != 'false') {
$ssl_str = 'SSL';
}
//bOF Super 2Checkout Multisites
$this2checkoutbaseurl = "http://www.myurl.com/process_2checkout.php";
$thisreceivedurl = $_REQUEST['x_receipt_link_url'];
if($thisreceivedurl != $this2checkoutbaseurl) {
$originwithparams = $thisreceivedurl;
$co_idrd = $_REQUEST['merchant_order_id'];
$resultrd = $_REQUEST['credit_card_processed'];
$return_mdrd = $_REQUEST['key'];
$co_order_idrd = $_REQUEST['order_number'];
$this2coparams = "?merchant_order_id=" . $co_idrd . "&credit_card_processed=" . $resultrd . "&key=" . $return_mdrd . "&order_number=" . $co_order_idrd;
header('Location: ' . $originwithparams . $this2coparams);
//FIREFOX FIX
$redirect_url2c0 = $originwithparams . $this2coparams;
?>
<body>
<script type="text/javascript" language="javascript">window.location="<?php echo $redirect_url2c0; ?>"</script>
<noscript>
If you are not redirected please <a href="<?php echo $redirect_url2c0; ?>">click here</a> to confirm your order.
</noscript>
</body>
<?php
exit;
}
//eOF Super 2Checkout Multisites
$co_id = $_REQUEST['merchant_order_id'];
$result = $_REQUEST['credit_card_processed'];
$return_md = $_REQUEST['key'];
$co_order_id = $_REQUEST['order_number'];
$hash_order_id = $co_order_id;
$order = $db->Execute("select amount from " . TABLE_2CHECKOUT . " where 2co_id = '" . $co_id . "'");
$order_value = number_format($order->fields['amount'], 2, '.', '');
if (MODULE_PAYMENT_2CHECKOUT_TESTMODE == 'Test'){
$hash_order_id = '1';
}
$check_string = MODULE_PAYMENT_2CHECKOUT_SECRET_WORD . MODULE_PAYMENT_2CHECKOUT_LOGIN . $hash_order_id . $order_value;
$check_hash = strtoupper(md5($check_string));
if ($check_hash != $return_md) {
zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_HASH_MESSAGE), $ssl_str, true, false));
}
$checkout = $db->Execute("select session_id from " . TABLE_2CHECKOUT . " where 2co_id = '" . $co_id . "'");
zen_session_id($checkout->fields['session_id']);
$checkout_update = array('finish_time'=>'now()',
'status'=>zen_db_prepare_input( $result ),
'2co_order_id'=>zen_db_prepare_input( $co_order_id )
);
zen_db_perform(TABLE_2CHECKOUT, $checkout_update, 'update', "2co_id = '" . $co_id . "'");
if ($result != 'Y' && $result != 'K') {
$messageStack->add_session('checkout_payment', MODULE_PAYMENT_UNET_TEXT_DATA_RETURN_ERROR_MESSAGE, 'error');
$redirect_url = zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', $ssl_str, true, false);
} else {
$redirect_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, 'cID=' . $co_id, $ssl_str, true, false);
}
//FIREFOX FIX
$redirect_url = str_replace('&', '&', $redirect_url);
?>
<body>
<script type="text/javascript" language="javascript">window.location="<?php echo $redirect_url; ?>"</script>
<noscript>
If you are not redirected please <a href="<?php echo $redirect_url; ?>">click here</a> to confirm your order.
</noscript>
</body>