nativescript-razorpay
Version:
A {N} plugin that wraps around native iOS and Android plugins
23 lines (22 loc) • 829 B
TypeScript
import { CheckoutCommon } from './razorpay.common';
export interface RazorpayPaymentCompletionProtocol {
}
export declare class RazorpayPaymentCompletionDelegate extends NSObject implements RazorpayPaymentCompletionProtocol {
static ObjCProtocols: any[];
private _plugin;
onPaymentSuccess(payment_id: string): void;
onPaymentErrorDescription(code: number, response: any): void;
initWith(p: RazorpayCheckout): RazorpayPaymentCompletionDelegate;
}
export declare class RazorpayCheckout extends CheckoutCommon {
private _resolve;
private _reject;
private _razorPay;
private _delegate;
constructor(razorPayKey: string);
private readonly currentPage;
preload(): void;
done(paymentId: any): void;
error(code: any, response: any): void;
open(options: any): Promise<string>;
}