Code Monkey home page Code Monkey logo

android-payworks-mobile-sdk's Introduction

Payworks Mobile Payment SDK for Android

This Android App is a test implementation of the Payworks Mobile Payment SDK for Android

Manual

The following manual has been used in order to implement the Payworks mPOS-SDK and the transaction testcode: https://payworks.mpymnt.com/cp_int_pos_custom_overview/cp_int_pos_custom_installation.html

Fixes

Please note these fixes compared to the manual in order for the Mobile Payment SDK for Android to work:

  • The Payworks URL with the Maven-Repository needs to specify the https rather than the http protocol.
  • The Payworks URL with the Maven-Repository needs to be specified inside settings.gradle, and not inside build.gradle as described in the Payworks manual.
dependencyResolutionManagement {
  ..
  repositories {
    ..
    maven {
      url 'https://releases.payworks.io/artifactory/mpos/'
..
  • Downgrade the Dependency for the Payworks Mobile SDK to 2.57. Higher versions yield a Kotlin runtime error in transaction() issue. (NoSuchMethodException)
  • Fix the Version of the Kotlin Gradle Plugin if a Kotlin transpilation problem occurs. (working with 1.5.30)
  • MOCKED-Mode must be set in the TransactionProvider and in the Accessory
      // For starting transaction in mocked mode use fallowing provider:
      val transactionProvider = Mpos.createTransactionProvider(
          this,
          ProviderMode.MOCK,
          "cbf4d153-e78a-4937-8ece-6b1ec948a2f9",
          "ZCMNdotEb3dLkRWabOxUsqe20hDq31ml"
      )
    
      /* When using the Bluetooth Miura, use the following parameters: */
      val accessoryParameters = AccessoryParameters.Builder(AccessoryFamily.MOCK)
          .mocked()
          .build()

Backlog

  • TODO move test project to GitLab

TDD Approach

  • TODO Move assignment of Button callback listeners from FirstFragment to MainActivity
  • TODO extract transaction-handling to Service

mPOS PayButton SDK

Nice to Haves

  • TODO Colored line output in log console
  • TODO Different Layout for Landscape mode?
  • TODO IP/Port as input field?
  • TODO Introduce Coding Style Linter (+GitHub/GitLab CI/CD)?

android-payworks-mobile-sdk's People

Contributors

pajlow avatar logarythms avatar christopherstock avatar

Watchers

 avatar  avatar

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.