@rokmohar/medusa-payment-manual
Version:
Manual payment plugin for Medusa 2
22 lines • 1.3 kB
TypeScript
import { AuthorizePaymentOutput, CancelPaymentOutput, CapturePaymentOutput, DeletePaymentOutput, GetPaymentStatusOutput, InitiatePaymentOutput, MedusaContainer, RefundPaymentOutput, RetrievePaymentOutput, UpdatePaymentOutput, WebhookActionResult } from '@medusajs/types';
import { AbstractPaymentProvider } from '@medusajs/utils';
type ManualOptions = Record<string, any>;
export declare class ManualProviderService extends AbstractPaymentProvider {
static identifier: string;
protected options: ManualOptions;
constructor(container: MedusaContainer, options: ManualOptions);
getStatus(): Promise<string>;
getPaymentData(): Promise<Record<string, unknown>>;
initiatePayment(): Promise<InitiatePaymentOutput>;
getPaymentStatus(): Promise<GetPaymentStatusOutput>;
retrievePayment(): Promise<RetrievePaymentOutput>;
authorizePayment(): Promise<AuthorizePaymentOutput>;
updatePayment(): Promise<UpdatePaymentOutput>;
deletePayment(): Promise<DeletePaymentOutput>;
capturePayment(): Promise<CapturePaymentOutput>;
refundPayment(): Promise<RefundPaymentOutput>;
cancelPayment(): Promise<CancelPaymentOutput>;
getWebhookActionAndData(): Promise<WebhookActionResult>;
}
export default ManualProviderService;
//# sourceMappingURL=manual-provider.d.ts.map