The "ZettlePayment" plugin integrates Zettle payments into Capacitor apps, enabling card transactions with minimal setup. It offers a straightforward JavaScript API for easy payment processing and management.
npm install capacitor-zettle
npx cap sync
buildscript {
repositories {
google()
mavenCentral()
// ADD THIS
maven {
url = uri("https://maven.pkg.github.com/iZettle/sdk-android")
credentials(HttpHeaderCredentials) {
name "Authorization"
value "Bearer $project.githubToken"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
// ...
}
allprojects {
repositories {
google()
mavenCentral()
// ADD THIS
maven {
url = uri("https://maven.pkg.github.com/iZettle/sdk-android")
credentials(HttpHeaderCredentials) {
name "Authorization"
value "Bearer $project.githubToken"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
initialize(options: { devMode: boolean; }) => Promise<any>
Param | Type |
---|---|
options |
{ devMode: boolean; } |
Returns: Promise<any>
initiatePayment(options: { amount: number; currency: string; }) => Promise<any>
Param | Type |
---|---|
options |
{ amount: number; currency: string; } |
Returns: Promise<any>
initiateRefund(options: { amount: number; taxAmount: number; receiptNumber: string; }) => Promise<any>
Param | Type |
---|---|
options |
{ amount: number; taxAmount: number; receiptNumber: string; } |
Returns: Promise<any>
showCardReaderSettings() => Promise<any>
Returns: Promise<any>