Paystation Gateway Guide

close

Services and Compatibility

Payment Gateway Company Name:
Paystation
Services that work with Spreedly:
  • Paystation
Supported operations:
Purchase, Authorize, Capture, Refund, Store
Unsupported operations:
Void
Regions:
Asia Pacific

Authentication and Security

Specific names for credentials:
Gateway, Paystation

Onboarding Merchants in:

Adding

To add a Paystation gateway:


curl https://core.spreedly.com/v1/gateways.xml \
  -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
  -H 'Content-Type: application/xml' \
  -d '<gateway>
        <gateway_type>paystation</gateway_type>
        <paystation_id>Your paystation id</paystation_id>
        <gateway_id>Your gateway id</gateway_id>
      </gateway>'

<gateway>
  <token>1VviDDXglCI3LTjZLa1ztZYeUhy</token>
  <gateway_type>paystation</gateway_type>
  <name>Paystation</name>
  <description nil="true"/>
  <paystation_id>Your paystation id</paystation_id>
  <gateway_id>Your gateway id</gateway_id>
  <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">false</supports_void>
    <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_store type="boolean">true</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>paystation_id</name>
      <value>Your paystation id</value>
    </credential>
    <credential>
      <name>gateway_id</name>
      <value>Your gateway id</value>
    </credential>
  </credentials>
  <gateway_specific_fields>
  </gateway_specific_fields>
  <payment_methods>
    <payment_method>credit_card</payment_method>
    <payment_method>third_party_token</payment_method>
  </payment_methods>
  <state>retained</state>
  <redacted type="boolean">false</redacted>
  <created_at type="dateTime">2017-07-27T17:50:09Z</created_at>
  <updated_at type="dateTime">2017-07-27T17:50:09Z</updated_at>
</gateway>


env = Spreedly::Environment.new('C7cRfNJGODKh4Iu5Ox3PToKjniY', '4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ', base_url: 'https://core.spreedly.com')
env.add_gateway(:paystation, paystation_id: "Your paystation id", gateway_id: "Your gateway id")


#<Spreedly::Gateway:0x007fe33384d578
@token="YYJUPf1lhgJg2CAjE3ehSzv5Ohw",
@created_at="2017-07-27T17:50:09Z",
@updated_at="2017-07-27T17:50:09Z",
@gateway_type="paystation",
@state="retained",
@name="Paystation",
@credentials={"paystation_id"=>"Your paystation id", "gateway_id"=>"Your gateway id"}>

Gateway specific response fields

A response from a Paystation gateway may contain a batch_number from the underlying processor.

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>
     <paystation>
       <batch_number>0622</batch_number>
     </paystation>
  </gateway_specific_response_fields>
</transaction>