Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2.15.0

  • Loading branch information...
commit d0838f25d473dd46dda1c02b2f8c5418211075c3 1 parent 42b0fcd
Braintree Open Source braintreeps authored
4 CHANGELOG.rdoc
View
@@ -1,3 +1,7 @@
+== 2.15.0
+
+* Adds unique_number_identifier attribute to CreditCard
+
== 2.14.0
* Adds search for duplicate credit cards given a payment method token
2  lib/braintree/credit_card.rb
View
@@ -27,7 +27,7 @@ module CustomerLocation
end
attr_reader :billing_address, :bin, :card_type, :cardholder_name, :created_at, :customer_id, :expiration_month,
- :expiration_year, :last_4, :subscriptions, :token, :updated_at
+ :expiration_year, :last_4, :unique_number_identifier, :subscriptions, :token, :updated_at
# See http://www.braintreepayments.com/docs/ruby/credit_cards/create
def self.create(attributes)
2  lib/braintree/version.rb
View
@@ -1,7 +1,7 @@
module Braintree
module Version
Major = 2
- Minor = 14
+ Minor = 15
Tiny = 0
String = "#{Major}.#{Minor}.#{Tiny}"
1  spec/integration/braintree/credit_card_spec.rb
View
@@ -22,6 +22,7 @@
credit_card.bin.should == Braintree::Test::CreditCardNumbers::Visa[0, 6]
credit_card.last_4.should == Braintree::Test::CreditCardNumbers::Visa[-4..-1]
credit_card.expiration_date.should == "05/2009"
+ credit_card.unique_number_identifier.should =~ /\A\w{32}\z/
end
it "can provide expiration month and year separately" do
1  spec/integration/braintree/customer_spec.rb
View
@@ -111,6 +111,7 @@
result.customer.credit_cards[0].bin.should == Braintree::Test::CreditCardNumbers::MasterCard[0, 6]
result.customer.credit_cards[0].last_4.should == Braintree::Test::CreditCardNumbers::MasterCard[-4..-1]
result.customer.credit_cards[0].expiration_date.should == "05/2010"
+ result.customer.credit_cards[0].unique_number_identifier.should =~ /\A\w{32}\z/
end
it "verifies the card if credit_card[options][verify_card]=true" do
Please sign in to comment.
Something went wrong with that request. Please try again.