Integrator Transactions Lookup

When creating a charge with YocoSDK.charge(), 3rd party integrators can pass an optional receiptNumber in PaymentParameters. The receiptNumber should be unique and is up to integrators to store. The receiptNumber allows for lookup if a transaction result is lost, due to e.g. application exiting prematurely.

Parameters

receiptNumber: String - A unique string set when creating a charge completionHandler: @escaping ([PaymentResult]?, Swift.Error?) -> Void - lookup completion handler

Usage

import YocoSDK
Yoco.getIntegratorTransactions(receiptNumber: receiptNumber) { (result, error) in
// result - collection of PaymentResult, null if no transactions found or lookup fails
// error - error description string
}