Transaction lookup

When calling YocoSDK.getPaymentResult(), this queries a transaction using the transactionID and returns a PaymentResult with the available transaction details. This could typically be used if the application crashes or is terminated during a transaction. It’s useful to look up the state of a previous transaction so you can determine if it was a success or failure.

Usage

Lookup transaction
1import YocoSDK
2
3// Async call
4YocoSDK.getPaymentResult(transactionID: transactionID) { paymentResult, error in
5 // Use result of transaction if available
6}