CreateWebhook.php
1 year ago
DeleteWebhook.php
1 year ago
GenerateClientToken.php
1 year ago
GetAccessToken.php
1 year ago
UpdateWebhook.php
1 year ago
VerifyWebhookSignature.php
1 year ago
DeleteWebhook.php
23 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 4.1.0 Add PayPal-Partner-Attribution-Id header |
| 11 | * @since 2.32.0 |
| 12 | * |
| 13 | * @param string $webhookId Webhook ID. |
| 14 | */ |
| 15 | public function __construct(string $webhookId) |
| 16 | { |
| 17 | parent::__construct("/v1/notifications/webhooks/$webhookId", 'DELETE'); |
| 18 | |
| 19 | $this->headers['Content-Type'] = 'application/json'; |
| 20 | $this->headers["PayPal-Partner-Attribution-Id"] = give('PAYPAL_COMMERCE_ATTRIBUTION_ID'); |
| 21 | } |
| 22 | } |
| 23 |