@hyperse/paypal-node-sdk
Version:
NodeJS SDK for PayPal Checkout APIs
19 lines (18 loc) • 688 B
JavaScript
import querystring from 'querystring';
import { HttpRequestBase } from '../core/HttpRequestBase.js';
import {} from '../types/type-payment.js';
/**
* Shows details for an authorized payment, by ID.
* @see {@link https://developer.paypal.com/api/payments/v2/#authorizations_get}
*/
export class AuthorizationsGetRequest extends HttpRequestBase {
constructor(authorizationId) {
super();
this.path = '/v2/payments/authorizations/{authorization_id}?';
this.path = this.path.replace('{authorization_id}', querystring.escape(authorizationId));
this.verb = 'GET';
this.headers = {
'Content-Type': 'application/json',
};
}
}