> ## Documentation Index
> Fetch the complete documentation index at: https://stellaraddresskit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Flutter: Incoming Payments

> Reacting to payments in your wallet app.

When your app detects an incoming payment (e.g., via Horizon stream), use the kit to identify the recipient ID.

## Implementation

```dart theme={null}
void onPaymentReceived(PaymentResponse payment) {
  final result = extractRouting(RoutingInput(
    address: payment.to,
    memoType: payment.memoType,
    memoValue: payment.memo,
  ));

  if (result.routingId == currentUser.id.toString()) {
    // Show notification: "Payment received!"
  }
}
```
