|
|
@@ -326,8 +326,10 @@ class ShopController extends BaseController {
|
|
|
* @throws \Exception
|
|
|
*/
|
|
|
public function actionVerifyApproachOrder() {
|
|
|
+ LoggerTool::error('actionVerifyApproachOrder in: ');
|
|
|
if (\Yii::$app->request->isPost) {
|
|
|
$rawBody = \Yii::$app->request->getRawBody();
|
|
|
+ LoggerTool::error('actionVerifyApproachOrder in: '.$rawBody);
|
|
|
$signature = (string) \Yii::$app->request->headers->get('x-paystack-signature', '');
|
|
|
if (!PayStack::verifyWebhookSignature($rawBody, $signature, PayStack::getSecretKey())) {
|
|
|
return http_response_code(401);
|