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 Yapı Kredi WorldPay payment through Craftgate:- Set up a Craftgate integration in your workspace. Follow the Craftgate integration setup guide if you don’t have one yet.
- Ask Craftgate to enable Yapı Kredi WorldPay on your Craftgate merchant account.
- In the Payrails Portal, go to Settings → Integrations, open your Craftgate integration, and fill in the APM Callback Key with the merchant callback key from the Craftgate merchant panel. Payrails uses it to verify the Yapı Kredi WorldPay result that Craftgate sends back.
- In the same integration, select Yapı Kredi WorldPay (shown as YKB WorldPay) under Payment methods, and save.
- Add Yapı Kredi WorldPay as a payment option in your workflow, with instant capture.
Request fields for Craftgate
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 Yapı Kredi WorldPay payment
Call authorize a payment withykbWorldPay as the paymentMethodCode.
Authorize request
- QR code page: the action has no redirect URL. Its provider data holds
htmlContent, a base64-encoded HTML page with a QR code. Decode it and show it to the customer, who scans the QR code with the WorldPay app. - App link: the action has a
redirectUrlthat opens the WorldPay app. Send the customer to it.
How Craftgate handles Yapı Kredi WorldPay
- Payrails starts the payment with Craftgate’s point-of-sale APM API and captures it in the same step.
- Payrails verifies the result that Craftgate sends back with your APM Callback Key, then reads the final payment status from Craftgate.
- The QR code is valid for a limited time. If the customer doesn’t scan it in time, the payment fails and you start a new one.
- You can refund the full amount or part of it.