EDIT: THIS ARTICLE HAS BEEN UPDATED. SEE BELOW.
Christicles! Wrestled with Braintree for Android and Node.js for a bit. Their site's steps got me a bit confused, but I was finally able to get payments working. Hopefully this flow diagram can be helpful to people out there.
Christicles! Wrestled with Braintree for Android and Node.js for a bit. Their site's steps got me a bit confused, but I was finally able to get payments working. Hopefully this flow diagram can be helpful to people out there.
Disclaimer: this is not my final process flow by any means, but it is working for me so far.
Edit: The above diagram would work, but it will create a sale automatically with the customer's customer id (if they have it) instead of prompting for what payment method to use. Below is an updated diagram that I can say confidently works as braintree intended.
With my project, I'm just using the left two paths to make payments. I'm also storing the user's customer id to the user's mongodb document so that the next time they make a payment it will just go down the middle path.