UNPKG

vendure-plugin-nowpayments

Version:

A cryptocurrency payment gateway plugin for Vendure that integrates with NOWPayments.io, enabling your store to accept payments in Bitcoin, Ethereum, and 100+ other cryptocurrencies.

29 lines 1.23 kB
import { RequestContext, Order, OrderService, PaymentService, TransactionalConnection } from '@vendure/core'; import { PluginInitOptions, NOWPaymentsIPNData } from './types'; export declare class NOWPaymentsService { private orderService; private paymentService; private connection; private options; constructor(orderService: OrderService, paymentService: PaymentService, connection: TransactionalConnection, options: PluginInitOptions); get useInvoices(): boolean; get apiKey(): string; get ipnSecret(): string; get invoicePrefix(): string; get simpleTotal(): boolean; get host(): string; get sandbox(): boolean; get isFixedRate(): boolean; get isFeePaidByUser(): boolean; generatePaymentUrl(ctx: RequestContext, order: Order): Promise<string>; generateInvoiceUrl(ctx: RequestContext, order: Order): Promise<string>; private getPaymentData; private getInvoiceData; private getIpnUrl; private getSuccessUrl; private getCancelUrl; processIpn(ctx: RequestContext, ipnData: NOWPaymentsIPNData, signature: string): Promise<boolean>; private verifySignature; private processPaymentStatus; } //# sourceMappingURL=nowpayments.service.d.ts.map