Sha256: 36263ec20531b915520b3c155f0761d420ce55e98a43a3cbe37f75b6be4c0137

Contents?: true

Size: 1.98 KB

Versions: 12

Compression:

Stored size: 1.98 KB

Contents

module AddGatewayStubs

  def successful_add_test_gateway_response
    StubResponse.succeeded <<-XML
      <gateway>
        <token>4dFb93AiRDEJ18MS9xDGMyu22uO</token>
        <gateway_type>test</gateway_type>
        <name>Test</name>
        <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">true</supports_general_credit>
          <supports_void type="boolean">true</supports_void>
          <supports_reference_purchase type="boolean">true</supports_reference_purchase>
          <supports_purchase_via_preauthorization type="boolean">true</supports_purchase_via_preauthorization>
          <supports_offsite_purchase type="boolean">true</supports_offsite_purchase>
          <supports_offsite_authorize type="boolean">true</supports_offsite_authorize>
          <supports_3dsecure_purchase type="boolean">true</supports_3dsecure_purchase>
          <supports_3dsecure_authorize type="boolean">true</supports_3dsecure_authorize>
          <supports_store type="boolean">true</supports_store>
          <supports_remove type="boolean">true</supports_remove>
          <supports_fraud_review type="boolean">true</supports_fraud_review>
        </characteristics>
        <state>retained</state>
        <payment_methods>
          <payment_method>credit_card</payment_method>
          <payment_method>sprel</payment_method>
          <payment_method>third_party_token</payment_method>
          <payment_method>bank_account</payment_method>
        </payment_methods>
        <gateway_specific_fields/>
        <redacted type="boolean">false</redacted>
        <created_at type="datetime">2013-07-31T17:17:36Z</created_at>
        <updated_at type="datetime">2013-07-31T17:17:36Z</updated_at>
      </gateway>
    XML
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spreedly-2.0.28 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.27 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.26 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.25 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.24 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.23 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.22 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.21 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.20 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.19 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.18 test/unit/response_stubs/add_gateway_stubs.rb
spreedly-2.0.15 test/unit/response_stubs/add_gateway_stubs.rb