本文整理汇总了PHP中fn_check_payment_script函数的典型用法代码示例。如果您正苦于以下问题:PHP fn_check_payment_script函数的具体用法?PHP fn_check_payment_script怎么用?PHP fn_check_payment_script使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fn_check_payment_script函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: fn_paypal_complete_checkout
function fn_paypal_complete_checkout($token, $processor_data, $order_info)
{
$pp_response['order_status'] = 'F';
$reason_text = '';
$paypal_checkout_details = fn_paypal_get_express_checkout_details($processor_data, $token);
if (fn_paypal_ack_success($paypal_checkout_details)) {
$result = fn_paypal_do_express_checkout($processor_data, $paypal_checkout_details, $order_info);
if (fn_paypal_ack_success($result)) {
$status = $result['PAYMENTINFO_0_PAYMENTSTATUS'];
$pp_response['transaction_id'] = $result['PAYMENTINFO_0_TRANSACTIONID'];
if ($status == 'Completed' || $status == 'Processed') {
$pp_response['order_status'] = 'O';
$reason_text = 'Accepted, awaiting ipn for processing ';
} elseif ($status == 'Pending') {
$pp_response['order_status'] = 'O';
$reason_text = 'Pending ';
} else {
$reason_text = 'Declined ';
}
$reason_text = fn_paypal_process_add_fields($result, $reason_text);
if (!empty($result['L_ERRORCODE0'])) {
$reason_text .= ', ' . fn_paypal_get_error($result);
}
} else {
$reason_text = fn_paypal_get_error($result);
}
} else {
$reason_text = fn_paypal_get_error($paypal_checkout_details);
}
$pp_response['reason_text'] = $reason_text;
if (fn_check_payment_script($processor_data['processor_script'], $order_info['order_id'])) {
unset($_SESSION['pp_express_details']);
fn_finish_payment($order_info['order_id'], $pp_response);
fn_order_placement_routines('route', $order_info['order_id'], false);
}
}
开发者ID:askzap,项目名称:ultimate,代码行数:36,代码来源:paypal_express.functions.php
示例2: fn_get_processor_data
$res_desc = $_POST['RESPMSG'];
$checksum_recv = $_POST['CHECKSUMHASH'];
$paramList = $_POST;
if (fn_check_payment_script('paytm.php', $order_id, $processor_data)) {
if (empty($processor_data)) {
$processor_data = fn_get_processor_data($order_info['email']);
}
$secret_key = $processor_data["processor_params"]['secret_key'];
$bool = "FALSE";
$bool = verifychecksum_e($paramList, $secret_key, $checksum_recv);
$paytmTxnIdText = "";
if (isset($_POST['TXNID']) && !empty($_POST['TXNID'])) {
$paytmTxnIdText = " Paytm Transaction Id : " . $_POST['TXNID'];
}
if (!empty($order_id)) {
if (fn_check_payment_script('paytm.php', $order_id, $processor_data)) {
$pp_response = array();
$order_info = fn_get_order_info($order_id);
if ($bool == "TRUE") {
if ($_REQUEST['RESPCODE'] == 01) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = "Thank you. Your order has been processed successfully." . $paytmTxnIdText;
} else {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = "Thank you. Your order has been unsuccessfull" . $paytmTxnIdText;
}
} else {
$pp_response['order_status'] = 'D';
$pp_response['reason_text'] = "Thank you. Your order has been declined due to security reasons." . $paytmTxnIdText;
}
fn_change_order_status($order_id, $pp_response['order_status']);
开发者ID:Paytm-Payments,项目名称:Paytm_CS-Cart_v4.0_Kit,代码行数:31,代码来源:paytm.php
示例3: __
}
} else {
$pp_response['order_status'] = 'F';
if ($_REQUEST['md5sig'] != $our_md5sig) {
$pp_response['reason_text'] .= __('mb_md5_hashes_not_match');
}
if (!$adjusted_order_total) {
$pp_response['reason_text'] .= __('text_unsupported_currency');
} elseif ($_REQUEST['amount'] != $adjusted_order_total) {
$pp_response['reason_text'] .= __('mb_amounts_not_match');
}
if ($_REQUEST['currency'] != $processor_data['processor_params']['currency']) {
$pp_response['reason_text'] .= __('mb_currencies_not_match');
}
}
if (fn_check_payment_script('skrill_ewallet.php', $_REQUEST['order_id'])) {
fn_finish_payment($_REQUEST['order_id'], $pp_response);
}
exit;
}
} else {
$url = 'https://www.moneybookers.com/app/payment.pl';
$suffix = AREA != 'A' && empty($order_info['repaid']) && defined('IFRAME_MODE') ? '&iframe_mode=true' : '';
$post_data = array('pay_to_email' => $processor_data['processor_params']['pay_to_email'], 'recipient_description' => $processor_data['processor_params']['recipient_description'], 'transaction_id' => $processor_data['processor_params']['order_prefix'] . (!empty($order_info['repaid']) ? $order_id . '_' . $order_info['repaid'] : $order_id), 'return_url' => fn_url("payment_notification.return?payment=skrill_ewallet&order_id={$order_id}{$suffix}", AREA, 'current'), 'return_url_text' => '', 'cancel_url' => fn_url("payment_notification.cancel?payment=skrill_ewallet&order_id={$order_id}{$suffix}", AREA, 'current'), 'status_url' => fn_url("payment_notification.status?payment=skrill_ewallet&order_id={$order_id}{$suffix}", AREA, 'current'), 'language' => $processor_data['processor_params']['language'], 'amount' => $order_info['total'], 'currency' => $processor_data['processor_params']['currency'], 'return_url_target' => '_parent', 'cancel_url_target' => '_parent', 'merchant_fields' => 'platform,mb_sess_id,inner_order_id', 'mb_sess_id' => base64_encode(Tygh::$app['session']->getID()), 'inner_order_id' => $order_id, 'platform' => '21477207');
$post_data['amount'] = fn_mb_adjust_amount($post_data['amount'], $post_data['currency']);
if (!$post_data['amount']) {
if (!empty($suffix)) {
echo __('text_unsupported_currency');
} else {
fn_set_notification('E', __('error'), __('text_unsupported_currency'));
$url = fn_url("payment_notification.unsupported_currency?payment=skrill_ewallet&order_id={$order_id}", AREA, 'current');
开发者ID:ambient-lounge,项目名称:site,代码行数:31,代码来源:skrill_ewallet.php
示例4: die
//
if (!defined('AREA')) {
die('Access denied');
}
if (defined('PAYMENT_NOTIFICATION')) {
// to avoid bug with the '?' sign
foreach ($_REQUEST as $k => $v) {
if (preg_match("/\\?/", $v)) {
$tmp = explode('?', $v);
$_REQUEST[$k] = $tmp[0];
$tmp = explode('=', $tmp[1]);
$_REQUEST[$tmp[0]] = $tmp[1];
}
}
$order_id = $_REQUEST['order_id'];
if (!fn_check_payment_script('itransact_split_form.php', $order_id, $processor_data)) {
exit;
}
$order_info = fn_get_order_info($order_id);
$pp_response = array();
$check_cntrl = md5('CNTRL_VALUE' . $order_id . $processor_data['params']['merchant_name'] . $order_info['total'] . $processor_data['params']['secret_key']);
if (!empty($_REQUEST['xid']) && preg_match("/\\d+/", $_REQUEST['xid']) && $check_cntrl == $_REQUEST['cntrl']) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = fn_get_lang_var('transaction_approved');
$pp_response['transaction_id'] = $_REQUEST['xid'];
} else {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = fn_get_lang_var('transaction_declined');
}
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines($order_id);
开发者ID:diedsmiling,项目名称:busenika,代码行数:31,代码来源:itransact_split_form.php
示例5: unset
}
} else {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = '';
}
if (!empty($response['Status'])) {
$pp_response['reason_text'] = 'Status: ' . @$response['StatusDetail'] . ' (' . $response['Status'] . ') ';
}
if (!empty($response['VPSTxId'])) {
$pp_response['transaction_id'] = $response['VPSTxId'];
}
if (!empty($response['AVSCV2']) && $response['AVSCV2'] != 'DATA NOT CHECKED') {
$pp_response['reason_text'] .= ' (AVS/CVV2: {' . $response['AVSCV2'] . '}) ';
}
if (!empty($response['AddressResult']) && $response['AddressResult'] != 'NOTPROVIDED') {
$pp_response['reason_text'] .= ' (Address: {' . $response['AddressResult'] . '}) ';
}
if (!empty($response['PostCodeResult']) && $response['PostCodeResult'] != 'NOTPROVIDED') {
$pp_response['reason_text'] .= ' (PostCode: {' . $response['PostCodeResult'] . '}) ';
}
if (!empty($response['CV2Result']) && $response['CV2Result'] != 'NOTPROVIDED') {
$pp_response['reason_text'] .= ' (CV2: {' . $response['CV2Result'] . '}) ';
}
if (!empty($response['3DSecureStatus'])) {
$pp_response['reason_text'] .= ' (3D Result: {' . $response['3DSecureStatus'] . '}) ';
}
if (!empty($secure_verified_3d) && !empty($order_id) && fn_check_payment_script('sagepay_direct.php', $order_id) == true) {
unset($_SESSION['already_posted']);
fn_finish_payment($order_id, $pp_response, false);
fn_order_placement_routines('route', $order_id);
}
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:sagepay_direct.php
示例6: fn_order_placement_routines
fn_order_placement_routines('route', $_REQUEST['order_id']);
}
// Fraud checking notification
} elseif (!empty($_REQUEST['message_type']) && $_REQUEST['message_type'] == 'FRAUD_STATUS_CHANGED') {
if (!empty($_REQUEST['vendor_order_id'])) {
list($order_id) = explode('_', $_REQUEST['vendor_order_id']);
if (!empty($order_id)) {
$payment_id = db_get_field("SELECT payment_id FROM ?:orders WHERE order_id = ?i", $order_id);
$processor_data = fn_get_payment_method_data($payment_id);
$pp_response = array();
if ($_REQUEST['fraud_status'] == 'pass') {
$pp_response['order_status'] = 'P';
} elseif ($_REQUEST['fraud_status'] == 'fail') {
$pp_response['order_status'] = $processor_data['processor_params']['fraud_fail'];
}
if (!empty($pp_response) && fn_check_payment_script('2checkout.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
}
}
}
}
exit;
} else {
$__bstate = $order_info['b_state'];
if ($order_info['b_country'] != 'US' && $order_info['b_country'] != 'CA') {
$__bstate = "XX";
}
$__sstate = @$order_info['s_state'];
if ($order_info['s_country'] != 'US' && $order_info['s_country'] != 'CA') {
$__sstate = "XX";
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:2checkout.php
示例7: md5
$key = md5($processor_data['processor_params']['key2'] . md5($processor_data['processor_params']['key1'] . 'transact=' . $_REQUEST['transact'] . '&amount=' . $amount . '¤cy=' . $processor_data['processor_params']['currency']));
$key_with_fee = md5($processor_data['processor_params']['key2'] . md5($processor_data['processor_params']['key1'] . 'transact=' . $_REQUEST['transact'] . '&amount=' . $amount_with_fee . '¤cy=' . $processor_data['processor_params']['currency']));
}
if (!empty($_REQUEST['transact']) && ($_REQUEST['authkey'] == $key || $_REQUEST['authkey'] == $key_with_fee)) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('transaction_approved');
$pp_response['transaction_id'] = $_REQUEST['transact'];
} else {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = __('transaction_declined');
}
} else {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = __('transaction_declined');
}
if (fn_check_payment_script('dibs.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines('route', $order_id);
}
} else {
$currencies = array(208 => 'DKK', 978 => 'EUR', 840 => 'USD', 826 => 'GBP', 752 => 'SEK', 036 => 'AUD', 124 => 'CAD', 352 => 'ISK', 392 => 'JPY', 554 => 'NZD', 578 => 'NOK', 756 => 'CHF', 949 => 'TRY');
$languages = array("da", "sv", "no", "en", "nl", "de", "fr", "fi", "es", "it", "fo", "pl");
$post_address = "https://payment.architrade.com/paymentweb/start.action";
$msg = __('text_cc_processor_connection', array('[processor]' => 'DIBS'));
$lang_code = Registry::get('settings.Appearance.backend_default_language');
$post = array();
$post['order_id'] = $processor_data['processor_params']['order_prefix'] . ($order_info['repaid'] ? $order_id . '_' . $order_info['repaid'] : $order_id);
$post['currency'] = $processor_data['processor_params']['currency'];
$post['amount'] = $order_info['total'] * 100;
$post['accepturl'] = fn_url("payment_notification.accept?payment=dibs&order_id={$order_id}", AREA, 'current');
$post['cancelurl'] = fn_url("payment_notification.cancel?payment=dibs&order_id={$order_id}", AREA, 'current');
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:dibs.php
示例8: array
$pp_response = array();
if ($status[1] == 'Success') {
$pp_response['order_status'] = 'P';
} elseif ($status[1] == 'Open') {
$pp_response['order_status'] = 'O';
} elseif ($status[1] == 'Cancelled') {
$pp_response['order_status'] = 'I';
} else {
$pp_response['order_status'] = 'F';
}
$pp_response['reason_text'] = "Status code: " . $status[1];
$dat = $date[1];
$time = $dat[0] . $dat[1] . $dat[2] . $dat[3] . '-' . $dat[4] . $dat[5] . '-' . $dat[6] . $dat[7] . ' ' . $dat[8] . $dat[9] . ':' . $dat[10] . $dat[11] . ':' . $dat[12] . $dat[13];
$pp_response['reason_text'] .= " (TimeStamp: " . $time . ")";
$pp_response['transaction_id'] = $transaction[1];
if (fn_check_payment_script('ideal_basic.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
// Force customer notification
}
}
}
} else {
$langs = array("US" => "en_US", "FR" => "fr_FR", "NL" => "nl_NL", "IT" => "it_IT", "DE" => "de_DE", "ES" => "es_ES", "NO" => "no_NO", "en" => "en_EN");
$validUntil = date("Y-m-d\\TH:i:s", time() + 3600 + date('Z'));
$validUntil = $validUntil . ".000Z";
$pp_merch = $processor_data['processor_params']['merchant_id'];
$pp_secret = $processor_data['processor_params']['merchant_key'];
$pp_curr = $processor_data['processor_params']['currency'];
$pp_test = $processor_data['processor_params']['test'] == 'TRUE' ? "https://idealtest.secure-ing.com/ideal/mpiPayInitIng.do" : "https://ideal.secure-ing.com/ideal/mpiPayInitIng.do";
$pp_lang = $processor_data['processor_params']['language'];
$order_total = $order_info['total'] * 100;
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:ideal_basic.php
示例9: PxAccess
$pxaccess = new PxAccess($PxAccess_Url, $PxAccess_Userid, $PxAccess_Key, $Mac_Key);
$enc_hex = $result;
//getResponse method in PxAccess object returns PxPayResponse object
//which encapsulates all the response data
$rsp = $pxaccess->getResponse($enc_hex);
$order_alias = $rsp->getMerchantReference();
$order_id = strpos($order_alias, '_') ? substr($order_alias, 0, strpos($order_alias, '_')) : $order_alias;
$pp_response = array();
$pp_response['order_status'] = $rsp->getSuccess() == "1" ? 'P' : 'F';
$pp_response['reason_text'] = $rsp->getResponseText();
if ($pp_response['order_status'] == 'P') {
$pp_response['reason_text'] .= "; Auth code: " . $rsp->getAuthCode();
// from bank
}
$pp_response['transaction_id'] = $rsp->getDpsTxnRef();
if (fn_check_payment_script('dps_access.php', $order_id)) {
fn_finish_payment($order_id, $pp_response, false);
}
fn_order_placement_routines($order_id);
}
} elseif (isset($_REQUEST['result'])) {
DEFINE('AREA', 'C');
DEFINE('AREA_NAME', 'customer');
require './../prepare.php';
require './../init.php';
$_SESSION['dps_access']['result'] = $_REQUEST['result'];
fn_redirect(Registry::get('config.current_location') . '/' . Registry::get('config.customer_index') . "?dispatch=payment_notification.notify&payment=dps_access&order_id={$_SESSION['dps_access']['order_id']}");
} else {
if (!defined('AREA')) {
die('Access denied');
}
开发者ID:diedsmiling,项目名称:busenika,代码行数:31,代码来源:dps_access.php
示例10: strpos
****************************************************************************/
if (!defined('BOOTSTRAP')) {
require './init_payment.php';
$order_id = strpos($_REQUEST['strCartID'], '_') ? substr($_REQUEST['strCartID'], 0, strpos($_REQUEST['strCartID'], '_')) : $_REQUEST['strCartID'];
if (!isset($_REQUEST['intAccountID'])) {
fn_order_placement_routines('route', $order_id);
} else {
$pp_response = array();
if (empty($_REQUEST['intStatus'])) {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = __('failed');
} elseif ($_REQUEST['intStatus'] == 1) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('order_id') . '-' . $order_id;
} else {
$pp_response['order_status'] = 'N';
$pp_response['reason_text'] = __('cancelled');
}
$pp_response['transaction_id'] = $_REQUEST['intTransID'];
if (fn_check_payment_script('mcpe.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
}
}
} else {
$test = $processor_data['processor_params']['mode'];
$_order_id = $order_info['repaid'] ? $order_id . '_' . $order_info['repaid'] : $order_id;
$submit_url = 'https://secure.metacharge.com/mcpe/purser';
$post_data = array('intTestMode' => $test, 'intInstID' => $processor_data['processor_params']['merchant_id'], 'strCartID' => $_order_id, 'fltAmount' => $order_info['total'], 'strCurrency' => $processor_data['processor_params']['currency'], 'strDesc' => "Payment for Order {$order_id}");
fn_create_payment_form($submit_url, $post_data, 'metacharge.com server');
}
exit;
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:mcpe.php
示例11: elseif
if (!empty($_REQUEST['numauto'])) {
$pp_response["order_status"] = 'P';
$pp_response["reason_text"] = "NumAuto: " . $_REQUEST['numauto'];
} else {
$pp_response["order_status"] = 'F';
$pp_response["reason_text"] = "Response code: ";
if (!empty($processor_error[$_REQUEST['erreur']])) {
$pp_response["reason_text"] .= $processor_error[$_REQUEST['erreur']];
} elseif (strstr($_REQUEST['erreur'], '001') == true) {
$pp_response["reason_text"] .= $processor_error["001xx"];
} else {
$pp_response["reason_text"] .= $_REQUEST['erreur'];
}
}
$pp_response['transaction_id'] = $_REQUEST['transac'];
if (fn_check_payment_script('paybox.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
}
exit;
}
} else {
$paybox_script = Registry::get('config.http_location') . "/payments/paybox_files/modulev2.cgi";
$pbx_devise = $processor_data['params']['currency'];
$r_url = Registry::get('config.current_location') . "/{$index_script}?dispatch=payment_notification.process&payment=paybox&order_id={$order_id}&sl=" . CART_LANGUAGE;
$pbx_annule = $r_url;
$pbx_effectue = $r_url;
$pbx_refuse = $r_url;
$pbx_retour = "montant:M;ref:R;numauto:A;transac:T;erreur:E;maref:R;";
$pbx_total = $order_info['total'] * 100;
$pbx_cmd = $order_info['repaid'] ? $order_id . '_' . $order_info['repaid'] : $order_id;
echo <<<EOT
开发者ID:diedsmiling,项目名称:busenika,代码行数:31,代码来源:paybox.php
示例12: array
}
$post_data = array();
$post_data_values = array('mid', 'orderid', 'status', 'orderAmount', 'currency', 'paymentTotal', 'riskScore', 'payMethod', 'txId', 'paymentRef');
foreach ($post_data_values as $post_data_value) {
if (isset($_REQUEST[$post_data_value])) {
$post_data[] = $_REQUEST[$post_data_value];
}
}
$digest = base64_encode(sha1(implode('', $post_data) . $processor_data['processor_params']['shared_secret'], true));
if ($_REQUEST['status'] == 'CAPTURED') {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('transaction_approved');
$pp_response['transaction_id'] = $_REQUEST['paymentRef'];
}
}
if (fn_check_payment_script('alpha_bank.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines('route', $order_id);
}
} else {
if ($processor_data['processor_params']['mode'] == 'test') {
$payment_url = 'https://alpha.test.modirum.com/vpos/shophandlermpi';
} else {
$payment_url = 'https://www.alphaecommerce.gr/vpos/shophandlermpi';
}
$amount = fn_format_price($order_info['total'], $processor_data['processor_params']['currency']);
$confirm_url = fn_url("payment_notification.success?payment=alpha_bank&order_id={$order_id}", AREA, 'current');
$cancel_url = fn_url("payment_notification.fail?payment=alpha_bank&order_id={$order_id}", AREA, 'current');
$post_data = array('mid' => $processor_data['processor_params']['merchant_id'], 'lang' => $processor_data['processor_params']['language'], 'orderid' => time() . $order_id, 'orderDesc' => '#' . $order_id, 'orderAmount' => $amount, 'currency' => $processor_data['processor_params']['currency'], 'payerEmail' => $order_info['email'], 'payerPhone' => $order_info['b_phone'], 'trType' => '1', 'confirmUrl' => $confirm_url, 'cancelUrl' => $cancel_url);
$post_data['digest'] = base64_encode(sha1(implode('', $post_data) . $processor_data['processor_params']['shared_secret'], true));
fn_create_payment_form($payment_url, $post_data, 'Alpha Bank', false);
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:alpha_bank.php
示例13: fn_get_order_info
if ($mode == 'notify') {
$order_info = fn_get_order_info($_REQUEST['order_id']);
if ($order_info['status'] == 'O') {
$pp_response = array();
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = 'No response recieved';
fn_finish_payment($_REQUEST['order_id'], $pp_response, false);
}
fn_order_placement_routines('route', $_REQUEST['order_id']);
} elseif ($mode == 'tvp') {
$msg = __('epassporte_msg');
$pp_response = array();
$pp_response['order_status'] = substr($_REQUEST['ans'], 0, 1) == 'Y' ? 'P' : 'F';
$pp_response['reason_text'] = __('order_id') . '-' . $_REQUEST['order_id'];
$pp_response['transaction_id'] = $_REQUEST['credit_trans_idx'];
if (fn_check_payment_script('epassporte.php', $_REQUEST['order_id'])) {
fn_finish_payment($_REQUEST['order_id'], $pp_response);
}
echo <<<EOT
<form method="post" action="https://www.epassporte.com/secure/eppurchaseverify.cgi" name="process">
<input type="hidden" name="credit_trans_idx" value="{$credit_trans_idx}">
<input type="hidden" name="debit_trans_idx" value="{$debit_trans_idx}">
<input type="hidden" name="total_amount" value="{$total_amount}">
<input type="hidden" name="action" value="verify">
<input type="hidden" name="msg" value="{$msg}">
</form>
<script type="text/javascript">
window.onload = function(){
document.process.submit();
};
</script>
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:epassporte.php
示例14: __
$pp_response['reason_text'] = __('kupivkredit_widget_incomplete');
} elseif ($decision == 'closed') {
$pp_response['order_status'] = 'I';
$pp_response['reason_text'] = __('kupivkredit_widget_closed');
} elseif ($decision == 'rej') {
$pp_response['order_status'] = 'D';
$pp_response['reason_text'] = __('kupivkredit_widget_bank_reject');
} elseif ($decision == 'ver') {
$pp_response['order_status'] = 'O';
$pp_response['reason_text'] = __('kupivkredit_widget_open');
} elseif ($decision == 'agr') {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('kupivkredit_widget_processed');
}
}
if (fn_check_payment_script('kupivkredit.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines('route', $order_id, false);
}
} else {
$url = $processor_data['processor_params']['test'] == 'Y' ? 'https://' . KVK_WIDGET_TEST_URL : 'https://' . KVK_WIDGET_URL;
$kvk_order_id = ($order_info['repaid'] ? $order_info['order_id'] . '_' . $order_info['repaid'] : $order_info['order_id']) . '_' . fn_date_format(time(), '%H_%M_%S');
//We should save this iformation for the actions such as 'confirm order', 'cancel order' in the admin area.
fn_update_order_payment_info($order_id, array('kvk_order_id' => $kvk_order_id));
$order = array();
foreach ($order_info['products'] as $k => $item) {
$price = fn_format_price(($item['subtotal'] - fn_external_discounts($item)) / $item['amount']);
$order['items'][] = array('title' => $item['product'], 'category' => db_get_field("SELECT ?:category_descriptions.category FROM ?:category_descriptions LEFT JOIN ?:products_categories ON ?:category_descriptions.category_id = ?:products_categories.category_id WHERE ?:products_categories.product_id = ?i AND ?:products_categories.link_type = ?s AND ?:category_descriptions.lang_code = ?s", $item['product_id'], 'M', $order_info['lang_code']), 'qty' => $item['amount'], 'price' => fn_format_rate_value($price, 'F', 0, '.', '', ''));
}
if (!empty($order_info['shipping_cost'])) {
$order['items'][] = array('title' => __('shipping_cost'), 'category' => '', 'qty' => 1, 'price' => fn_format_rate_value($order_info['shipping_cost'], 'F', 0, '.', '', ''));
开发者ID:ambient-lounge,项目名称:site,代码行数:31,代码来源:kupivkredit.php
示例15: array
$order_status = 'P';
$pp_response = array('order_status' => $order_status);
if (!empty($processor_data['processor_params']['postponed_payments_enabled']) && $processor_data['processor_params']['postponed_payments_enabled'] == 'Y') {
$pp_response['order_status'] = $processor_data['processor_params']['unconfirmed_order_status'];
$pp_response['yandex_postponed_payment'] = true;
$pp_response['yandex_invoice_id'] = $invoiceId;
$pp_response['yandex_merchant_order_id'] = $_REQUEST['merchant_order_id'];
}
if (fn_check_payment_script('yandex_money.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
}
} else {
$code = 1;
$pp_response['order_status'] = 'N';
$pp_response["reason_text"] = __('error');
if (fn_check_payment_script('yandex_money.php', $order_id)) {
fn_finish_payment($order_id, $pp_response, false);
}
}
$dom = new DOMDocument('1.0', 'utf-8');
$item = $dom->createElement('paymentAvisoResponse');
$item->setAttribute('performedDatetime', $date_time);
$item->setAttribute('code', $code);
$item->setAttribute('invoiceId', $invoiceId);
$item->setAttribute('shopId', $shop_id);
$dom->appendChild($item);
echo $dom->saveXML();
if (!empty($processor_data['processor_params']['logging']) && $processor_data['processor_params']['logging'] == 'Y') {
fn_yandex_money_log_write($dom->saveXML(), 'ym_payment_aviso.log');
}
exit;
开发者ID:askzap,项目名称:ask-zap,代码行数:31,代码来源:yandex_money.php
示例16: substr
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = $_REQUEST['msg'];
$pp_response['transaction_id'] = $_REQUEST['TxnGUID'];
$pp_response['card_number'] = $_REQUEST['mPAN'];
$pp_response['card'] = $_REQUEST['type'];
$pp_response['cardholder_name'] = $_REQUEST['name'];
$pp_response['expiry_month'] = substr($_REQUEST['exp'], 0, 2);
$pp_response['expiry_year'] = substr($_REQUEST['exp'], -2);
} elseif (!empty($_REQUEST['error'])) {
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = !empty($_REQUEST['msg']) ? $_REQUEST['msg'] : __('error');
} else {
$pp_response['order_status'] = 'N';
$pp_response['reason_text'] = __('transaction_cancelled');
}
if (fn_check_payment_script('cresecure.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines('route', $order_id);
}
}
} else {
if ($processor_data['processor_params']['test'] == 'live') {
$post_address = "https://safe.cresecure.net/securepayments/a1/cc_collection.php";
} else {
$post_address = "https://sandbox-cresecure.net/securepayments/a1/cc_collection.php";
}
$post_data = array('CRESecureID' => $processor_data['processor_params']['cresecureid'], 'total_amt' => sprintf('%.2f', $order_info['total']), 'return_url' => fn_url("payment_notification.return?payment=cresecure&order_id={$order_id}", AREA, 'https'), 'content_template_url' => fn_payment_url('https', "cresecure.php?order_id={$order_id}&display_full_path=Y"), 'b_country' => db_get_field('SELECT a.code_A3 FROM ?:countries as a WHERE a.code = ?s', $order_info['b_country']), 's_country' => db_get_field('SELECT a.code_A3 FROM ?:countries as a WHERE a.code = ?s', $order_info['s_country']), 'customer_address' => $order_info['b_address'] . (!empty($order_info['b_address_2']) ? ' ' . $order_info['b_address_2'] : ''), 'delivery_address' => $order_info['s_address'] . (!empty($order_info['s_address_2']) ? ' ' . $order_info['s_address_2'] : ''), 'customer_phone' => !empty($order_info['b_phone']) ? $order_info['b_phone'] : '', 'delivery_phone' => !empty($order_info['s_phone']) ? $order_info['s_phone'] : '', 'allowed_types' => !empty($processor_data['processor_params']['allowed_types']) ? join('|', $processor_data['processor_params']['allowed_types']) : 'Visa|MasterCard', 'sess_id' => Tygh::$app['session']->getID(), 'sess_name' => Tygh::$app['session']->getName(), 'order_id' => $order_info['order_id'], 'currency' => $processor_data['processor_params']['currency'], 'CRESecureAPIToken' => $processor_data['processor_params']['cresecureapitoken'], 'customer_id' => $order_info['user_id'], 'customer_company' => $order_info['company'], 'customer_firstname' => $order_info['b_firstname'], 'customer_lastname' => $order_info['b_lastname'], 'customer_email' => $order_info['email'], 'customer_city' => $order_info['b_city'], 'customer_state' => $order_info['b_state'], 'customer_postal_code' => $order_info['b_zipcode'], 'customer_country' => $order_info['b_country'], 'delivery_firstname' => $order_info['s_firstname'], 'delivery_lastname' => $order_info['s_lastname'], 'delivery_city' => $order_info['s_city'], 'delivery_state' => $order_info['s_state'], 'delivery_postal_code' => $order_info['s_zipcode'], 'ip_address' => $_SERVER['REMOTE_ADDR']);
fn_create_payment_form($post_address, $post_data, 'CRE secure', false);
}
exit;
}
开发者ID:ambient-lounge,项目名称:site,代码行数:31,代码来源:cresecure.php
示例17: __
$pp_response['order_status'] = 'F';
$pp_response['reason_text'] = __('text_transaction_declined');
$order_id = !empty($_REQUEST['order_id']) ? (int) $_REQUEST['order_id'] : 0;
if ($mode == 'response' && !empty($_REQUEST['order_id'])) {
$order_info = fn_get_order_info($order_id);
if (empty($processor_data)) {
$processor_data = fn_get_processor_data($order_info['payment_id']);
}
$option = array('merchant_id' => $processor_data['processor_params']['fondy_merchantid'], 'secret_key' => $processor_data['processor_params']['fondy_merchnatSecretKey']);
$response = FondyCls::isPaymentValid($option, $_POST);
if ($response == true && $order_info['status'] == 'N') {
if ($_REQUEST['order_status'] == FondyCls::ORDER_APPROVED) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('transaction_approved');
$pp_response['transaction_id'] = $_REQUEST['payment_id'];
if (fn_check_payment_script('fondy.php', $order_id)) {
fn_finish_payment($order_id, $pp_response);
fn_order_placement_routines('route', $order_id);
}
}
}
} elseif ($mode == 'sucsses' && !empty($_REQUEST['order_id'])) {
if ($response == true && $order_info['status'] == 'N') {
if ($_REQUEST['order_status'] == FondyCls::ORDER_APPROVED) {
$pp_response['order_status'] = 'P';
$pp_response['reason_text'] = __('transaction_approved');
$pp_response['transaction_id'] = $_REQUEST['payment_id'];
fn_finish_payment($order_id, $pp_response);
}
}
}
开发者ID:cloudipsp,项目名称:cscart,代码行数:31,代码来源:fondy.php
示例18: fn_change_order_status
}
if (!empty($_REQUEST['payer_id'])) {
$pp_response['client_id'] = $_REQUEST['payer_id'];
}
if (!empty($_REQUEST['memo'])) {
$pp_response['customer_notes'] = $_REQUEST['memo'];
}
if ($pp_response['order_status'] == $paypal_statuses['pending']) {
fn_change_order_status($_REQUEST['order_id'], $pp_response['order_status']);
} else {
fn_finish_payment($_REQUEST['order_id'], $pp_response);
}
}
exit;
} elseif ($mode == 'return') {
if (fn_check_payment_script('paypal.php', $_REQUEST['order_id'])) {
$order_info = fn_get_order_info($_REQUEST['order_id'], true);
if ($order_info['status'] == STATUS_INCOMPLETED_ORDER) {
fn_change_order_status($_REQUEST['order_id'], 'O', '', false);
}
if (fn_allowed_for('MULTIVENDOR')) {
if ($order_info['status'] == STATUS_PARENT_ORDER) {
$child_orders = db_get_hash_single_array("SELECT order_id, status FROM ?:orders WHERE parent_order_id = ?i", array('order_id', 'status'), $_REQUEST['order_id']);
foreach ($child_orders as $order_id => $order_status) {
if ($order_status == STATUS_INCOMPLETED_ORDER) {
fn_change_order_status($order_id, 'O', '', false);
}
}
}
}
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:paypal.php
示例19: die
die('Access denied');
}
if (defined('PAYMENT_NOTIFICATION')) {
if (empty($_REQUEST['refno'])) {
if (!empty($_SESSION['thaiepay_refno'])) {
$_REQUEST['refno'] = $_SESSION['thaiepay_refno'];
unset($_SESSION['thaiepay_refno']);
} else {
if ($mode == 'finish') {
fn_order_placement_routines('checkout_redirect');
}
exit;
}
}
$order_id = intval($_REQUEST['refno']);
if (fn_check_payment_script('thaiepay.php', $order_id, $processor_data)) {
if ($mode == 'notify') {
$errors = array();
$errors_desc = array('additional_parameter' => __('additional_parameter_not_correct'), 'total' => __('order_total_not_correct'));
if (isset($_REQUEST['total'])) {
$order_info = fn_get_order_info($order_id);
if (fn_format_price($order_info['total']) != fn_format_price($_REQUEST['total'])) {
$errors['total'] = true;
}
}
$param_name = !empty($processor_data['processor_params']['add_param_name']) ? $processor_data['processor_params']['add_param_name'] : '';
$param_value = !empty($processor_data['processor_params']['add_param_value']) ? $processor_data['processor_params']['add_param_value'] : '';
$sec_param = !empty($param_name) && !empty($_REQUEST[$param_name]) ? $_REQUEST[$param_name] : '';
if (empty($param_value) || empty($sec_param) || $sec_param != $param_value) {
$errors['additional_parameter'] = true;
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:thaiepay.php
示例20: date
if (!defined('PAYMENT_NOTIFICATION')) {
|
请发表评论