|
@@ -188,9 +188,8 @@ class PayService
|
|
switch ($this->payment) {
|
|
switch ($this->payment) {
|
|
case 'wechat':
|
|
case 'wechat':
|
|
$payload['amount'] = $payload['amount'] * 100;
|
|
$payload['amount'] = $payload['amount'] * 100;
|
|
- var_dump($this->payment);
|
|
|
|
|
|
+ var_dump($this->config);
|
|
$response = Pay::wechat($this->config)->transfer($payload);
|
|
$response = Pay::wechat($this->config)->transfer($payload);
|
|
- var_dump($response);
|
|
|
|
if ($response['return_code'] === 'SUCCESS' && $response['result_code'] === 'SUCCESS') {
|
|
if ($response['return_code'] === 'SUCCESS' && $response['result_code'] === 'SUCCESS') {
|
|
$code = 1;
|
|
$code = 1;
|
|
}
|
|
}
|