Browse Source

fix vcode

tags/2.0.3
0nepeop1e 4 years ago
parent
commit
2babe28fdb
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/RazerPayDriver.php

+ 2
- 2
src/RazerPayDriver.php View File

75
         $bill_desc = urlencode(preg_replace('/[^A-Z0-9,\-_]/i', '_', $detail));
75
         $bill_desc = urlencode(preg_replace('/[^A-Z0-9,\-_]/i', '_', $detail));
76
         $amount = sprintf('%0.2f', $payable->getBillAmount());
76
         $amount = sprintf('%0.2f', $payable->getBillAmount());
77
         $currency = $payable->getBillCurrency();
77
         $currency = $payable->getBillCurrency();
78
-        $verify_code = md5($amount . $this->merchant_id . $payable->getBillId() . $this->verify_key);
78
+        $vcode = md5($amount . $this->merchant_id . $payable->getBillId() . $this->verify_key);
79
 
79
 
80
         $query = array_merge(
80
         $query = array_merge(
81
             compact(
81
             compact(
82
                 'amount', 'orderid', 'bill_name', 'bill_email', 'bill_mobile',
82
                 'amount', 'orderid', 'bill_name', 'bill_email', 'bill_mobile',
83
-                'bill_desc', 'country', 'verify_code', 'currency'
83
+                'bill_desc', 'country', 'vcode', 'currency'
84
             ),
84
             ),
85
             Arr::only($this->config->get('payment.gateway.razerpay.options', []), ['channel', 'returnurl', 'callbackurl']),
85
             Arr::only($this->config->get('payment.gateway.razerpay.options', []), ['channel', 'returnurl', 'callbackurl']),
86
             Arr::only($options, ['channel', 'returnurl', 'callbackurl'])
86
             Arr::only($options, ['channel', 'returnurl', 'callbackurl'])

Loading…
Cancel
Save