예제 #1
0
 function after_processing_html($orderID)
 {
     $res = '';
     $order = ordGetOrder($orderID);
     $order_amount = roundf(PaymentModule::_convertCurrency($order['order_amount'], 0, $this->_getSettingValue('CONF_CHRONOPAY_CURCODE')));
     $currency = currGetCurrencyByID($this->_getSettingValue('CONF_CHRONOPAY_CURCODE'));
     $zone_iso2 = $order['billing_state'];
     $countries = cnGetCountries(array('offset' => 0, 'CountRowOnPage' => 1000000), $count_row);
     foreach ($countries as $country) {
         if ($country['country_name'] == $order['billing_country']) {
             $country_iso3 = $country['country_iso_3'];
             $zones = znGetZones($country['countryID']);
             foreach ($zones as $zone) {
                 if ($zone['zone_name'] == $zone_iso2) {
                     $zone_iso2 = $zone['zone_code'];
                     break;
                 }
             }
             break;
         }
     }
     $post_1 = array('product_id' => $this->_getSettingValue('CONF_CHRONOPAY_PRODUCT_ID'), 'product_name' => CONF_SHOP_NAME, 'product_price' => $order_amount, 'product_price_currency' => $currency['currency_iso_3'], 'f_name' => $order['billing_firstname'], 's_name' => $order['billing_lastname'], 'street' => $order['billing_address'], 'city' => $order['billing_city'], 'state' => $zone_iso2, 'country' => $country_iso3, 'email' => $order['customer_email'], 'cb_url' => getTransactionResultURL('success'), 'cb_type' => 'P', 'decline_url' => getTransactionResultURL('failure'));
     $hidden_fields_html = '';
     reset($post_1);
     while (list($k, $v) = each($post_1)) {
         $hidden_fields_html .= '<input type="hidden" name="' . $k . '" value="' . $v . '" />' . "\n";
     }
     $res = '
                             <form method="post" action="' . xHtmlSpecialChars($this->processing_url) . '" style="text-align:center;">
                                     ' . $hidden_fields_html . '
                                     <input type="submit" value="' . CHRONOPAY_TXT_SUBMIT . '" />
                             </form>
                             ';
     return $res;
 }
예제 #2
0
파일: moneybookers.php 프로젝트: gblok/rsc
 function after_processing_html($orderID)
 {
     $order = ordGetOrder($orderID);
     $order_amount = round(100 * $order["order_amount"] * $order["currency_value"]) / 100;
     $res = "";
     $res .= "<table width='100%'>\n" . "        <tr>\n" . "                <td align='center'>\n" . "<form method='POST' action='https://www.moneybookers.com/app/send.pl'>\n" . "<input type=\"hidden\" name=\"pay_to_email\" value=\"" . $this->_getSettingValue('CONF_PAYMENTMODULE_MONEYBOOKERS_MERCHANT_EMAIL') . "\">\n" . "<input type=\"hidden\" name=\"return_url\" value=\"" . getTransactionResultURL('success') . "\">\n" . "<input type=\"hidden\" name=\"cancel_url\" value=\"" . getTransactionResultURL('failure') . "\">\n" . "<input type=\"hidden\" name=\"status_url\" value=\"mailto:" . $this->_getSettingValue('CONF_PAYMENTMODULE_MONEYBOOKERS_MERCHANT_EMAIL') . "\">\n" . "<input type=\"hidden\" name=\"language\" value=\"EN\">\n" . "<input type=\"hidden\" name=\"detail1_description\" value=\"Order #\">\n" . "<input type=\"hidden\" name=\"detail1_text\" value=\"" . $orderID . "\">\n" . "<input type=\"hidden\" name=\"transaction_id\" value=\"" . $orderID . "\">\n" . "<input type=\"hidden\" name=\"amount\" value=\"" . $order_amount . "\">\n" . "<input type=\"hidden\" name=\"currency\" value=\"" . $order["currency_code"] . "\">\n" . "<input type=\"hidden\" name=\"firstname\" value=\"" . $order["billing_firstname"] . "\">\n" . "<input type=\"hidden\" name=\"lastname\" value=\"" . $order["billing_lastname"] . "\">\n" . "<input type=\"hidden\" name=\"address\" value=\"" . $order["billing_address"] . "\">\n" . "<input type=\"hidden\" name=\"City\" value=\"" . $order["billing_city"] . "\">\n" . "<input type=\"hidden\" name=\"confirmation_note\" value=\"Thank you for your order!\">\n" . "<input type=\"submit\" value=\"" . CMONEYBOOKERS_TXT_AFTER_PROCESSING_HTML_1 . "\">\n" . "                </td>\n" . "        </tr>\n" . "</table>";
     return $res;
 }
예제 #3
0
파일: paypal.php 프로젝트: gblok/rsc
 function after_processing_html($orderID)
 {
     $order = ordGetOrder($orderID);
     $order_amount = round(100 * $order["order_amount"] * $order["currency_value"]) / 100;
     $res = "";
     $res .= "<table width='100%'>\n" . "\t<tr>\n" . "\t\t<td align='center'>\n" . "<form method='POST' name='PayPalForm' action='https://www.paypal.com/cgi-bin/webscr'>\n" . "<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">\n" . "<input type=\"hidden\" name=\"business\" value=\"" . $this->_getSettingValue('CONF_PAYMENTMODULE_PAYPAL_MERCHANT_EMAIL') . "\">\n" . "<input type=\"hidden\" name=\"item_name\" value=\"Order #" . $orderID . "\">\n" . "<input type=\"hidden\" name=\"amount\" value=\"" . $order_amount . "\">\n" . "<input type=\"hidden\" name=\"bn\" value=\"shopcms\">\n" . "<input type=\"hidden\" name=\"return\" value=\"" . getTransactionResultURL('success') . "\">\n" . " <input type=\"hidden\" name=\"currency_code\" value=\"" . $order["currency_code"] . "\">\n" . "<input type=\"image\" name=\"submit\" src=\"http://images.paypal.com/images/x-click-but01.gif\" alt=\"" . CPAYPAL_TXT_AFTER_PROCESSING_HTML_1 . "\">\n" . "\t\t</td>\n" . "\t</tr>\n" . "</table>";
     //			$res .= "<script>document.PayPalForm.submit();</script>";
     return $res;
 }
예제 #4
0
파일: assist.php 프로젝트: gblok/rsc
 function after_processing_html($orderID)
 {
     $order = ordGetOrder($orderID);
     //calculate order amount
     $order_amount = round(100 * $order["order_amount"] * $order["currency_value"]) / 100;
     $res = "";
     $res .= "<table width='100%'>\n" . "        <tr>\n" . "                <td align='center'>\n" . "                <FORM NAME=\"form1\" ACTION=\"https://secure.assist.ru/shops/cardpayment.cfm\" METHOD=\"POST\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Shop_IDP\" VALUE=\"" . $this->_getSettingValue('CONF_PAYMENTMODULE_ASSIST_MERCHANT_ID') . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Order_IDP\" VALUE=\"" . $orderID . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Subtotal_P\" VALUE=\"" . $order_amount . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Delay\" VALUE=\"" . $this->_getSettingValue('CONF_PAYMENTMODULE_ASSIST_AUTHORIZATION_MODE') . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Language\" VALUE=\"0\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"URL_RETURN_OK\" VALUE=\"" . getTransactionResultURL('success') . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"URL_RETURN_NO\" VALUE=\"" . getTransactionResultURL('failure') . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Currency\" VALUE=\"" . $order["currency_code"] . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Comment\" VALUE=\"Оплата заказа #" . $orderID . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"LastName\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_lastname"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"FirstName\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_firstname"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Email\" VALUE=\"" . str_replace("\"", "&qout;", $order["customer_email"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Address\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_address"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"Country\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_country"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"State\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_state"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"City\" VALUE=\"" . str_replace("\"", "&qout;", $order["billing_city"]) . "\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"IsFrame\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"f_Email\" VALUE=\"0\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"CardPayment\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"WalletPayment\" VALUE=\"0\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"WebMoneyPayment\" VALUE=\"0\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"RapidaPayment\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"PayCashPayment\" VALUE=\"0\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"EPortPayment\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"KreditPilotPayment\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"HIDDEN\" NAME=\"AssistIDCCPayment\" VALUE=\"1\">\n" . "                <INPUT TYPE=\"SUBMIT\" NAME=\"Submit\" VALUE=\"Оплатить заказ по кредитной карте сейчас!\" onclick=\"document.all.Submit.disabled=true; document.form1.submit();\">\n" . "                </FORM>\n" . "                </td>\n" . "        </tr>\n" . "</table>";
     /*
     var_dump($res);
     exit;*/
     return $res;
 }