Supported workflows
Before you begin
Complete these steps before you send your first Trustly 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 Trustly on your Worldpay entity.
- In the Payrails Portal, go to Settings → Integrations, open your Worldpay integration, select Trustly under Payment methods, and save.
- Add Trustly 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. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include them.Authorize a Trustly payment
Call authorize a payment withtrustly as the paymentMethodCode. The response includes the redirect to Trustly.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Worldpay handles Trustly
- Payrails reads the customer’s email from
meta.order.billingAddress.email, not frommeta.customer.email. - When Worldpay reports the payment as pending after the redirect, Payrails waits for the Worldpay webhook to set the final status.
- Each Trustly payment is a new customer-initiated payment.