-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f68f6f
commit c5910b2
Showing
7 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters