Deprecations
Deprecated in 2.6.0
Transaction.refund_id is now Transaction.refund_ids Subscription.next_bill_amount is now Subscription.next_billing_period_amount
Deprecated in 2.5.0
Validation Error Constants Renamed
Misspellings have been addressed in the error code constants.
| Scope | Before | After |
|---|---|---|
| ErrorCodes.Address | ExtedAddressIsTooLong | ExtendedAddressIsTooLong |
| ErrorCodes.Customer | IdIsInvaild | IdIsInvalid |
| ErrorCodes.Transaction | MerchantAccountNameIsInvalid | MerchantAccountIdIsInvalid |
| ErrorCodes.Transaction | MerchantAccountIsSusped | MerchantAccountIsSuspended |
Thirteen-Digit VISAs
VISA has converted all 13-digit cards to 16 digits, so we have removed the related test number. Our current list of test numbers can be found here.
Deprecated in 2.3.0
Simplified TR
Before:
# Creating tr_data for the Transparent Redirect form
braintree.Transaction.tr_data_for_sale({...}, ...)
braintree.Transaction.tr_data_for_credit({...}, ...)
braintree.CreditCard.tr_data_for_create({...}, ...)
braintree.CreditCard.tr_data_for_update({...}, ...)
braintree.Customer.tr_data_for_create({...}, ...)
braintree.Customer.tr_data_for_update({...}, ...)
# Url for posting Transparent Redirect form
braintree.CreditCard.transparent_redirect_create_url()
braintree.CreditCard.transparent_redirect_update_url()
braintree.Customer.transparent_redirect_create_url()
braintree.Customer.transparent_redirect_update_url()
braintree.Transaction.transparent_redirect_create_url()
# Confirming a Transparent Redirect request
braintree.CreditCard.confirm_transparent_redirect(query_string)
braintree.Customer.confirm_transparent_redirect(query_string)
braintree.Transaction.confirm_transparent_redirect(query_string)
After:
# Creating tr_data for the Transparent Redirect form
braintree.CreditCard.tr_data_for_create({...}, ...)
braintree.CreditCard.tr_data_for_update({...}, ...)
braintree.Customer.tr_data_for_create({...}, ...)
braintree.Customer.tr_data_for_update({...}, ...)
braintree.Transaction.tr_data_for_credit({...}, ...)
braintree.Transaction.tr_data_for_sale({...}, ...)
# Url for posting Transparent Redirect form of any type
braintree.TransparentRedirect.url()
# Confirming a Transparent Redirect request of any type
braintree.TransparentRedirect.confirm(query_string)