CreateWebhook.php
2 years ago
DeleteWebhook.php
2 years ago
GenerateClientToken.php
2 years ago
GetAccessToken.php
2 years ago
UpdateWebhook.php
2 years ago
VerifyWebhookSignature.php
3 years ago
DeleteWebhook.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\PaymentGateways\PayPalCommerce\PayPalCheckoutSdk\Requests; |
| 4 | |
| 5 | use PayPalHttp\HttpRequest; |
| 6 | |
| 7 | class DeleteWebhook extends HttpRequest |
| 8 | { |
| 9 | /** |
| 10 | * @since 2.32.0 |
| 11 | * |
| 12 | * @param string $webhookId Webhook ID. |
| 13 | */ |
| 14 | public function __construct(string $webhookId) |
| 15 | { |
| 16 | parent::__construct("/v1/notifications/webhooks/$webhookId", 'DELETE'); |
| 17 | |
| 18 | $this->headers['Content-Type'] = 'application/json'; |
| 19 | } |
| 20 | } |
| 21 |