braintree - Is Braintree_Customer::create() returns credit card object on success -


is braintree_customer::create() returns credit card object in braintree on success?

it returns on failure in verification object.

i want know best practice access credit card object if it's present in response in case of success , failure of braintree_customer::create().

seems can access newly created customer's payment method within successful result object (python);

my customer create call:

result = braintree.customer.create({     'first_name': 'john',     'last_name': 'smith',     'company': 'internet',     'email': 'john@example.com',     'payment_method_nonce':'fake-valid-nonce' }) 

so

result.customer.payment_methods  

will return array containing newly created payment method @ index 0, braintree's credit card result object, contains of appropriate attributes credit card object.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -