UNPKG

@hyperse/paypal-node-sdk

Version:

NodeJS SDK for PayPal Checkout APIs

19 lines (18 loc) 615 B
import querystring from 'querystring'; import { HttpRequestBase } from '../core/HttpRequestBase.js'; import {} from '../types/type-order.js'; /** * Shows details for an order, by ID. * @see {@link https://developer.paypal.com/api/orders/v2/#orders_get} */ export class OrdersGetRequest extends HttpRequestBase { constructor(orderId) { super(); this.path = '/v2/checkout/orders/{order_id}?'; this.path = this.path.replace('{order_id}', querystring.escape(orderId)); this.verb = 'GET'; this.headers = { 'Content-Type': 'application/json', }; } }