How do I get notified when a payment completes or fails?
Create a payment trigger in your project settings pointing at a path on one of your services. Forte POSTs to it on PAYMENT_COMPLETED, PAYMENT_FAILED, and PAYMENT_REFUNDED with the user ID, payment ID, and state — verify the X-Forte-Trusted: 1 header and make handling idempotent, since failed deliveries are retried up to 5 times at 60-second intervals.