Skip to content

Commit

Permalink
Webhook params can be received by both GET and POST methods
Browse files Browse the repository at this point in the history
  • Loading branch information
boboldehampsink committed Jan 30, 2024
1 parent f19dc84 commit 8d2a02e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.1.5 - 2024-01-30

### Changed
- Webhook params can be received by both `GET` and `POST` methods

## 1.1.4 - 2023-10-24

### Changed
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "robuust/craft-commerce-pay",
"description": "PAY integration for Craft Commerce 4.0+",
"version": "1.1.4",
"version": "1.1.5",
"type": "craft-plugin",
"keywords": [
"pay",
Expand Down Expand Up @@ -54,7 +54,8 @@
"config": {
"allow-plugins": {
"yiisoft/yii2-composer": true,
"craftcms/plugin-installer": true
"craftcms/plugin-installer": true,
"php-http/discovery": true
},
"platform": {
"php": "8.0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/gateways/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function processWebHook(): Response
return $response;
}

$id = Craft::$app->getRequest()->getBodyParam('order_id');
$id = Craft::$app->getRequest()->getParam('order_id');
$gateway = $this->createGateway();
/** @var FetchTransactionRequest $request */
$request = $gateway->fetchTransaction(['transactionReference' => $id]);
Expand Down

0 comments on commit 8d2a02e

Please sign in to comment.