capacitor-plugin-sumup
v0.0.4
Published
Capacitor Plugin for SumUp
Downloads
2
Maintainers
Readme
capacitor-plugin-sumup
Capacitor Plugin for SumUp
Install
npm install capacitor-plugin-sumup
npx cap sync
API
login(...)
login(options: LoginOptions) => Promise<SumUpResponse>
| Param | Type |
| ------------- | ----------------------------------------------------- |
| options
| LoginOptions |
Returns: Promise<SumUpResponse>
checkout(...)
checkout(options: CheckoutOptions) => Promise<SumUpResponse>
| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options
| CheckoutOptions |
Returns: Promise<SumUpResponse>
Interfaces
SumUpResponse
| Prop | Type |
| ------------- | ------------------- |
| code
| number |
| message
| string |
LoginOptions
| Prop | Type |
| ------------------ | ------------------- |
| affiliateKey
| string |
| accessToken
| string |
CheckoutOptions
| Prop | Type |
| -------------------------- | --------------------------------------- |
| total
| number |
| currency
| string |
| title
| string |
| receiptEmail
| string |
| receiptSMS
| string |
| additionalInfo
| { [key: string]: string; } |
| foreignTransactionId
| string |
| skipSuccessScreen
| boolean |