-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
38 lines (34 loc) · 929 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Observable } from "@nativescript/core";
export declare function setupBraintreeAppDeligate(urlScheme: any): void;
export declare class Braintree extends Observable {
constructor();
output: {
'status': string;
'msg': string;
'nonce': string;
'paymentMethodType': string;
'deviceInfo': string;
};
startPayment(token: any, options: BrainTreeOptions): void;
private callIntent(intent);
private handleResults(requestCode, resultCode, data);
}
export interface BrainTreeOptions {
/**
* Amount is ignored when using Apple Pay
*/
amount: string;
collectDeviceData?: boolean;
requestThreeDSecureVerification?: boolean;
applePayPaymentRequest?: PKPaymentRequest;
/**
* currencyCode is required for Google Pay
*/
enableGooglePay?: boolean;
currencyCode?: string;
vaultManager?: boolean;
}
export interface ApplePayLineItem {
label: string;
amount: number;
}