E-commerce
Online shops with their own cart.
Create your order at checkout, then POST /v1/payments with method: link and your return_url, using your order number as the Idempotency-Key. Send the customer to the hosted page. It shows only live methods and offers saved ones to a returning customer.
Fulfil on payment.captured. Refund a return with POST /v1/payments/{id}/refunds. If a customer's payment fails, POST /v1/payments/{id}/retry keeps it one payment, so it cannot be charged twice.
With two or more gateways, send cards by success rate and UPI by cost: see routing.