“Woocommerce Cybersource SOAP Payment Gateway” Documentation by “Dilip” v1.0


“Woocommerce Cybersource SOAP Payment Gateway”

Created: 02/02/2017
By: Dilip Thakuri
Email: nepcode10@gmail.com

Thank you for purchasing my Plugin. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Table of Contents

  1. Installation
  2. Settings Page
  3. Gateway Settings
  4. Payment Gateway Form Preview
  5. Capture Authorised order
  6. Actions
  7. Filters

A) Installation - top

Manual Installation:

  1. Upload the dt-cybersource folder to the /wp-content/plugins/ directory

  2. Once Plugin is uploaded to plugins folder, you will see the Dt Cybersource Plugin in your plugins list as below:

  3. Activate the plugin by clicking the Activate link.


B) Settings Page - top

  1. Once plugin is activated, click the Settings Link as shown below:

  2. Or you can go to WooCommerce ->Settings Click on Checkout Tab-> Then Click Dt Cybersource as shown below:


C) Gateway Settings - top

Preview of Dt Cybersource Gateway Payment setting with description:

  1. Enable/Disable : Select this checkbox to enable Cybersource Payment Gateway, uncheck to disable this payment Gateway

  2. Title: Enter the Title for this payment gateway (shown in checkout options)

  3. Description: Enter short description that user can see during checkout.

  4. Instructions: Enter Instruction that will be added to "Thank You Page" and Emails for all orders paid using this payment gateway

  5. Trasaction Type:

      Select the transaction type to process.

    • Capture submits all transactions for settlement.

    • Authorization authorizes the order for capture later.

    • Order status after authorization Select the order status for the order after authorization. All orders once authorized will have the status selected here.

  6. Order status after Capture Select the order status for the order after payment is Captured.

  7. Card Verification ? Check this option to show the card security code field during payment, uncheck to disable card security pin verification.

  8. Accepted Cards Select which card types to accept. Ensure these are enabled in your CyberSource Business Center Account.(Supported: Visa, MasterCard, American Express, Discover, Maestro)

  9. Envirnoment The production environment should be used for live website and sandbox sould be used during development phase.

  10. Merchant ID Enter your CyberSource Merchant ID. This is obtained from CyberSource Business Center.

  11. Transaction Security Key for Test Get this from Test CyberSource Business Center. Go to Account Management then to Transaction Security Keys , then Security Keys for the SOAP Toolkit API and click 'Generate'.

  12. Transaction Security Key for Live Get this from CyberSource Business Center. Go to Account Management then to Transaction Security Keys , then Security Keys for the SOAP Toolkit API and click 'Generate'.

  13. Enable Logging ? Select this to keep the log of cybersource request and response for all payements.

  14. Enable Debug ? Select this to display cybersource response for debug( Helpful during Production, disable once your site goes live.)

Once All settings are done, click the Save Changes button to save your settings.


D) Payment Gateway Form Preview - top

Preview of payment form in Twenty Sixteen Theme:


E) Capture Authorised Orders - top

  1. You can capture the order that was previously authorised.

  2. To capture the order that has been authorised, please click the "Capture button". This enables us to capture the order without going to Cybersource Website.


F) Actions - top

  1. cybersource_order_transaction_accept

    This action is applied after the order transaction is accepted by cybersource during processing the payment. It has "Order object" as argument.

  2. cybersource_order_transaction_review

    This action is applied after the Cybersource returns response with "REVIEW" descision during processing the payment. It has "Order object" as argument.

  3. cybersource_order_transaction_fail

    This action is applied after the order transaction fails during processing the payment. It has "Order object" as argument.

  4. admin_capture_request_success

    This action is applied after the capture request sent from backend is accepted by Cybersource. It has "Order object" as argument.

  5. admin_capture_request_review

    This action is applied after the capture request sent from backend needs review. It has "Order object" as argument.

  6. admin_capture_request_fail

    This action is applied after the capture request sent from backend fails. It has "Order object" as argument.


G) Filters - top

  1. dt_cybersource_card_types

    It has "(array)Card types" as argument.

  2. dt_cs_order_transaction_type

    It has "transaction type used for the order(capture/authorization)" and "Order Id" as arguments. It is applied before sending the order transaction request to the Cybersource.

  3. cs_payment_fields_wrap_classes

    It has (array)classes of the wrapper that wraps payment fields in the checkout page as an argument.

  4. cs_credit_card_row_classes

    It has (array)classes of the' DIV' that wraps credit card number field in the checkout page as an argument.

  5. cs_credit_card_type_row_classes

    It has (array)classes of the' DIV' that wraps credit card type field in the checkout page as an argument.

  6. cs_credit_card_exp_date_row_classes

    It has (array)classes of the' DIV' that wraps credit card expiration month and year fields in the checkout page as an argument.

  7. cs_card_security_code_row_classes

    It has (array)classes of the' DIV' that wraps credit card security code field in the checkout page as an argument.

  8. admin_capture_accept_order_note

    This filter has (string)"Order Note" (that is added after the order is captured successfully by admin in backend) as an argument.

  9. admin_capture_review_order_note

    This filter has (string)"Order Note" (that is added after the order is captured by admin in backend but needs review ) as an argument.

  10. admin_capture_fail_order_note

    This filter has (string)"Order Note" (that is added after the order is captured by admin in backend but the request fails ) as an argument.

  11. cybersource_transaction_approved_order_note

    This filter has (string)"Order Note" (that is added after the order is placed by customer using cybersource payment gateway and is approved) as an argument.

  12. cybersource_transaction_review_order_note

    This filter has (string)"Order Note" (that is added after the order placed by customer using cybersource payment gateway needs review) as an argument.

  13. cybersource_transaction_review_notice

    This filter has (string)"Notice" (that is added after the order placed by customer using cybersource payment gateway needs review) as an argument.

  14. cybersource_transaction_fail_order_note

    This filter has (string)"Order Note" (that is added after the order placed by customer using cybersource payment gateway fails due to error) as an argument.

  15. cybersource_transaction_fail_notice

    This filter has (string)"notice" (that is added after the order placed by customer using cybersource payment gateway fails due to error) as an argument.


Once again, thank you so much for purchasing this plugin. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Dilip Thakuri

Go To Table of Contents