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.
40 lines • 1.54 kB
TypeScript
/**
* NOWPayments cryptocurrency payment gateway plugin for Vendure.
*
* This plugin integrates with NOWPayments.io to enable cryptocurrency payments
* in your Vendure store. It supports Bitcoin, Ethereum, and 100+ other cryptocurrencies.
*
* @category Plugin
*/
import { Type } from '@vendure/core';
import { PluginInitOptions } from './types';
export declare class NowpaymentsPlugin {
/** @internal */
static options: PluginInitOptions;
/**
* Initialize the NOWPayments plugin with the required configuration options.
*
* @example
* ```ts
* NowpaymentsPlugin.init({
* apiKey: process.env.NOWPAYMENTS_API_KEY || '',
* ipnSecret: process.env.NOWPAYMENTS_IPN_SECRET || '',
* host: process.env.VENDURE_HOST || 'http://localhost:3000',
* getSuccessUrl: (order, host) => `${host}/order/confirmation/${order.code}`,
* getCancelUrl: (order, host) => `${host}/checkout`,
* sandbox: process.env.NOWPAYMENTS_SANDBOX === 'true',
* useInvoices: false,
* invoicePrefix: 'VC-',
* simpleTotal: false,
* allowZeroConfirm: true,
* formSubmissionMethod: true,
* debugEmail: process.env.NOWPAYMENTS_DEBUG_EMAIL || '',
* debugPostUrl: process.env.NOWPAYMENTS_DEBUG_POST_URL || '',
* is_fixed_rate: false,
* is_fee_paid_by_user: false,
* }),
* ```
*/
static init(options: PluginInitOptions): Type<NowpaymentsPlugin>;
}
//# sourceMappingURL=nowpayments.plugin.d.ts.map