littlefishpay_mypinpad_sdk 0.0.1 copy "littlefishpay_mypinpad_sdk: ^0.0.1" to clipboard
littlefishpay_mypinpad_sdk: ^0.0.1 copied to clipboard

PlatformAndroidiOS
unlisted

The littlefishpay mypinpad sdk plugin implementation.

littlefishpay_mypinpad_sdk #

This is a package that implements MyPinPad integration in our apps. Tap on Phone solutions turn NFC enabled ‘commercial off the shelf (COTS)’ devices, such as mobile phones, into contactless payment acceptance terminals. Tap on Phone solutions have the potential to grow acceptance locations globally by allowing sellers of all types to accept contactless card payments without the need of a hardware payment terminal. Mypinpad is the leader is this field, the first company globally to achieve PCI CPoC (Contactless Payments on COTS) certification with a solution that is live globally. Mypinpad continues as a leader in the field by developing a fully contained Tap on Phone SDK solution that allows licensed partners to embedded Tap on Phone technology into their payment acceptance (POS) applications.

Features #

  • ✅ Purchase
  • ✅ Refund

Requirements #

  • Have version 9.0, or greater, of the operating system installed
  • Have version 11, or greater, of Google Play Services installed
  • Are less than 2 years old (recommended)

Getting started #

In your android project's android/build.gradle:

    repositories {
         maven {
            //    [required] littlefishpay_mypinpad_sdk
            url "${project(':littlefishpay_mypinpad_sdk').projectDir}/libs"
        }
    }

In your pubspec.yaml:

    littlefishpay_mypinpad_sdk:
      git:
        url: https://github.com/nybble-technologies/littlefishpay_mypinpad_sdk.git

Usage #

To import in your dart file:

import 'package:littlefishpay_mypinpad_sdk/littlefishpay_mypinpad_sdk.dart';

In your code, to make a Purchase:

String response = await LittlefishpayMypinpadSdk.purchase(1000, primaryColorHex: "#800080", appName: "SimplyPurple"); // Method takes in TransactionAmount, PrimaryThemeColorOfApp, AppName 
Map<String, dynamic> responseData = json.decode(response); // convert String to Map

//SUCCESSFUL PAYMENT RESPONSE
print(responseData["transactionResponse"]) // RESPONSE FROM MPP TERMINAL SDK, ONLY ACCEPT TRANSACTION IF responseData["transactionResponse"] == "APPROVED"
print(responseData["message"]) // MESSAGE TO DISPLAY ON UI
print(responseData["amount"]) // TRANSACTION AMOUNT
print(responseData["cardType"]) // VISA/MASTERCARD/AMEX etc
print(responseData["serviceTransactionId"]) // TRANSACTION REFERENCE NUMER FROM MPP TERMINAL SDK, EQUIVALENT OF `providerPaymentReference` in littlefish app
print(responseData["transactionType"]) // REFUND OR PURCHASE

//UNSUCCESSFUL PAYMENT RESPONSE responseData["transactionResponse"] != "APPROVED"
print(responseData["transactionResponse"]) // RESPONSE FROM MPP TERMINAL SDK, ONLY ACCEPT TRANSACTION IF responseData["transactionResponse"] == "APPROVED"
print(responseData["message"]) // MESSAGE TO DISPLAY ON UI
print(responseData["amount"]) // TRANSACTION AMOUNT
print(responseData["transactionType"]) // REFUND OR PURCHASE

In your code, to make a Refund:

String response = await LittlefishpayMypinpadSdk.refund(1000, primaryColorHex: "#800080", appName: "littlefish"); // Method takes in TransactionAmount, PrimaryThemeColorOfApp, AppName 
Map<String, dynamic> responseData = json.decode(response); // convert String to Map

//SUCCESSFUL PAYMENT RESPONSE
print(responseData["transactionResponse"]) // RESPONSE FROM MPP TERMINAL SDK, ONLY ACCEPT TRANSACTION IF responseData["transactionResponse"] == "APPROVED"
print(responseData["message"]) // MESSAGE TO DISPLAY ON UI
print(responseData["amount"]) // TRANSACTION AMOUNT
print(responseData["cardType"]) // VISA/MASTERCARD/AMEX etc
print(responseData["serviceTransactionId"]) // TRANSACTION REFERENCE NUMER FROM MPP TERMINAL SDK, EQUIVALENT OF `providerPaymentReference` in littlefish app
print(responseData["transactionType"]) // REFUND OR PURCHASE

//UNSUCCESSFUL PAYMENT RESPONSE responseData["transactionResponse"] != "APPROVED"
print(responseData["transactionResponse"]) // RESPONSE FROM MPP TERMINAL SDK, ONLY ACCEPT TRANSACTION IF responseData["transactionResponse"] == "APPROVED"
print(responseData["message"]) // MESSAGE TO DISPLAY ON UI
print(responseData["amount"]) // TRANSACTION AMOUNT
print(responseData["transactionType"]) // REFUND OR PURCHASE
0
likes
110
points
8
downloads

Documentation

API reference

Publisher

verified publisherlittlefishapp.com

Weekly Downloads

The littlefishpay mypinpad sdk plugin implementation.

Homepage

License

unknown (license)

Dependencies

dartz, flutter, littlefish_interfaces

More

Packages that depend on littlefishpay_mypinpad_sdk

Packages that implement littlefishpay_mypinpad_sdk