Coder Social home page Coder Social logo

orestis-z / capacitor-zettle Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 139 KB

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.

Ruby 4.22% Java 5.40% Kotlin 52.39% CSS 0.19% HTML 4.99% JavaScript 19.31% TypeScript 4.03% Swift 6.50% Objective-C 2.97%

capacitor-zettle's Introduction

capacitor-zettle

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.

Install

npm install capacitor-zettle
npx cap sync

Android

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)
            }
        }
    }
}

API

initialize(...)

initialize(options: { devMode: boolean; }) => Promise<any>
Param Type
options { devMode: boolean; }

Returns: Promise<any>


initiatePayment(...)

initiatePayment(options: { amount: number; currency: string; }) => Promise<any>
Param Type
options { amount: number; currency: string; }

Returns: Promise<any>


initiateRefund(...)

initiateRefund(options: { amount: number; taxAmount: number; receiptNumber: string; }) => Promise<any>
Param Type
options { amount: number; taxAmount: number; receiptNumber: string; }

Returns: Promise<any>


showCardReaderSettings()

showCardReaderSettings() => Promise<any>

Returns: Promise<any>


capacitor-zettle's People

Contributors

orestis-z avatar

Stargazers

Bart avatar

Watchers

 avatar

capacitor-zettle's Issues

Package not on NPM

Hello,

For a proof of concept using capacitor I am producing, I came by your repository. I wanted to add it to my project but your package is not on npm (yet). Could you have a look into this?

Kind regards,
Bart

P.S. If this project can help me achieve the goals I am aiming for, I am more than willing to help in developing this plugin!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.