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 payment through PayJustNow:- Set up a PayJustNow integration in your workspace with your PayJustNow merchant account ID and secret signing key. Follow the PayJustNow integration setup guide. Payrails signs its requests and verifies PayJustNow notifications with the signing key.
- In the Payrails Portal, go to Settings → Integrations, open your PayJustNow integration, select Payjustnow under Payment methods, and save.
- Add PayJustNow as a payment option in your workflow.
Request fields for PayJustNow
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 PayJustNow payment
Call authorize a payment withpayjustnow as the paymentMethodCode and hpp as the integrationType. The response includes the redirect to the PayJustNow page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How PayJustNow handles PayJustNow payments
- Payrails sends the payment amount to PayJustNow in cents, and your
merchantReferenceas the merchant order reference. - PayJustNow notifies Payrails of each status change. When PayJustNow reports the payment as paid, Payrails records the authorization and the capture together.
- If the customer cancels on the PayJustNow page, Payrails records the payment as canceled by the customer.
- Refunds work for the full amount or part of it. PayJustNow confirms each refund with a notification.