@nativescript/square-in-app-payments
Version:
Square In-App Payments SDK for NativeScript
41 lines (40 loc) • 1.19 kB
TypeScript
import { Observable } from '@nativescript/core';
import { CardEntryOptions } from '.';
export declare enum CardBrand {
other = "other",
visa = "visa",
mastercard = "mastercard",
americanExpress = "american_express",
discover = "discover",
discoverDiners = "discover_diners",
jcb = "jcb",
chinaUnionPay = "china_union_pay",
squareGiftCard = "square_gift_card"
}
export declare enum CardType {
credit = "credit",
debit = "debit",
unknown = "unknown"
}
export declare enum CardPrepaidType {
unknown = "unknown",
notPrepaid = "not_prepaid",
prepaid = "prepaid"
}
export declare class SquareInAppPaymentsCommon extends Observable {
/**
* The Square application ID for your app.
* This is required to use the Square In-App Payments SDK.
*
* Set this value before calling any other methods in the SDK.
*/
get squareApplicationID(): string | null;
set squareApplicationID(appId: string);
startCardEntry(options?: CardEntryOptions): void;
dismiss(): void;
/**
* iOS only
*/
protected createTheme(config?: Partial<SQIPTheme>): void;
protected getRootViewController(): any;
}