Docs

GetBuyWithCryptoStatus

Get swap status for a transaction hash returned by BuyWithCrypto.

Usage

using Thirdweb.Pay;
public async void GetStatus()
{
BuyWithCryptoStatusResult status = await ThirdwebPay.GetBuyWithCryptoStatus(_txHash);
if (status.Status == SwapStatus.FAILED.ToString())
ThirdwebDebug.LogWarning($"Failed! Reason: {status.FailureMessage}");
ThirdwebDebug.Log($"Status: {JsonConvert.SerializeObject(status, Formatting.Indented)}");
}