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
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 is stopping support for their current signature authentication method (SHA1) on November 23, 2015. Spreedly has upgraded the Redsys gateway to support both the SHA1 and SHA256 authentication methods. By default, when you create a Redsys gateway in Spreedly, it’s using SHA1. If you’d like to use SHA256, make sure you specify the signature_algorithm parameter. See below for an example.

To add a CatalunyaCaixa (via Redsys) gateway:


curl https://core.spreedly.com/v1/gateways.xml \
  -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \
  -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>70j2x94iugKJTd0sSmAHtVmbeyE</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">2016-08-11T17:15:52Z</created_at>
  <updated_at type="dateTime">2016-08-11T17:15:52Z</updated_at>
</gateway>


env = Spreedly::Environment.new('Ll6fAtoVSTyMlJEm', 'RKcG5D8D3fZxDSg504U2XD4Io5VXz')
env.add_gateway(:redsys, merchant_id: "Your merchant_id", terminal: "Your terminal",
                secret_key: "Your secret_key")


#<Spreedly::Gateway:0x007fa9bc09e2d8
 @created_at="2016-08-11T17:15:52Z",
 @credentials=
  {"merchant_id"=>"Your merchant_id",
   "terminal"=>"Your terminal",
   "signature_algorithm"=>""},
 @gateway_type="redsys",
 @name="CatalunyaCaixa (via Redsys)",
 @state="retained",
 @token="NZz5Ql5QZpmy3f3m3XKpw8yLxWZ",
 @updated_at="2016-08-11T17:15:52Z">

Add Redsys gateway using SHA256 authentication

curl https://core.spreedly.com/v1/gateways.xml \
  -u 'Ll6fAtoVSTyVMlJEmtpoJV8S:RKOCG5D8D3fZxDSg504D0IxU2XD4Io5VXmyzdCtTivHFTTSy' \
  -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>
        <signature_algorithm>sha256</signature_algorithm>
      </gateway>'

If you’d like to request any gateway_specific_fields or gateway_specific_response_fields, please email support@spreedly.com with your request and the gateway documentation for the fields of interest.