1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
class PayVision extends PayEase {
public $v_mid; protected $key;
protected $user_payment_endpoint = array( "CREDITCARD" => "https://pay.yizhifubj.com/customer/i18n/i18n_raw_order3_0.jsp", );
protected $ref_version = "1.1";
// public function __construct($v_mid="7007", $key="test"){ public function __construct($v_mid = null, $key = null) { $this->v_mid = MasterSetting::get('PAYEASE_PV_MID'); $this->key = MasterSetting::get('PAYEASE_PV_KEY'); // $this->v_mid = MasterSetting::get('PAYEASE_MID');
$this->mer_payment_submit_utf8_endpoint = $this->mer_payment_submit_utf8_production_endpoint; $this->mer_payment_status_utf8_endpoint = $this->mer_payment_status_utf8_production_endpoint;
$this->payment_currency = $_SESSION["currency_code"] ?: "USD"; }
public function sandbox() { $this->v_mid = "888"; $this->key = "test";
$this->mer_payment_submit_utf8_endpoint = $this->mer_payment_submit_utf8_sandbox_endpoint; $this->mer_payment_status_utf8_endpoint = $this->mer_payment_status_utf8_sandbox_endpoint; return $this; }
// public function setCurrency($currency_code){ // $this->v_moneytype = self::currencyCodeToMoneyType($currency_code); // }
protected function generateCustomizedData($args, $payment_type) { $data = []; switch (strtoupper($payment_type)) { case 'CREDITCARD':
break;
default: throw new Exception("Error Processing Payment Type: {$payment_type}", 1); } return $data; } }
|