Integration Flows
Payment Flow With Onboarding (First time user)
Steps
Onboard the user —
POST /onboarding/with user details, tenancy, KYC documents, and installments (if applicable). This is typically done once per user.Create a payment session —
POST /user-login/with the user's email. Return URL contain atoken(valid 15 hours) andsession_id(valid 30 minutes).Display the payment interface — Embed or redirect to the Payr iframe using the token and session_id.
User completes payment — The user interacts with the iframe to pay their rent.
Receive webhook — Payr sends a webhook to your configured endpoint with the payment outcome.
Query session (optional) —
GET /session/{session_id}/to check session and payment details.
Payment Flow (Returning User)
Steps
Create a payment session —
POST /user-login/with the user's email. Return URL contain atoken(valid 15 hours) andsession_id(valid 30 minutes).Display the payment interface — Embed or redirect to the Payr iframe using the token and session_id.
User completes payment — The user interacts with the iframe to pay their rent.
Receive webhook — Payr sends a webhook to your configured endpoint with the payment outcome.
Query session (optional) —
GET /session/{session_id}/to check session and payment details.
Last updated

