- Add support for Puma server for JRuby support (#59).
fake_braintree
will try to use Thin first and then Puma.
- Add support for
Braintree::Subscription.retry_charge
- Add support for
Braintree::Address.create
- Add support for creating a card with an existing billing address (#45)
- Transactions have a type of "sale" (#46)
- Require at least Ruby 1.9.2
-
Braintree::Transaction.void updates the existing sale transaction instead of creating a new transaction of type Braintree::Transaction::Status::Voided
-
Preserve
redirect_url
query parameters for transparent redirect (#36) -
Transactions can be submitted for settlement by passing an options hash to Braintree::Transaction.create as shown in the Braintree documentation (#31)
-
When a customer is created with a credit card (
Braintree::Customer.create(:credit_card => ...
), that credit card is set as the customer's default card.
- Fake refunds via
Braintree::Transaction.refund
andBraintree::CreditCard.refund
. - Create credit cards via
Braintree::CreditCard.create(:token => token, :number => TEST_CC_NUMBER)
- Depend on Thin instead of Mongrel (fixes NotImplementedError).
- Generated transactions (from
FakeBraintree.generate_transaction
) now include the amount. Braintree::Customer.update
will reject updates that contain credit cards that have been marked as a failure in the registry.
Braintree::CreditCard.update
now works
FakeBraintree.{customers, transactions, failures, subscriptions, redirects}
are now accessed viaFakeBraintree.registry
. For example,FakeBraintree.customers
is nowFakeBraintree.registry.customers
FakeBraintree.credit_card_from_token
is nowFakeBraintree.registry.credit_card_from_token
- The server code (it intercepts calls to Braintree) now lives in FakeBraintree::Server
Braintree::Customer.create
will use the provided customer ID instead of overwriting it (#15).Braintree::Subscription.cancel
now works
- Flesh out the README
- Add support for transparent redirect
- Add basic support for adding add-ons
- Add basic support for adding discounts
- Add support for
Braintree::Customer.update
- Add support for
Braintree::Customer.delete
- Add support for
Braintree::Subscription.delete
- Lots of internal refactorings
- Add support for
Braintree::Customer.find
- Allow for very basic card verification
- Ensure
FakeBraintree.log_file_path
directory exists - The
FakeBraintree.log_file_path
attribute can now be read (it could only be set before) - Clear log when
FakeBraintree.clear!
is called - Correctly handle nonexistent subscriptions when using
Braintree::Subscription.find