Skip to content

w3cloud/ionic-braintree-wallet

Repository files navigation

ionic-braintree-wallet

Ionic Capacitor Plugin to show native mobile wallet dialogs like ApplePay, Google pay, then get the nonce using the Braintree native api.

Building

  • Clone this project into your local folder.
  • From command prompt go to the project folder.
  • Build the project: npm run build

Install

Go to your project that uses this package.

npm install ionic-braintree-wallet
npx cap sync

API

canMakePayments(...)

canMakePayments(options: { btAuthorization: string; }) => Promise<{ result: boolean; }>
Param Type
options { btAuthorization: string; }

Returns: Promise<{ result: boolean; }>


mobilePay(...)

mobilePay(options: MobilePayOptions) => Promise<MobilePayResult>
Param Type
options MobilePayOptions

Returns: Promise<MobilePayResult>


Interfaces

MobilePayResult

Prop Type
nonce string
contactFirstName string
contactLastName string
contactPhone string
contactEmail string

MobilePayOptions

Prop Type
btAuthorization string
merchantId string
paymentSummaryItems PaymentSummaryItem[]

PaymentSummaryItem

Prop Type
label string
amount number

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors