@hyperse/paypal-node-sdk
Version:
NodeJS SDK for PayPal Checkout APIs
21 lines (20 loc) • 603 B
JavaScript
import { HttpRequestBase } from '../core/HttpRequestBase.js';
import {} from '../types/type-webhook.js';
/**
* Subscribes your webhook listener to events.
* @see {@link https://developer.paypal.com/docs/api/webhooks/v1/#webhooks_post}
*/
export class WebhookCreateRequest extends HttpRequestBase {
constructor() {
super();
this.verb = 'POST';
this.path = '/v1/notifications/webhooks';
this.headers = {
'Content-Type': 'application/json',
};
}
requestBody(createRequest) {
this.body = createRequest;
return this;
}
}