Pairing API

When calling YocoSDK.pairTerminal(), this will start the pairing/connecting to terminal/card machine flow. This will allow being able to connect/pair to a terminal without having to do this in the YocoSDK.charge() flow.


context: Context - The calling Activity/Fragment initiating the payment


The context that is passed as a parameter MUST be calling activity/fragment's context and NOT the application context.


To initiate the pairing/connecting to a terminal/card machine you will just need to call the SDK pairTerminal() method.

import com.yoco.payment_ui_sdk.YocoSDK
YocoSDK.pairTerminal(context = context)

This is the same initial flow as the `Charge API** before it initiates a payment.