cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone walk me thru how to properly use the Merchant Defined Data fields in Secure acceptance?

I am trying to generate 2 Merchant defined data fields onto the receipt that is generated by cybersource. I have tried to pass the field names in the Payment_form.php and the payment_confirmation.php files but still no success. Can anyone walk me thru this?

Kanefs_dev75
New Member
2 ACCEPTED SOLUTIONS

Accepted Solutions

To use Merchant Defined Data (MDD) fields in Secure Acceptance with CyberSource, here’s a step-by-step guide:

  1. Define MDD Fields in CyberSource:

    • Log into your CyberSource Merchant Interface and define the MDD fields that you want to pass. These fields can store custom information like order IDs, customer data, or other identifiers that need to appear on the receipt.
  2. Pass MDD Fields in the Payment Request:

    • In your server-side code, include the defined MDD fields within the payment request. You’ll need to ensure that these fields are passed along with the transaction when it's submitted to CyberSource. They are typically passed as part of the form data or as API parameters.
  3. Handle the MDD Fields in the Response:

    • After the transaction is processed, CyberSource will send a response. In your payment confirmation logic, retrieve the values of the MDD fields from the response. You will need to capture these values and prepare them for display.
  4. Display MDD Fields on the Confirmation Page:

    • On your payment confirmation or receipt page, you can extract and display the MDD field values. These will be available in the response object or payment data. You will likely use the response data to print the MDD fields in a readable format for the customer.
  5. Test the Integration:

    • After implementing the MDD fields in the payment request and response handling, thoroughly test the entire workflow to ensure the MDD fields are correctly passed and displayed on the receipt.
  6. Troubleshoot:

    • If you are not seeing the MDD fields in the receipt, verify that the field names match between the form submission and the CyberSource configuration. Ensure that the fields are being properly captured in the response and displayed correctly.

By following these steps, you should be able to integrate and display Merchant Defined Data fields successfully in your payment flow.

View solution in original post

kerawill1122
New Member

Hi kerawill,

 

Thanks for the assist, I was able to figure it out and make it work. I had trouble knowing where to place the code exactly. I had to use a var string to properly grab the information from the fields the customer fills out.

View solution in original post

Kanefs_dev75
New Member
2 REPLIES 2

To use Merchant Defined Data (MDD) fields in Secure Acceptance with CyberSource, here’s a step-by-step guide:

  1. Define MDD Fields in CyberSource:

    • Log into your CyberSource Merchant Interface and define the MDD fields that you want to pass. These fields can store custom information like order IDs, customer data, or other identifiers that need to appear on the receipt.
  2. Pass MDD Fields in the Payment Request:

    • In your server-side code, include the defined MDD fields within the payment request. You’ll need to ensure that these fields are passed along with the transaction when it's submitted to CyberSource. They are typically passed as part of the form data or as API parameters.
  3. Handle the MDD Fields in the Response:

    • After the transaction is processed, CyberSource will send a response. In your payment confirmation logic, retrieve the values of the MDD fields from the response. You will need to capture these values and prepare them for display.
  4. Display MDD Fields on the Confirmation Page:

    • On your payment confirmation or receipt page, you can extract and display the MDD field values. These will be available in the response object or payment data. You will likely use the response data to print the MDD fields in a readable format for the customer.
  5. Test the Integration:

    • After implementing the MDD fields in the payment request and response handling, thoroughly test the entire workflow to ensure the MDD fields are correctly passed and displayed on the receipt.
  6. Troubleshoot:

    • If you are not seeing the MDD fields in the receipt, verify that the field names match between the form submission and the CyberSource configuration. Ensure that the fields are being properly captured in the response and displayed correctly.

By following these steps, you should be able to integrate and display Merchant Defined Data fields successfully in your payment flow.

kerawill1122
New Member

Hi kerawill,

 

Thanks for the assist, I was able to figure it out and make it work. I had trouble knowing where to place the code exactly. I had to use a var string to properly grab the information from the fields the customer fills out.

Kanefs_dev75
New Member