李帅

1.使用谷歌服务账号进行验证

......@@ -188,7 +188,7 @@ class GooglePayment implements PaymentInterface
Log::error("查无此订单");
return false;
}
switch ($data['notificationType']){
switch ($data['subscriptionNotification']['notificationType']){
case self::SUBSCRIPTION_PURCHASED:
if ($resp->getPaymentState() == 1) $order->status = Order::DONE;
/** 修改订单状态*/
......@@ -267,7 +267,7 @@ class GooglePayment implements PaymentInterface
return false;
}
// ...
switch ($data['notificationType']){
switch ($data['subscriptionNotification']['notificationType']){
case self::ONE_TIME_PRODUCT_PURCHASED :
case self::ONE_TIME_PRODUCT_CANCELED :
default:
......