ForageSDK

class ForageSDK : ForageSDKInterface

The entry point to the Forage SDK.

A ForageSDK instance interacts with the Forage API to process online-only payments.

You need an instance of the ForageSDK to perform operations like:

// Example: Create a ForageSDK instance
val forage = ForageSDK()

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun capturePayment(params: CapturePaymentParams): ForageApiResponse<String>

Immediately captures a payment via a ForagePINEditText Element.

Link copied to clipboard
open suspend override fun checkBalance(params: CheckBalanceParams): ForageApiResponse<String>

Checks the balance of a previously created PaymentMethod via a ForagePINEditText Element.

Link copied to clipboard

Submits a card PIN via a ForagePINEditText Element and defers payment capture to the server.

Link copied to clipboard
open suspend override fun tokenizeEBTCard(params: TokenizeEBTCardParams): ForageApiResponse<String>

Tokenizes an EBT Card via a ForagePANEdit Text Element.