Praxis Wiki logo

Earlier Integrations Cashier Auto Login

Note from previous HTML example, the frame source attribute points to a PHP script. The coding language is irrelevant, but role of that page is to create a hidden HTML form and submit the form immediately using JavaScript and POST the required variables described in the table in last section.

* Use the action variable to control if customer lands in Deposit or Payout page

** Link the customer to the correct Cashier front end, based in their base currency

<!-- POST redirect customer with authentication parameters to Cashier Login page -->
<!-- Cashier login page will do callback verification against your AuthCust method -->

<form   action="" method="post"
name="CashierLogin" id="CashierLogin" >
<input type="hidden" name="FrontEnd" value="<%= Server.HTMLEncode(FrontEnd)%>">
<input type="hidden" name="PIN" value="<%= Server.HTMLEncode(CustomerID)%>">
<input type="hidden" name="Password" value="<%= Server.HTMLEncode(Password)%>">
<input type="hidden" name="SCOrderID" value="123456">   <!-- only for Shopping Cart -->
<input type="hidden" name="SCAmount" value="250">   <!-- only for Shopping Cart -->
<input type="hidden" name="Secret" value="<%= Server.HTMLEncode(HashString)%>">
<input type="hidden" name="Action" value="DEPOSIT"> <!-- optional -->
<input type="hidden" name="Lang" value="en">    <!-- optional -->
<input type="hidden" name="PID" value="<%= Server.HTMLEncode(PromoID)%>"><!-- optional -->
<input type="hidden" name="BlackBox" value="">  <!-- optional -->
<input type="hidden" name="Udef1" value=""> <!-- optional -->
<input type="hidden" name="Udef2" value=""> <!-- optional -->

<a href="javascript:void();" onClick="CashierLogin.submit();">Go to Cashier</a>
CashierLogin.submit();  //auto submit the form

{warning.fa-exclamation-triangle} NOTE: Be sure to HTML Encode your inserted form values using your web programming language.


  1. The customer is logged into your website.
  2. The customer clicks a cashier or deposit link in your site.
  3. Your site takes a customer to a page on your site that submits a hidden HTML form post to auto login the customer to the cashier.
  4. The resulting cashier page is loaded into an iframe or lightbox and the customer is ready to access the cashier.

You are currently viewing version 3.1 Latest API version here