UNPKG

@lexriver/yandex-pay

Version:

A TypeScript client for Yandex Pay API to integrate payment processing in your Node.js applications

17 lines (16 loc) 541 B
import { BaseService } from './BaseService.js'; /** * Service for working with operations */ export class OperationService extends BaseService { /** * Request to get details about the payment authorization, debiting, refund, or cancellation operations. * * @param externalOperationId External operation ID * @returns Operation details */ async getOperation(externalOperationId) { const response = await this.get(`/v1/operations/${externalOperationId}`); return response.operations; } }