Sha256: 677a07dfa532bcf30cf0a7f84c594b4d636777af1ec2990a4d90d1465f22681d
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
require "test_helper" module Workarea class Payment class PaywareCreditCardTest < Workarea::TestCase def test_partial_number payment = Payment.new( address: { first_name: "eric", last_name: "pigeon", street: "22 s 4rd st weblinc", city: "philadelphia", country: Country["US"], region: "PA", postal_code: "19106" } ) payment.set_credit_card(number: "4111111111111111", month: "01", year: next_year.to_s, cvv: 111) assert payment.credit_card.partial_number.present? end def test_partial_number_from_saved_card profile = create_payment_profile saved_card = create_saved_credit_card(profile: profile) payment = Payment.new( profile: profile, address: { first_name: "eric", last_name: "pigeon", street: "22 s 4rd st weblinc", city: "philadelphia", country: Country["US"], region: "PA", postal_code: "19106" } ) payment.set_credit_card(saved_card_id: saved_card.id) assert payment.credit_card.partial_number.present? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-payware_connect-2.1.2 | test/models/workarea/payment/payware_credit_card_test.rb |