This is the early access documentation preview for Custom Views. This documentation might not be in sync with our official documentation.
Access Worldpay payment connector
Learn how to add an Access Worldpay payment connector to your Project.
Add an Access Worldpay payment connector
Before you add an Access Worldpay payment connector, do the following:
Contact Worldpay and request:
- Your Checkout ID, Worldpay merchant entity, HMAC key, username, and password
- The activation of the credit card payment method
Create a Composable Commerce API Client with the Orders, Payments, and Types scopes selected.
These permissions are required to establish a communication between Composable Commerce and commercetools Checkout.
To add an Access Worldpay payment connector, you must:
Configure an Access Worldpay payment connector
In the Merchant Center navigation menu, select commercetools Checkout > Add payment connector.
On the Configure payment connector page, do the following:
From Select payment provider, select Access Worldpay.
In the General information section, for Payment connector name, enter a plain-text name for the payment connector.
In the Configuration section, do the following:
For CheckoutID, enter your checkout ID provided by Worldpay.
For Environment, select the environment where you will use the payment connector.
For Worldpay merchant entity, enter your merchant entity provided by Worldpay.
For Worldpay merchant narrative, enter a text that will appear on your customer's account statement. This text can be a maximum of 24 characters long and it can only contain letters, numbers, hyphens, full stops, commas, and spaces.
In the Payment method section, keep the Credit card toggle in the activated position.
In the Connector secrets section, follow next steps:
- For Client ID, enter the client ID you generated while creating the Composable Commerce API Client.
- For Client secret, enter the client secret you generated while creating the Composable Commerce API Client.
In the PSP specific connector secrets section, do the following:
- For Username, enter your username provided by Worldpay.
- For Password, enter your password provided by Worldpay.
- For HMAC key, enter your HMAC key provided by Worldpay.
Click Save. On saving, a payment connector ID is generated and it will be available in the General Information section.
Set up a Worldpay webhook
Worldpay uses a webhook to call back the commercetools Checkout application and provide notifications about the status of the payment process. To set up a webhook, follow these steps:
- In your Worldpay Merchant Admin Interface, select Integration > Merchant Channel.
- Set the following configuration values:
- Protocol:
HTTP
- Active:
Yes
- Content:
XML
- Address:
https://awp.checkout.{region}.commercetools.com/{PaymentConnectorID}/notifications
. Replace{region}
with the Region where your commercetools Checkout project is deployed (for example,europe-west1.gcp
) and{PaymentConnectorID}
with the payment connector ID you generated earlier. - Method:
POST
- Client Certificate:
No
- Send Idempotency Key:
No
- Protocol:
- From the Merchant Channel Events list, select the following events to listen to:
- AUTHORIZED
- REFUSED
- ERROR
- SENT_FOR_SETTLEMENT
- SENT_FOR_REFUND
- CANCELLED
- EXPIRED
After adding the Access Worldpay payment connector, add the activated payment method for this payment connector to your application.