UNPKG

@muhammedaksam/sipay-node

Version:

Node.js TypeScript SDK for Sipay payment gateway

30 lines 1.47 kB
import { SipayResource } from './base'; import { Payment2DRequest, Payment3DRequest, GetPosRequest, PosInfo, SipayApiResponse, RequestOptions, OrderStatusRequest, RefundRequest } from '../types'; export declare class Payments extends SipayResource { /** * Process a 2D payment (direct payment without 3D Secure) */ pay2D(paymentData: Omit<Payment2DRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse>; /** * Process a 3D payment (with 3D Secure authentication) * Returns HTML form that should be rendered and auto-submitted */ pay3D(paymentData: Omit<Payment3DRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse>; /** * Get POS information and installment options for a credit card */ getPos(posData: Omit<GetPosRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse<PosInfo[]>>; /** * Check the status of a payment */ checkStatus(statusData: Omit<OrderStatusRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse>; /** * Refund a payment */ refund(refundData: Omit<RefundRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse>; /** * Legacy 2D payment method (maintains compatibility) */ pay(paymentData: Omit<Payment2DRequest, 'merchant_key'>, options?: RequestOptions): Promise<SipayApiResponse>; } //# sourceMappingURL=payments.d.ts.map