Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: ASP string

  1. #1
    New to the CF scene
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP string

    Help I am trying to send a integrate Barclaycard EPDQ and I'm pants at coding.
    I need to pass a string to an encryption page but dont know how to refer to a variable and the once that string has been passed back, hold it in a hidden value to be paseed back to Barclaycard again.

    the problems are the ???????????'s

    any help is appreciated.
    Ben

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
    <TITLE>EasyShopMaker Payment Redirection page</TITLE>
    <META NAME="Generator" CONTENT="EasyShopMaker Pro">
    <META NAME="Author" CONTENT="Errel Cooperation Amsterdam UA">
    <META NAME="Description" CONTENT="EasyShopMaker Pro">

    <!-- Include the javascript functions to get all necessary fields from the checkout -->
    <SCRIPT SRC="easyshopmaker_tyhnw14.js" TYPE="text/javascript" LANGUAGE="JavaScript"></SCRIPT>
    <script TYPE="text/javascript" LANGUAGE="JavaScript">
    self.onerror = function () { alert('There is a javascript error on your PSP redirect page!'); return true;}
    </script>
    <link rel=stylesheet type="text/css" href="easyshopmaker.css">
    </HEAD>

    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF">
    <basefont face="arial" size=2 class="esm_ty_font">
    <!-- <b>Please wait...</b><br>
    Connecting to third party....
    <p>-->
    <b>Please wait...</b><br>
    Currently unavailable please use paypal or contact us on 01209 712758
    <p>
    <!--<form action="https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdq.e" method="POST">-->


    <!-- place encrypted ePDQ code between the form tags -->

    <!-- <input type="submit" value="purchase"> -->
    <!-- </form> -->

    <!-- S E C T I O N - O N E ----------------------------------------------------------------- -->

    <!-- EDIT THIS! FORM ACTION TAG-->
    <!-- Leave the action tag as is, to see what information is send - untill all fields are OK -->
    <!-- If all fields are OK - then change it as required by your PSP -->

    <!-- <form action="https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdq.e" method="post" name="payform"> -->
    <form action="http://www.easyshopmaker.com/xscripts/ownpsptest.php" method="POST" name="payform">
    <!-- EDIT THIS! FORM FIELDS -->
    <!-- Add/Edit the FORM fields that are required by your PSP -->
    <!-- see these fields for example: -->

    <input type="hidden" name="MY_ID" value="www.thedollshouse.biz">
    <!--<input type="hidden" name="amount" value="">-->
    <input type="hidden" name="total" value="">
    <input type="hidden" name="currency" value="GBP">

    <!-- <input type="hidden" name="returnurl" value="http://www.thedollshouse.biz/easyshopmaker/easyshopmaker26-success.html"> -->
    <input type="hidden" name="failure_url" value="http://www.thedollshouse.biz/easyshopmaker/easyshopmaker26-fail.html">

    <input type="hidden" name="stelephonenumber" value=""> <!-- customer phone -->
    <input type="hidden" name="email" value=""> <!-- customer email -->
    <input type="hidden" name="baddr1" value=""> <!-- billing add -->
    <input type="hidden" name="bcity" value=""> <!-- billing city -->
    <input type="hidden" name="bcountry" value=""> <!-- billing country -->
    <input type="hidden" name="bpostalcode" value=""> <!-- billing post code -->
    <input type="hidden" name="saddr1" value=""> <!-- delivery add -->
    <input type="hidden" name="scity" value=""> <!-- delivery city -->
    <input type="hidden" name="scountyprovince" value=""> <!-- delivery county-->
    <input type="hidden" name="scountry" value=""> <!-- delivery country -->
    <input type="hidden" name="spostalcode" value=""> <!-- customer post code -->
    <input type="hidden" name="cpi_textcolor" value="black">
    <input type="hidden" name="cpi_bgcolor" value="ffccff">

    <!-- </form> -->

    <SCRIPT LANGUAGE='JavaScript'>
    <!--
    var p;
    var tmP;
    if (bbgHu()) {
    if (c_EasyShopMaker_c.cTp0<=0) {
    document.write('Error: nothing to buy (total = 0)<p>Please click <a href="kassa.htm" target="_top">here</a>.')}
    else {

    /* -----------------------------------------------------------------
    S E C T I O N - T W O

    EDIT THIS! start of dynamically filling the form
    functions:
    qw1()
    qw2()
    RF1('fieldname')
    RF2N('fieldname')
    ----------------------------------------------------------------- */
    document.payform.total.value = RF2N('total');
    //document.payform.amount.value = RF2N('total');
    document.payform.email.value = RF1('email');
    document.payform.baddr1.value = RF1('baddress');
    document.payform.bcity.value = RF1('btown');
    document.payform.bcountry.value = RF1('bcountry');
    document.payform.bpostalcode.value = RF1('bpostcode');
    document.payform.saddr1.value = RF1('Address');
    document.payform.scity.value = RF1('Town');
    document.payform.scountyprovince.value = RF1('County');
    document.payform.scountry.value = RF1('Country');
    document.payform.spostalcode.value = RF1('Postcode');
    document.payform.stelephonenumber.value = RF1('Phone');

    // automatically submit the form - and redirect to the PSP
    //document.payform.submit();

    }
    }
    else {
    document.write('Error: empty shoppingcart<p>Please click <a href="kassa.htm" target="_top">here</a>.');
    }

    // -->
    </SCRIPT>

    <%
    Const Request_POST = 1
    Const Request_GET = 2
    Set objTear = CreateObject("SOFTWING.ASPtear")
    On Error Resume Next
    Response.ContentType = "text/html"
    Dim strEPDQ
    Response.Write "<P>document.payform.total.value"
    strEPDQ = objTear.Retrieve( _
    "https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdqEncTool.e", Request_POST, _
    "clientid=*****&password=*****&chargetype=Auth&currencycode=826&total=????????????????????", "", "")
    If Err.Number <> 0 Then
    Response.Write "<b>"
    If Err.Number >= 400 Then
    Response.Write "Server returned error: " & Err.Number
    Else
    Response.Write "Component/WinInet error: " & Err.Description
    End If
    Response.Write "</b>"
    Response.End
    End if
    %>

    <%= strEPDQ %>

    <input type="hidden" name="epdqdata" value="???????????">
    <input type="hidden" name="returnurl" value="http://www.thedollshouse.biz/easyshopmaker/easyshopmaker-psp26-success.html">
    <input type="hidden" name="merchantdisplayname" value="www.thedollshouse.biz">
    <input type="submit" value="Continue with Purchase">


    <center></center>
    </BODY>
    </HTML>

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You are better off talking to the support for the API about this.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •