Changeset 1755146
- Timestamp:
- 10/30/2017 11:21:24 AM (8 years ago)
- Location:
- aics-ipay88-woocommerce/trunk
- Files:
-
- 2 edited
-
aics-ipay-gateway.php (modified) (1 diff)
-
libs/faiz-gateway-class.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aics-ipay88-woocommerce/trunk/aics-ipay-gateway.php
r1755139 r1755146 6 6 Author: AiCS 7 7 Author URI: http://aics.my/ 8 Version: 1. 0.58 Version: 1.1.0 9 9 */ 10 10 defined( 'ABSPATH' ) or die( 'nope.. just nope' ); -
aics-ipay88-woocommerce/trunk/libs/faiz-gateway-class.php
r1755137 r1755146 10 10 class Aics_ipay_gateway extends WC_Payment_Gateway{ 11 11 private $merchantID; 12 private $merchant Code;12 private $merchantKey; 13 13 public $pageID; 14 14 … … 25 25 $this->title = 'ipay88 Payment Gateway'; 26 26 $this->merchantID = $this->get_option( 'merchantID' ); 27 $this->merchant Code = $this->get_option('merchantCode');27 $this->merchantKey = $this->get_option('merchantKey'); 28 28 $this->pageID = $this->get_option('paymentPageID'); 29 29 … … 55 55 'title' => __( 'Testing/Live', 'aics' ), 56 56 'type' => 'checkbox', 57 'label' => __( 'Testing payment or live payment', 'aics' ),57 'label' => __( 'Testing payment? (check if testing)', 'aics' ), 58 58 'default' => 'no' 59 59 ), 60 60 'merchantID' => array( 61 'title' => __( 'Merchant Code', 'aics' ),61 'title' => __( 'Merchant ID', 'aics' ), 62 62 'type' => 'text', 63 63 'default' => '0000000' 64 64 ), 65 'merchant Code' => array(65 'merchantKey' => array( 66 66 'title' => __( 'Merchant Key', 'aics' ), 67 67 'type' => 'text', … … 114 114 115 115 $format_amt = $this->formatAmount($amount); 116 $the_string = $this->merchant Code.$this->merchantID.$order_id.$format_amt.$currency;116 $the_string = $this->merchantKey.$this->merchantID.$order_id.$format_amt.$currency; 117 117 //echo 'str: <b>'.$the_string.'</b>'; 118 118 $the_hash = $this->iPay88_signature($the_string); … … 187 187 $amnt = str_replace(',', '', $amt_txt); 188 188 $amnt_final = str_replace('.', '', $amnt); 189 $combined = $this->merchant Code.$this->merchantID.$payid.$refno.$amnt_final.$cur.$status;189 $combined = $this->merchantKey.$this->merchantID.$payid.$refno.$amnt_final.$cur.$status; 190 190 $signed = $this->iPay88_signature($combined); 191 191
Note: See TracChangeset
for help on using the changeset viewer.