lib/braintree/credit_card.rb in braintree-2.39.0 vs lib/braintree/credit_card.rb in braintree-2.40.0
- old
+ new
@@ -233,9 +233,13 @@
def update!(attributes)
warn "[DEPRECATED] update! as an instance method is deprecated. Please use CreditCard.update!"
return_object_or_raise(:credit_card) { update(attributes) }
end
+ def nonce
+ @nonce ||= PaymentMethodNonce.create(self)
+ end
+
# Returns true if the card is associated with Venmo SDK
def venmo_sdk?
@venmo_sdk
end