Sha256: ab1a49a47789e7de271c3723bc840b16fc6dfad28c51805d4f52e004ad0ab250

Contents?: true

Size: 796 Bytes

Versions: 3

Compression:

Stored size: 796 Bytes

Contents

module Workarea
  if Workarea::VERSION::MAJOR == 3 && Workarea::VERSION::MINOR >= 3
    decorate Payment::CreditCardIntegrationTest, with: :cim do
      decorated { include AuthorizeCimGatewayVCRConfig }

      private

      def payment
        
        @payment ||=
          begin
            profile = create_payment_profile
            create_payment(
              id: SecureRandom.hex(5).upcase,
              profile_id: profile.id,
              address: {
                first_name: 'Ben',
                last_name: 'Crouse',
                street: '22 s. 3rd st.',
                city: 'Philadelphia',
                region: 'PA',
                postal_code: '19106',
                country: Country['US']
              }
            )
          end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-authorize_cim-2.1.3 test/models/workarea/payment/credit_card_integration_test.decorator
workarea-authorize_cim-2.1.2 test/models/workarea/payment/credit_card_integration_test.decorator
workarea-authorize_cim-2.1.1 test/models/workarea/payment/credit_card_integration_test.decorator