Direct File Access Prohibited'); /******************************************************************************* Class to generate an Ideal Lite form. Author: Timo Tijhof Email: info@grizzdesign.nl Based on version 0.3 (10-07-2009) of the component from Martijn Wieringa, PHP Solutions (info@php-solutions.nl) ******************************************************************************* */ class ideallite_class { // Default settings var $sCurrency = 'EUR'; // Ideal only support payments in EURO. var $sLanguageCode = 'nl'; // NL var $sPaymentType = 'ideal'; // Account settings var $sMerchantId = ''; var $sSubId = 0; var $sHashKey = ''; var $sAquirerName = ''; var $sUrlAquirer = ''; // Order settings var $totalCosts100 = ''; var $desc30 = ''; var $sValidUntil = ''; var $sUrlCancel = ''; var $sUrlError = ''; var $sUrlSuccess = ''; var $hCANCEL; var $hERROR; var $hSUCCESS; // Security & Identification var $sTransactionId; var $bTestMode; var $sHash; var $refid; var $setError; // eShop vars var $last_error; // holds the last error encountered var $ipn_response; // holds the IPN response from paypal var $ipn_data = array(); // array contains the POST values for IPN var $fields = array(); // array holds the fields to submit to paypal /* **************** * iDEAL functions * ***************** */ function escapeHtml($string) { return str_replace(array('&', '"', '<', '>'), array('&', '"', '<', '>'), $string); } /* **************** * eShop functions * ***************** */ function ideallite_class() { // initialization constructor. Called when class is created. $this->last_error = ''; $this->ipn_response = ''; } function add_field($field, $value) { // adds a key=>value pair to the fields array, which is what will be // sent to ideallite as POST variables. If the value is already in the // array, it will be overwritten. $this->fields["$field"] = $value; } function submit_ideallite_post() { // The user will briefly see a message on the screen that reads: // "Please wait, your order is being processed..." and then immediately // is redirected to ideallite. $echo= "
\n"; return $echo; } function eshop_submit_ideallite_post($_POST) { // The user will briefly see a message on the screen that reads: // "Please wait, your order is being processed..." and then immediately // is redirected to ideallite. global $eshopoptions; $ideallite = $eshopoptions['ideallite']; $echortn=''.__('Please wait, your order is being processed…','eshop').'
'. __('If you are not automatically redirected to iDeal, please use the Proceed to iDeal button.','eshop').'