Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export type Languages = {
EN: 'en';
AR: 'ar';
};

export type PaymentTypes = {
ALL: 'ALL';
CARD: 'CARD';
WEB: 'WEB';
APPLE_PAY: 'APPLE_PAY';
};

export type AllowedCadTypes = {
CREDIT: 'CREDIT';
DEBIT: 'DEBIT';
ALL: 'ALL';
};

export type UiDisplayModes = {
FOLLOW_DEVICE: 'FOLLOW_DEVICE';
LIGHT: 'LIGHT';
DARK: 'DARK';
};

export type TrxMode = {
PURCHASE: 'PURCHASE';
AUTHORIZE_CAPTURE: 'AUTHORIZE_CAPTURE';
SAVE_CARD: 'SAVE_CARD';
TOKENIZE_CARD: 'TOKENIZE_CARD';
};

export type SDKMode = {
Sandbox: 'Sandbox';
Production: 'Production';
};

export type Listener = {
paymentInit: 'paymentInit';
};

export type SDKAppearanceMode = {
Fullscreen: 1;
Windowed: 0;
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.52",
"description": "React-Native plugin compatible version of goSellSDK library for both Android and iOS that fully covers payment/authorization/card saving/card tokenization process inside your Android application. Original SDKS",
"main": "index.js",
"types": "index.d.ts",
"author": "Tap Payments",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down