Supported workflows
Before you begin
Complete these steps before you send your first Konnect payment through Thunes:- Set up a Thunes integration in your workspace with your Thunes merchant ID, API key, and secret key. Payrails uses the secret key to verify Thunes notifications. Contact your Payrails account team if Thunes isn’t listed in your Payrails Portal yet.
- Ask Thunes to enable Konnect on your Thunes merchant account, with a payment page whose ID is
konnect. Payrails opens the Thunes payment page with that ID. - In the Payrails Portal, go to Settings → Integrations, open your Thunes integration, select Konnect under Payment methods, and save.
- Add Konnect as a payment option in your workflow.
Request fields for Thunes
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 Konnect payment
Call authorize a payment withkonnect as the paymentMethodCode. The response includes the redirect to the Thunes payment page.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Thunes handles Konnect
- Payrails opens the Thunes payment page whose ID is
konnect, and sends the payment amount as a decimal value in PKR. - Thunes notifies Payrails of the final result. When Thunes reports the payment as charged, Payrails records the authorization and the capture together.