Updating backend services for Apple Pay on the Web using the Accelerator assets
Apple Pay on the Web and WebSphere Commerce integration enable multiple interactions between WebSphere Commerce web pages and WebSphere Commerce Server, WebSphere Commerce Server and Apple Pay server, and WebSphere Commerce Server and Payment Service Providers (PSP) such as IBM Payment Gateway server, which ensures seamless payment and check out method.
Note: In the sample accelerator assets, the WebSphere Commerce Server does not communicate with
any PSP server to forward the encrypted payment token for further financial processing. The sample
assets instead provide a dummy PSP implementation that prints logs and simulates the PSP behavior to
return a successful result. To configure IBM Payment Gateway as the Payment Service Provider for
Apple Pay on Web, complete the first step in this task.
Procedure
- Optional:
Configure IBM Payment Gateway as the Payment Service Provider for Apple Pay on Web.
-
Deploy the Java project in WebSphere Commerce Server.
-
Deploy the Rest.war project.
-
Register a new command implementation in CMGREG by running the following SQL command.
Where:insert into CMDREG (storeent_id, interfacename, classname, target) values ($storeId, 'com.ibm.commerce.order.facade.server.commands.ComposeOrderCmd+IBM_UsableShippingInfo', 'com.ibm.commerce.applepay.order.facade.server.commands.ComposeUsableShippingInfoWithShippingChargeCmdImpl', 'Local');
- INTERFACENAME
- Is the com.ibm.commerce.order.facade.server.commands.ComposeOrderCmd and IBM_UsableShippingInfo.
- storeent_Id
- Is the store ID.
-
Get backend service access control.
-
Add struts and rest template configuration files.
-
Get the Apple Pay Merchant Identity Certificate.
Refer to the Apple documentation for registering and verifying your website: Apple Pay JS - Apple Developer. The Merchant Identity Certificate that you get is linked to your domain name. It is used to authenticate your merchant sessions with the Apple Pay servers. To establish a TLS connection to Apple Pay servers, you can configure the certificates as follows:
-
Configure the SSL setting for Apple Pay merchant validation.
-
Modify the SSL protocol to TLS1.2.
- Open the WebSphere Application Server Administration Console.
- Depending on your environment configuration, go to: .
- Click Quality of protection (QoP) settings under Additional Properties.
- Change the value of Protocol to TLSv1.2.
- Click Apply to save the changes.