Plugin Directory

Changeset 1755146


Ignore:
Timestamp:
10/30/2017 11:21:24 AM (8 years ago)
Author:
aics
Message:

modified the merchant key confusion on gateway class

Location:
aics-ipay88-woocommerce/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • aics-ipay88-woocommerce/trunk/aics-ipay-gateway.php

    r1755139 r1755146  
    66Author: AiCS
    77Author URI: http://aics.my/
    8 Version: 1.0.5
     8Version: 1.1.0
    99*/
    1010defined( 'ABSPATH' ) or die( 'nope.. just nope' );
  • aics-ipay88-woocommerce/trunk/libs/faiz-gateway-class.php

    r1755137 r1755146  
    1010class Aics_ipay_gateway extends WC_Payment_Gateway{
    1111    private $merchantID;
    12     private $merchantCode;
     12    private $merchantKey;
    1313    public $pageID;
    1414   
     
    2525        $this->title = 'ipay88 Payment Gateway';
    2626        $this->merchantID = $this->get_option( 'merchantID' );
    27         $this->merchantCode = $this->get_option('merchantCode');
     27        $this->merchantKey = $this->get_option('merchantKey');
    2828        $this->pageID = $this->get_option('paymentPageID');
    2929       
     
    5555                                                      'title' => __( 'Testing/Live', 'aics' ),
    5656                                                      'type' => 'checkbox',
    57                                                       'label' => __( 'Testing payment or live payment', 'aics' ),
     57                                                      'label' => __( 'Testing payment? (check if testing)', 'aics' ),
    5858                                                      'default' => 'no'
    5959                                                    ),
    6060                                   'merchantID' => array(
    61                                                           'title' => __( 'Merchant Code', 'aics' ),
     61                                                          'title' => __( 'Merchant ID', 'aics' ),
    6262                                                          'type' => 'text',
    6363                                                          'default' => '0000000'
    6464                                                        ),
    65                                    'merchantCode' => array(
     65                                   'merchantKey' => array(
    6666                                                          'title' => __( 'Merchant Key', 'aics' ),
    6767                                                          'type' => 'text',
     
    114114       
    115115        $format_amt = $this->formatAmount($amount);
    116         $the_string = $this->merchantCode.$this->merchantID.$order_id.$format_amt.$currency;
     116        $the_string = $this->merchantKey.$this->merchantID.$order_id.$format_amt.$currency;
    117117        //echo 'str: <b>'.$the_string.'</b>';
    118118        $the_hash = $this->iPay88_signature($the_string);
     
    187187            $amnt = str_replace(',', '', $amt_txt);
    188188            $amnt_final = str_replace('.', '', $amnt);
    189             $combined = $this->merchantCode.$this->merchantID.$payid.$refno.$amnt_final.$cur.$status;
     189            $combined = $this->merchantKey.$this->merchantID.$payid.$refno.$amnt_final.$cur.$status;
    190190            $signed = $this->iPay88_signature($combined);
    191191           
Note: See TracChangeset for help on using the changeset viewer.