@hyperse/paypal-node-sdk
Version:
NodeJS SDK for PayPal Checkout APIs
20 lines (19 loc) • 659 B
JavaScript
import querystring from 'querystring';
import { HttpRequestBase } from '../core/HttpRequestBase.js';
import {} from '../types/type-payment.js';
/**
* Captures Get
* Shows details for a captured payment, by ID.
* @see {@link https://developer.paypal.com/api/payments/v2/#captures_get}
*/
export class CapturesGetRequest extends HttpRequestBase {
constructor(captureId) {
super();
this.path = '/v2/payments/captures/{capture_id}?';
this.path = this.path.replace('{capture_id}', querystring.escape(captureId));
this.verb = 'GET';
this.headers = {
'Content-Type': 'application/json',
};
}
}