Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✖ |
| Instant Capture | ✔ |
| Cancel / Void | ✖ |
| Refund / Reverse | ✖ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first Kiosk payment through Paymob:- Set up a Paymob integration in your workspace. Follow the Paymob integration setup guide if you don’t have one yet.
- In your Paymob dashboard, create a payment integration of type Kiosk, and note its integration ID.
- In the Payrails Portal, go to Settings → Integrations, open your Paymob integration, and enter the Kiosk Integration ID and your Paymob Public Key.
- Select Kiosk under Payment methods, and save.
- Add Kiosk as a payment option in your workflow.
Request fields for Paymob
Send these fields in the authorize request, in addition to the standard authorize fields. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a Kiosk payment
Call authorize a payment withkiosk as the paymentMethodCode. The response includes the redirect to the Paymob checkout page, where the customer gets the payment reference.
Authorize request
returnInfo URLs for Kiosk, so handle the customer leaving the Paymob page in your own app. Wait for the webhook notification or check the execution status, and fulfill the order only after the customer pays.
How Paymob handles Kiosk
- Payrails sends your
merchantReferenceto Paymob as the special reference. Paymob rejects a reference it has already seen, so use a uniquemerchantReferencefor each payment. - The payment stays pending until the customer pays the reference in cash. Paymob then sends the result in a notification, and Payrails marks the payment as authorized and captured.