w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to get transaction ID in braintree sale

You're currently looking at the string representation of the object, not all attributes that the Transaction object has. Try dir(sale.transaction) to see all the attributes that the object has.

You're most likely looking for the sale.transaction.id or sale.transaction.order_id attribute (see docs), depending on whether you want the record/object's identifier or the order identifier from the customer's perspective.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.