Appearance
Summary
Display-ready result of the last completed Cash App onramp.
When to use
On the success screen after cashApp:orderCompleted, or when session transaction data already reflects a completed Cash App deposit.
Methods
| Method | Returns | Purpose |
|---|---|---|
getCompletedTransactionSummary() | CashAppCompletedTransactionSummary | null | Send / receive amounts, fees, destination, tx hash |
Always two legs: fiat in (send) and crypto out (receive). May be null after reload / restartSession() even if payment completed on the server.
Example
ts
const summary = client.cashApp.getCompletedTransactionSummary();
if (summary) {
console.log(summary.provider);
console.log(summary.send.amount, summary.send.currency);
console.log(summary.receive.amount, summary.receive.currency);
console.log(summary.receive.network);
console.log(summary.fees);
console.log(summary.from, summary.to);
console.log(summary.transaction?.hash, summary.sessionId);
}
await client.restartSession(); // required before another paymentOr react to completion:
ts
client.cashApp.onOrderCompleted(() => {
const summary = client.cashApp.getCompletedTransactionSummary();
// show success UI
});Errors
This getter does not throw. If it returns null, there is no completed summary available yet.
The next createOrder can hit SESSION_NOT_ACTIVE if you did not call restartSession() — see Errors.