Sha256: 225dfefeb83323d7ef0e42e3827f1ced4f7b03f527cf6a3496095f32b13a5737

Contents?: true

Size: 1.73 KB

Versions: 12

Compression:

Stored size: 1.73 KB

Contents

module AddCreditCardStubs

  def successful_add_credit_card_response
    StubResponse.succeeded <<-XML
      <transaction>
        <token>6wxjN6HcDik8e3mAhBaaoVGSImH</token>
        <created_at type="datetime">2013-08-02T18:04:45Z</created_at>
        <updated_at type="datetime">2013-08-02T18:04:45Z</updated_at>
        <succeeded type="boolean">true</succeeded>
        <transaction_type>AddPaymentMethod</transaction_type>
        <retained type="boolean">false</retained>
        <message key="messages.transaction_succeeded">Succeeded!</message>
        <payment_method>
          <token>AXaBXfVUqhaGMg8ytf8isiMAAL9</token>
          <created_at type="datetime">2013-08-02T18:04:45Z</created_at>
          <updated_at type="datetime">2013-08-02T18:04:45Z</updated_at>
          <email>ellend@mistborn.com</email>
          <data>Don't test everything here, since find_payment_method tests it all.</data>
          <storage_state>cached</storage_state>
          <last_four_digits>4942</last_four_digits>
          <card_type>master</card_type>
          <first_name>Eland</first_name>
          <last_name>Venture</last_name>
          <month type="integer">1</month>
          <year type="integer">2019</year>
          <address1>3 Main</address1>
          <address2>Suite 7</address2>
          <city>Oakland</city>
          <state>NJ</state>
          <zip>33221</zip>
          <country>UK</country>
          <phone_number>43</phone_number>
          <full_name>Eland Venture</full_name>
          <payment_method_type>credit_card</payment_method_type>
          <errors>
          </errors>
          <verification_value></verification_value>
          <number>XXXX-XXXX-XXXX-4942</number>
        </payment_method>
      </transaction>
      XML
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spreedly-2.0.11 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.10 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.9 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.8 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.7 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.6 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.5 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.4 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.3 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.2 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.1 test/unit/response_stubs/add_credit_card_stubs.rb
spreedly-2.0.0 test/unit/response_stubs/add_credit_card_stubs.rb