|
|
|
@ -106,6 +106,7 @@ class WeChatPayServer |
|
|
|
|
|
|
|
$app = Factory::payment($config); |
|
|
|
$attributes = self::getAttributes($from, $order, $order_source, $auth, $notify_url); |
|
|
|
var_dump($attributes);die; |
|
|
|
$result = $app->order->unify($attributes); |
|
|
|
if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') { |
|
|
|
|
|
|
|
@ -335,7 +336,6 @@ class WeChatPayServer |
|
|
|
|
|
|
|
$app = new Application($config); |
|
|
|
$response = $app->handlePaidNotify(function ($message, $fail) { |
|
|
|
|
|
|
|
if ($message['return_code'] !== 'SUCCESS') { |
|
|
|
return $fail('通信失败'); |
|
|
|
} |
|
|
|
|