CASHnet gateway guide

Adding a CASHnet gateway

To add a CASHnet gateway:

curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>cashnet</gateway_type>
        <merchant>Merchant</merchant>
        <operator>Operator</operator>
        <merchant_gateway_name>Merchant_Gateway_Name</merchant_gateway_name>
        <station>Station</station>
        <customer_code>Customer_Code</customer_code>
        <default_item_code>Default_Item_Code</default_item_code>
        <password>Password</password>
      </gateway>'
<gateway>
  <token>LG2PFUq5A0IEAtXpskbw6lAf15B</token>
  <gateway_type>cashnet</gateway_type>
  <name>CASHNet</name>
  <description nil="true"/>
  <merchant_profile_key nil="true"/>
  <merchant>Merchant</merchant>
  <operator>Operator</operator>
  <merchant_gateway_name>Merchant_Gateway_Name</merchant_gateway_name>
  <station>Station</station>
  <customer_code>Customer_Code</customer_code>
  <default_item_code>Default_Item_Code</default_item_code>
  <characteristics>
    <supports_purchase type="boolean">true</supports_purchase>
    <supports_authorize type="boolean">false</supports_authorize>
    <supports_capture type="boolean">false</supports_capture>
    <supports_credit type="boolean">true</supports_credit>
    <supports_general_credit type="boolean">false</supports_general_credit>
    <supports_void type="boolean">false</supports_void>
    <supports_adjust type="boolean">false</supports_adjust>
    <supports_verify type="boolean">false</supports_verify>
    <supports_reference_purchase type="boolean">false</supports_reference_purchase>
    <supports_purchase_via_preauthorization type="boolean">false</supports_purchase_via_preauthorization>
    <supports_offsite_purchase type="boolean">false</supports_offsite_purchase>
    <supports_offsite_authorize type="boolean">false</supports_offsite_authorize>
    <supports_3dsecure_purchase type="boolean">false</supports_3dsecure_purchase>
    <supports_3dsecure_authorize type="boolean">false</supports_3dsecure_authorize>
    <supports_3dsecure_2_mpi_purchase type="boolean">false</supports_3dsecure_2_mpi_purchase>
    <supports_3dsecure_2_mpi_authorize type="boolean">false</supports_3dsecure_2_mpi_authorize>
    <supports_store type="boolean">false</supports_store>
    <supports_remove type="boolean">false</supports_remove>
    <supports_fraud_review type="boolean">false</supports_fraud_review>
    <supports_network_tokenization type="boolean">false</supports_network_tokenization>
    <supports_populate_mit_fields type="boolean">false</supports_populate_mit_fields>
  </characteristics>
  <credentials>
    <credential>
      <name>merchant</name>
      <value>Merchant</value>
    </credential>
    <credential>
      <name>operator</name>
      <value>Operator</value>
    </credential>
    <credential>
      <name>merchant_gateway_name</name>
      <value>Merchant_Gateway_Name</value>
    </credential>
    <credential>
      <name>station</name>
      <value>Station</value>
    </credential>
    <credential>
      <name>customer_code</name>
      <value>Customer_Code</value>
    </credential>
    <credential>
      <name>default_item_code</name>
      <value>Default_Item_Code</value>
    </credential>
  </credentials>
  <gateway_settings>
  </gateway_settings>
  <gateway_specific_fields>
    <gateway_specific_field>item_code</gateway_specific_field>
    <gateway_specific_field>item_codes</gateway_specific_field>
    <gateway_specific_field>customer_code</gateway_specific_field>
  </gateway_specific_fields>
  <payment_methods>
    <payment_method>credit_card</payment_method>
  </payment_methods>
  <state>retained</state>
  <redacted type="boolean">false</redacted>
  <sandbox type="boolean">false</sandbox>
  <created_at type="dateTime">2022-01-10T18:58:55Z</created_at>
  <updated_at type="dateTime">2022-01-10T18:58:55Z</updated_at>
</gateway>

Gateway specific fields

When interacting with CASHNet gateway to run transactions, there are a number of gateway specific fields you can specify. See the details below the example for more information on each field.

Item code

Item Codes can be included as a single string, defaulting to the default_item_code. To include multiple item_codes, please use the Item Codes gateway specific field instead.

Item codes

CASHNet allows for multiple Item Codes and Amounts to be provided in a transaction. To use multiple item codes, provide all the nessesary item codes and their corresponding amounts in the item_codes field. For more information on how to utilize this field, please reference CASHNet gateway’s documentation.

If you’d like to request any gateway_specific_fields or gateway_specific_response_fields, please contact Support with your request and the gateway documentation for the fields of interest.