Pinelab.droid 1.1.0

dotnet add package Pinelab.droid --version 1.1.0                
NuGet\Install-Package Pinelab.droid -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pinelab.droid" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pinelab.droid --version 1.1.0                
#r "nuget: Pinelab.droid, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pinelab.droid as a Cake Addin
#addin nuget:?package=Pinelab.droid&version=1.1.0

// Install Pinelab.droid as a Cake Tool
#tool nuget:?package=Pinelab.droid&version=1.1.0                

Introduction

The PinelabsLib is a .NET library designed for Pinelabs' On-Device Integration payment system. This library provides a seamless integration for Android apps developed with .NET 8.

Key Features

  • Easy Integration: Simplify payment integration in .NET Android apps with minimal code.
  • Native Android Support: Leverage Pinelabs' native Android library for robust payment functionality.
  • On-Device Payment: Enable secure on-device payment transactions with Pinelabs' technology.
  • Customization: Customize payment flows to suit your app's design and user experience.

Installation

Use the following command to install the PinelabsLib library in your project:

Install-Package [PinelabsLibPackageName]


   ```xml
<ItemGroup>
    <PackageReference Include="PinelabsLib" Version="1.1.0" />
</ItemGroup>

This command install PinelabsLib with your project.

Usage

Import the PinelabsLib namespace:

using Com.Pos.Poslib.Enums;
using Com.Pos.Poslib.Constants;
using Com.Pos.Poslib.Model;
using Com.Pos.Poslib.Poslibmanager;
using PineLabs;

Initialize the Pinelabs payment service:


// Initialize the PinelabsLib library in your Android application
PinelabsLib.POSInit(ApplicationContext);

// Create a configuration data object for setting up PinelabsLib
ConfigData configData = new ConfigData
{
    // Set configuration options as needed
    // For example:
    TerminalId = "12345",
    MerchantId = "67890",
    // ... other configuration options
};

// Set the configuration for PinelabsLib
PinelabsLib.SetConfig(configData, ApplicationContext);

// Perform a transaction using PinelabsLib
PinelabsLib.DoTransaction(
    ApplicationContext,
    "SampleTransaction",
    123,
    new CustomTransactionListener() // Provide your implementation of ITransactionListener
);

//OR you can use pinelabs own classes

using Com.Pos.Poslib.Poslibmanager.PosLibManager;

// Initialize the PinelabsLib library in your Android application
PosLibManager.Instance?.PosLibInitialize(ApplicationContext);

// Create a configuration data object for setting up PinelabsLib
ConfigData configData = new ConfigData
{
    // Set configuration options as needed
    // For example:
    TerminalId = "12345",
    MerchantId = "67890",
    // ... other configuration options
};

// Set the configuration for PinelabsLib
PosLibManager.Instance?.SetConfiguration(configData, ApplicationContext);

// Perform a transaction using PinelabsLib
PosLibManager.Instance?.DoTransaction(
    ApplicationContext,
    "SampleTransaction",
    123,
    new CustomTransactionListener() // Provide your implementation of ITransactionListener
);
Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-android34.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 126 2/23/2024

Seamless integration with Pinelabs' On-Device Payment System for Android applications.