Sha256: 4ee65cf23abe745145857240d0bc21a7324188fc9a3ef885a8a1fd0ad9d6cfd1

Contents?: true

Size: 971 Bytes

Versions: 1

Compression:

Stored size: 971 Bytes

Contents

module Workarea
  decorate Payment::Authorize::CreditCardTest, with: :checkoutdotcom do
    def test_complete_does_nothing_if_gateway_storage_fails
      skip "Storage happens post transaction"
    end

    def payment
      @payment ||= create_payment(profile: create_payment_profile)
    end

    def tender
      @tender ||=
        begin
          payment.set_address(first_name: 'Ben', last_name: 'Crouse')
          create_order(id: payment.id, email: 'bclams@workarea.com')

          payment.set_address(
            first_name: 'Ben',
            last_name: 'Crouse',
            street: '22 s 3rd st',
            city: 'Philadelphia',
            region: 'PA',
            country: Country['US'],
            postal_code: '19106'
          )

          payment.build_credit_card(
            number: 1,
            month: 1,
            year: Time.current.year + 1,
            cvv: 999
          )

          payment.credit_card
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-checkoutdotcom-1.2.0 test/models/workarea/payment/authorize/credit_card_test.decorator