nativescript-payments
Version:
A NativeScript plugin for in-app payments
20 lines (19 loc) • 589 B
TypeScript
export declare type Purchase = com.android.billingclient.api.Purchase;
export declare abstract class BaseOrder {
nativeValue: Purchase | SKPaymentTransaction;
readonly abstract debug: string | null;
state: OrderState;
itemId: string;
orderId: string;
orderDate: Date;
receiptToken: string;
userData: string;
restored: boolean;
dataSignature: string;
constructor(nativeValue: Purchase | SKPaymentTransaction, restored?: boolean);
}
export declare enum OrderState {
INVALID = "INVALID",
PROVISIONAL = "PROVISIONAL",
VALID = "VALID",
}