MasterCard Payment Gateway Service (formerly TNS) Gateway Guide

close

Services and Compatibility

Payment Gateway Company Name:
MasterCard Payment Gateway Service (formerly TNS)
Services that work with Spreedly:
  • MasterCard Payment Gateway Service (formerly TNS)
Supported operations:
Purchase, Authorize, Capture, Refund, Void, Verify
Supported payment types:
Credit Card
Regions:
Asia Pacific, Europe, Latin America, Middle East, North America, South America

Authentication and Security

Specific names for credentials:
Region, Userid, Password

Onboarding Merchants in:

To add a MasterCard Payment Gateway Service (formerly TNS) gateway:


curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>tns</gateway_type>
        <userid>Your userid</userid>
        <password>Your password</password>
        <region>north_america or asia_pacific</region>
      </gateway>'

<gateway>
  <token>TmV6f7E90bvvL7eQi6gdlTvOFs6</token>
  <gateway_type>tns</gateway_type>
  <name>MasterCard Payment Gateway Service (formerly TNS)</name>
  <description nil="true"/>
  <userid>Your userid</userid>
  <region>north_america or asia_pacific</region>
  <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>userid</name>
      <value>Your userid</value>
    </credential>
    <credential>
      <name>region</name>
      <value>north_america or asia_pacific</value>
    </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:48Z</created_at>
  <updated_at type="dateTime">2018-06-19T17:07:48Z</updated_at>
</gateway>


env = Spreedly::Environment.new('C7cRfNJGODKh4Iu5Ox3PToKjniY', '4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ', base_url: 'https://core.spreedly.com')
env.add_gateway(:tns, userid: "Your userid", password: "Your password")


#<Spreedly::Gateway:0x007fe333944be8
@token="5QVEDrJZFiymrr8WP9JJAu46LP9",
@created_at="2017-07-27T17:51:08Z",
@updated_at="2017-07-27T17:51:08Z",
@gateway_type="tns",
@state="retained",
@name="TNS",
@credentials={"userid"=>"Your userid", "region"=>"north_america"}>