lib/braintree/transaction.rb in braintree-2.11.0 vs lib/braintree/transaction.rb in braintree-2.12.0
- old
+ new
@@ -79,9 +79,17 @@
# See http://www.braintreepayments.com/docs/ruby/transactions/create
def self.create!(attributes)
return_object_or_raise(:transaction) { create(attributes) }
end
+ def self.clone_transaction(transaction_id, attributes)
+ Configuration.gateway.transaction.clone_transaction(transaction_id, attributes)
+ end
+
+ def self.clone_transaction!(transaction_id, attributes)
+ return_object_or_raise(:transaction) { clone_transaction(transaction_id, attributes) }
+ end
+
# Deprecated. Use Braintree::TransparentRedirect.confirm
#
# See http://www.braintreepayments.com/docs/ruby/transactions/create_tr
def self.create_from_transparent_redirect(query_string)
warn "[DEPRECATED] Transaction.create_from_transparent_redirect is deprecated. Please use TransparentRedirect.confirm"