CatalunyaCaixa (via Redsys) Gateway Guide

close

Services and Compatibility

Payment Gateway Company Name:
CatalunyaCaixa (via Redsys)
Services that work with Spreedly:
  • CatalunyaCaixa (via Redsys)
Services that do not work with Spreedly:
  • The Redsys offsite payment page offering
Supported operations:
Purchase, Authorize, Capture, Refund, Void, Verify
Supported payment types:
Credit Card
Regions:
Europe

Authentication and Security

Specific names for credentials:
Merchant ID, Signature Algorithm, Terminal, Secret Key

Onboarding Merchants in:

Additional Notes

Merchants with CataluynaCaixa can use Spreedly via the Redsys direct API. Contact us or your CataluynaCaixa account manager if you have any questions.

If you receive error “SIS0252 ERROR: El comercio no permite el envío de tarjeta” the merchant should contact their CataluynaCaixa account manager. The merchant needs a configuration change in their merchant account to work with Spreedly.

SHA256 Authentication

Redsys deprecated SHA1 signature authentication on November 23, 2015. Spreedly has upgraded the Redsys gateway to use SHA256.

To add a CatalunyaCaixa (via Redsys) gateway:


curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>redsys</gateway_type>
        <merchant_id>merchantid</merchant_id>
        <terminal>terminal</terminal>
        <secret_key>secretkey</secret_key>
      </gateway>'

<gateway>
  <token>RGdLNdxcofRaGE5aL9TZqrPe05C</token>
  <gateway_type>redsys</gateway_type>
  <name>CatalunyaCaixa (via Redsys)</name>
  <description nil="true"/>
  <merchant_id>merchantid</merchant_id>
  <terminal>terminal</terminal>
  <signature_algorithm nil="true"/>
  <characteristics>
    <supports_purchase type="boolean">true</supports_purchase>
    <supports_authorize type="boolean">true</supports_authorize>
    <supports_capture type="boolean">true</supports_capture>
    <supports_credit type="boolean">true</supports_credit>
    <supports_general_credit type="boolean">false</supports_general_credit>
    <supports_void type="boolean">true</supports_void>
    <supports_verify type="boolean">true</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_store type="boolean">false</supports_store>
    <supports_remove type="boolean">false</supports_remove>
    <supports_fraud_review type="boolean">false</supports_fraud_review>
    <supports_disburse type="boolean">false</supports_disburse>
  </characteristics>
  <credentials>
    <credential>
      <name>merchant_id</name>
      <value>merchantid</value>
    </credential>
    <credential>
      <name>terminal</name>
      <value>terminal</value>
    </credential>
    <credential>
      <name>signature_algorithm</name>
      <value nil="true"/>
    </credential>
  </credentials>
  <gateway_specific_fields>
  </gateway_specific_fields>
  <payment_methods>
    <payment_method>credit_card</payment_method>
  </payment_methods>
  <state>retained</state>
  <redacted type="boolean">false</redacted>
  <created_at type="dateTime">2018-06-19T17:07:51Z</created_at>
  <updated_at type="dateTime">2018-06-19T17:07:51Z</updated_at>
</gateway>


env = Spreedly::Environment.new('C7cRfNJGODKh4Iu5Ox3PToKjniY', '4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ', base_url: 'https://core.spreedly.com')
env.add_gateway(:redsys, merchant_id: "Your merchant_id", terminal: "Your terminal",
                secret_key: "Your secret_key")


#<Spreedly::Gateway:0x007fe33391f9b0
@token="9O6AlbXJjzStEnvRUSEkcOTQhT5",
@created_at="2017-07-27T17:50:30Z",
@updated_at="2017-07-27T17:50:30Z",
@gateway_type="redsys",
@state="retained",
@name="CatalunyaCaixa (via Redsys)",
@credentials={"merchant_id"=>"Your merchant_id", "terminal"=>"Your terminal", "signature_algorithm"=>""}>

Gateway specific response fields

A response from a CatalunyaCaixa (via Redsys) gateway may contain a ds_response_int.

You can find this information in gateway_specific_response_fields. For example, a transaction could have something like this:

<transaction>
  <token>LgpTNGjsWQs9DwdxcbreUVz0R8p</token>
  <transaction_type>Purchase</transaction_type>
  <gateway_specific_response_fields>
     <redsys>
       <ds_response_int>00</ds_response_int>
     </redsys>
  </gateway_specific_response_fields>
</transaction>

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.