Testing Your Implementation

Testing Your Implementation
Using the Simulator
To send a payment request to CyberSource:
Step 1
Simple Order APIPayment Request Fields, describes the required and optional fields to include in the request.
SCMP APIPayment Request Fields, describes the required and optional fields to include in the request.
Step 2
CyberSource responds with a payment reply message that includes the form data:
Simple Order APIPayment Reply Fields, describes the fields in the reply. The form data is in the chinaPaymentReply_formData field.
SCMP APIPayment Reply Fields, describes the fields in the reply. The form data is in the china_payment_form_data field.
 
Step 3
Step 4
An example of code you can use to decode the form data:
where:
encoded_data is a java.lang.String object that contains the form_data response field value.
Step 5
An example of a POST operation you can use to send the form data to the processor:
The POST operation sends the form data to the URL that is included in the form data.
The simulator responds by sending you a payment response message that contains the fields described in PayEase Response Fields.
The simulator redirects you to a scenario-selection page that lists an account number for each scenario.
Step 6
Click the account number that corresponds to the scenario you want to run. The scenarios are described in Simulator Scenarios.
The simulator runs the scenario as described in Table 5, and sends you a simulated PayEase response.
Step 7
The Business Center receives periodic updates for the simulated transactions. You can retrieve information about the transactions in reports, query results, and transaction details as described in Obtaining Information About Your Transactions.