close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Ecart 5 - Bypass Payment System

Thread began 1/11/2011 7:31 pm by netsysinc419552 | Last modified 1/24/2011 2:09 pm by Jason Byrnes | 2888 views | 20 replies |

netsysinc419552

Ecart 5 - Bypass Payment System

I have created a checkout page using the Ecart Checkout Wizard. I now want to perform some initial testing but also need to bypass the credit card authorization. Can someone tell me how this can be done? I am using PHP and Dreamweaver. Thanks! John

Sign in to reply to this post

Jason ByrnesWebAssist

you would use the payments gateways testing servers to process test transaction. How this is done depends on the gateway that is used.

With Paypal, you can sign up for sand box api credentials, then set the Use Sand Box setting in the server behavior that processes transactions. For Authorize.net, there is a test request setting that sends a test transaction.

Sign in to reply to this post

netsysinc419552

Originally Said By: Jason Byrnes
  you would use the payments gateways testing servers to process test transaction. How this is done depends on the gateway that is used.

With Paypal, you can sign up for sand box api credentials, then set the Use Sand Box setting in the server behavior that processes transactions. For Authorize.net, there is a test request setting that sends a test transaction.  



Thank Jason but I am currently developing my online store app and do not have access to Authorize.net nor do I want to pay there fees unitil I am really ready to test the credit card authorization. however I would like to simulate as though I had process the cc transaction via ecart so I can validate the database updates that ecart would make and my updates. Is there a dummy script I could use to simulate the ecart authorization part? ANy other suggestions?
Many Thanks
John

Sign in to reply to this post

Jason ByrnesWebAssist

the only option to completely bypass the gateway, is to set it up using the checkout wizard to use the payment gateway of your choice, then edit the code directly by hand, change the trigger code for the behavior that processes the transaction to an if statement that would never be try like:
if(1 == 0) {

but again, i cant give specific examples without knowing what payment gateway you are selecting in the checkout wizard.

Sign in to reply to this post

netsysinc419552

I am using Authorized.Net (AIM). Does this help? Also I am not sure if you want me to change the server behaviors trigger or the actual code itself. Can you give me a sample based on this new information?

Thanks Again!!!!!
John

Sign in to reply to this post

Jason ByrnesWebAssist

you need to edit the actual code itself, the server behaviors trigger does allow you to set trigger that will alwas be false, you need to do that manually.


on the confirm page, you will need to find the code for the authorize.net server behavior, the first few lines will look like:

php:
<?php

if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))  {
  
$AuthNet_required = array();
  
$AuthNet_required[0] = array();
  
$AuthNet_required[1] = array();




you will need to edit this to:

php:
<?php

$<your cart object name>->redirStr "checkout_success.php";
if(
== 0) {
  
$AuthNet_required = array();
  
$AuthNet_required[0] = array();
  
$AuthNet_required[1] = array();





note that in this line:
$<your cart object name>->redirStr = "checkout_success.php";

you need to change <your cart object name> to the name of your eCart object.

Sign in to reply to this post

netsysinc419552

I added the two lines of code to the area you mention within the confirm page and I am now receiving the "Order Receipt" page. However, I did not get the Email messages nor did it update my Order and Order detail tables(mysql). Do you have any idea why it would not send the emails or update the database.

Thanks!
john

Sign in to reply to this post

netsysinc419552

One more thin. The order receipt that is displayed does not have an Order Number.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the confirm page and the success page so i can look at the code.

Sign in to reply to this post

netsysinc419552

Here are the two files you requested. I don't know if this will make a difference but when I look at this code I notice that it is referancing a session variable call $_SESSION["eCart1_OrderID"] but I can not find it in the Bindings. Thanks for Your Help!

Attached Files
yconfirm_page.zip
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...