node-beamcheckout
Version:
Package for Beam Checkout
11 lines (10 loc) • 485 B
TypeScript
import { CreatePaymentArgs, CreatePaymentResponse, DisablePaymentResponse, GetPaymentResponse } from "./types";
export declare class BeamCheckout {
constructor(merchantId: string, apiKey: string);
private merchantId;
private apiKey;
private getHeaders;
createPayment(args: CreatePaymentArgs): Promise<CreatePaymentResponse>;
getPayment(purchaseId: string): Promise<GetPaymentResponse>;
disablePayment(purchaseId: string): Promise<DisablePaymentResponse>;
}