On This Page
Enable SCMP to SO Conversions Using Java
This method allows users with an SCMP payment system to maintain that system. The SCMP
payloads are converted into an SO payload and sent to the associated SO endpoint. When
the SO payload is returned, the payload is then converted back into SCMP for processing
by the system. The image below outlines the message path:
An example program is available on GitHub: GitHub Sample Code
Prerequisites
There are no prerequisites for this work.
Establish the SO Payload Conversion
Add the SCMP sample client program to your payment system.
These files can be found in the GitHub resource referenced above.
Update the
cybs.properties
file.The following list is of values must be updated.
- merchantID: Set this to your production Merchant ID used for commerce.
- keysDirectory: The file path to the P12 certificate generated previously.
- password: The P12 certificate password.
- keyAlias: The name of your MID.
Other values may be set at your discretion. Use the comments within the file to determine which values you wish to change.
After the SCMP payment software creates a request payload, run the
processRequest
method found in the
Util.java
file against that payload.This method converts the SCMP payload into an SO payload and forwards the SO payload to the correct SO endpoint. When the SO reply payload is received, the method will then convert the payload back into an SCMP payload for normal processing within the system.