Skip to content

Commit

Permalink
Release 2.0.38
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraswallee committed Nov 30, 2023
1 parent 6f68f6f commit c5910b2
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ This repository contains the plentymarkets extension that enables to process pay

## Documentation

* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/plentymarkets/2.0.37/docs/en/documentation.html)
* [Documentation](https://plugin-documentation.wallee.com/wallee-payment/plentymarkets/2.0.38/docs/en/documentation.html)

## License

Please see the [license file](https://github.com/wallee-payment/plentymarkets/blob/2.0.37/LICENSE) for more information.
Please see the [license file](https://github.com/wallee-payment/plentymarkets/blob/2.0.38/LICENSE) for more information.
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/plentymarkets/releases/tag/2.0.37/">
<a href="https://github.com/wallee-payment/plentymarkets/releases/tag/2.0.38/">
Source
</a>
</li>
Expand Down
7 changes: 7 additions & 0 deletions meta/documents/changelog_de.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release Notes for wallee

## v2.0.38 (2023-11-28)

### Fixed
- Verschieben Sie die Webhook-Erstellung auf die Plugin-Bereitstellung, um Aufrufe zu minimieren

# Release Notes for wallee

## v2.0.37 (2023-10-24)

### Fixed
Expand Down
5 changes: 5 additions & 0 deletions meta/documents/changelog_en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for wallee

## v2.0.38 (2023-11-28)

### Fixed
- Defer webhook creation to plugin deployment to minimize calls

## v2.0.37 (2023-10-24)

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"namespace": "Wallee",
"type": "payment",
"version": "2.0.37",
"version": "2.0.38",
"license": " Apache License Version 2",
"isClosedSource": false,
"pluginIcon": "icon_plugin_md.png",
Expand Down Expand Up @@ -44,6 +44,7 @@
},
"runOnBuild": [
"Wallee\\Migrations\\CreatePaymentMethods",
"Wallee\\Migrations\\CreateWebhooks",
"Wallee\\Migrations\\CreateWebhookTable",
"Wallee\\Migrations\\UpdateWebhookSpaceId"
],
Expand Down
33 changes: 33 additions & 0 deletions src/Migrations/CreateWebhooks.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
namespace Wallee\Migrations;

use Plenty\Modules\Payment\Method\Contracts\PaymentMethodRepositoryContract;
use Wallee\Services\PaymentService;

class CreateWebhooks
{
/**
*
* @var PaymentService
*/
private $paymentService;

/**
* Constructor.
*
* @param PaymentService $paymentService
*/
public function __construct(
PaymentService $paymentService
) {
$this->paymentService = $paymentService;
}

/**
* Creates the payment methods for the whitelabel plugin.
*/
public function run()
{
$this->paymentService->createWebhook();
}
}
1 change: 0 additions & 1 deletion src/Providers/WalleeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function boot(
], 'Wallee\Procedures\RefundEventProcedure@run');

$walleeServiceProviderHelper->addExecutePaymentContentEventListener();
$paymentService->createWebhook();

$cronContainer->add(CronContainer::EVERY_FIFTEEN_MINUTES, WebhookCronHandler::class);
}
Expand Down

0 comments on commit c5910b2

Please sign in to comment.