How a SafetyPay payment works
SafetyPay is a redirect payment method that can complete after the customer returns:- The customer selects SafetyPay at checkout.
- Payrails returns a redirect URL from Worldpay, and the customer goes to SafetyPay.
- The customer confirms the payment with SafetyPay.
- SafetyPay sends the customer back to your
returnInfoURL. - Payrails receives the final result from Worldpay and updates the payment.
Supported currencies and countries
Payrails sends the currency and billing country you provide to Worldpay without checking them first. Worldpay rejects a pairing that SafetyPay doesn’t support.Supported workflows
Before you begin
Complete these steps before you send your first SafetyPay payment through Worldpay:- Set up a Worldpay integration in your workspace. Contact your Payrails account team if Worldpay isn’t listed in your Payrails Portal yet.
- Ask Worldpay to enable SafetyPay on your Worldpay entity.
- In the Payrails Portal, go to Settings → Integrations, open your Worldpay integration, select SafetyPay under Payment methods, and save.
- Add SafetyPay as a payment option in your workflow.
Request fields for Worldpay
Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.Authorize a SafetyPay payment
Call authorize a payment withsafetyPay as the paymentMethodCode. The response includes the redirect to SafetyPay.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Worldpay handles SafetyPay
- Worldpay doesn’t add a payment status to the return URL for SafetyPay. Payrails reads the result from the return path instead: success, pending, or cancel.
- When the customer returns with a pending result, Payrails doesn’t wait on the redirect. The Worldpay webhook sets the final status.
- Payrails reads the customer’s email from
meta.order.billingAddress.email, not frommeta.customer.email. Payrails doesn’t send the customer’s name for SafetyPay. - Save Instruments and merchant-initiated transactions (MIT) aren’t available for SafetyPay through Worldpay.