Sha256: 4b2685fa022600795ad5e5ebdc00cf460bf5841e98aa51a30670f85ecca7dbb0

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

module CustomerHelpers
  def create_customer(credit_card_options = {})
    credit_card_options[:number] ||= TEST_CC_NUMBER
    credit_card_options[:expiration_date] ||= '04/2016'
    Braintree::Customer.create(credit_card: credit_card_options)
  end

  def create_customer_with_invalid_card(credit_card_options = {})
    credit_card_options[:number] = '123456'
    create_customer(credit_card_options)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fake_braintree-0.8.0 spec/support/customer_helpers.rb
fake_braintree-0.7.0 spec/support/customer_helpers.rb
fake_braintree-0.6.0 spec/support/customer_helpers.rb
fake_braintree-0.5.0 spec/support/customer_helpers.rb
fake_braintree-0.4.3 spec/support/customer_helpers.rb
fake_braintree-0.4.2 spec/support/customer_helpers.rb
fake_braintree-0.4.1 spec/support/customer_helpers.rb