コード例 #1
0
ファイル: index.php プロジェクト: neworldwebsites/noblessecms
function after_click_confirm_check_out_moneybookers($orderData = array())
{
    if (!($loadData = Paymentmethods::loadSetting('moneybookers'))) {
        return false;
    }
    $resultData = array('status' => 'process_page', 'content' => '');
    $content = '
	<form action="https://www.moneybookers.com/app/payment.pl" method="post">
	  <input type="hidden" name="pay_to_email" value="' . $loadData['email'] . '" />
	  <input type="hidden" name="recipient_description" value="Moneybookers Payment" />
	  <input type="hidden" name="transaction_id" value="' . $orderData['orderid'] . '" />
	  <input type="hidden" name="return_url" value="' . ROOT_URL . 'payment/completed" />
	  <input type="hidden" name="cancel_url" value="' . ROOT_URL . 'payment/cancel" />
	  <input type="hidden" name="status_url" value="' . ROOT_URL . 'payment/verify/moneybookers" />
	  <input type="hidden" name="language" value="EN" />
	  <input type="hidden" name="amount" value="' . $loadData['total'] . '" />
	  <input type="hidden" name="currency" value="USD" />
		  <input type="hidden" name="detail1_description" value="Moneybookers Payment"/>
		  <input type="hidden" name="detail1_text" value="Orderid ' . $orderData['orderid'] . '"/>
	  <input type="hidden" name="merchant_fields" value="order_id" />
	  <input type="hidden" name="order_id" value="' . $orderData['orderid'] . '" />
	  <div class="buttons">
	    <div class="pull-right">
	      <input type="submit" value="Click to pay!" class="btn btn-primary" />
	    </div>
	  </div>
	</form>

	';
    $resultData['content'] = $content;
    return $resultData;
}
コード例 #2
0
ファイル: index.php プロジェクト: neworldwebsites/noblessecms
function verifyPayment_payza()
{
    $loadData = Paymentmethods::loadSetting('payza');
    $ap_securitycode = Request::get('ap_securitycode', '');
    if (!isset($ap_securitycode[1])) {
        return false;
    }
    if ($ap_securitycode != $loadData['secret']) {
        $orderid = Request::get('ap_itemcode', '0');
        Orders::update($orderid, array('order_status' => 'cancel'));
    }
}
コード例 #3
0
ファイル: index.php プロジェクト: neworldwebsites/noblessecms
function after_click_confirm_check_out_ppstandard($orderData = array())
{
    if (!($loadData = Paymentmethods::loadSetting('ppstandard'))) {
        return false;
    }
    $resultData = array('status' => 'process_page', 'content' => '');
    $completedUrl = isset($orderData['completedUrl']) ? $orderData['completedUrl'] : ROOT_URL . 'payment/completed';
    $cancelUrl = isset($orderData['cancelUrl']) ? $orderData['cancelUrl'] : ROOT_URL . 'payment/cancel';
    $notifyUrl = isset($orderData['notifyUrl']) ? $orderData['notifyUrl'] : ROOT_URL . 'payment/verify/paypalstandard';
    $content = '
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_cart" />
  <input type="hidden" name="upload" value="1" />
  <input type="hidden" name="business" value="' . $loadData['email'] . '" />	
  <input type="hidden" name="currency_code" value="USD" />
  <input type="hidden" name="invoice" value="' . $orderData['orderid'] . '" />
  <input type="hidden" value="' . $loadData['total'] . '" name="amount">
  <input type="hidden" name="lc" value="USA" />
  <input type="hidden" name="rm" value="2" />
  <input type="hidden" name="no_note" value="1" />
  <input type="hidden" name="no_shipping" value="1" />
  <input type="hidden" name="charset" value="utf-8" />
  <input type="hidden" name="return" value="' . $completedUrl . '" />
  <input type="hidden" name="notify_url" value="' . $notifyUrl . '" />
  <input type="hidden" name="cancel_return" value="' . $cancelUrl . '" />
  <input type="hidden" name="paymentaction" value="authorization" />
  <input type="hidden" name="custom" value="' . $orderData['orderid'] . '" />
  <input type="hidden" name="bn" value="Noblesse_CMS" />
  <div class="buttons">
    <div class="pull-right">
      <input type="submit" value="Click to pay!" class="btn btn-primary" />
    </div>
  </div>
</form>
	';
    $resultData['content'] = $content;
    return $resultData;
}