Skip to main content
The Paybyrd Payment SDK allows Android applications to perform payment operations. The Partner App communicates with the Paybyrd Payment App via Android Intents — both apps must be installed on the same POS device. The architecture uses the startActivityForResult model. The SDK is distributed as a .aar Android Library file, written in Kotlin. SDK version: 0.0.10

Supported operations

  • Payment
  • Pre-authorisation
  • Refund (full and partial)

Creating a payment

Provide the amount, currency, and type CHARGE:
Handling the response:

Pre-authorisation

To create a pre-authorisation, use TransactionTypeEnum.PREAUTHORIZE. This reserves the funds in the card’s credit limit.
To capture a pre-authorisation, use TransactionTypeEnum.CHARGE with the original pre-authorisation identifier. You can capture the full amount or any amount less than the original:
Handling the response:

Refund

Provide the amount, currency, type REFUND, and the identifier of the original payment. For a partial refund, provide an amount less than the original.
Handling the response:

Querying a transaction

Use the query operation to check transaction status at any point in your application lifecycle. Recommended when the response returns UNKNOWN status or when no response is received. PaybyrdPaymentSDK.queryTransaction is synchronous.

Tips

Save the transaction identifier after a successful payment — you will need it for future refunds.
Save the transaction reference created by PaybyrdPaymentSDK.createTransactionData so you can query the transaction result if needed. Query the transaction status whenever UNKNOWN is returned.
Store transaction details before initiating every transaction so you can query the data if the response is not received.

Initialisation and provisioning

Your application can provision the Paybyrd Payment App using a service credential and a merchant identifier.
The Partner App and Paybyrd Payment App must be installed and running on the same POS device.

Native SDK version history

Full documentation

For the full Kotlin SDK reference, visit the SDK documentation.

JavaScript SDK

A JavaScript SDK is available for progressive web apps running inside an Android WebView. It matches the functionality of native SDK version 0.0.10.

Version history

Contact us to get access to all resources including a complete demonstration project.