Transaction lookup

When calling YocoSDK.getPaymentResult(), this will query a transaction using the transactionID and will return a PaymentResult with the available transaction details. This could typically be used in the event that the application crashes or is terminated during a transaction. it is 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}