Settings

Theme

Show HN: Braintree OAuth Shared Vault React Example

github.com

1 points by perryraskin a year ago · 2 comments

Reader

perryraskinOP a year ago

Since I could not find any examples of this online, and had to figure it out, I wanted to share it online.

This React TypeScript project demonstrates a Braintree OAuth integration flow between two merchants. It showcases how Merchant A can obtain authorization from Merchant B to perform actions on their behalf using Braintree's OAuth and transaction APIs.

In this example, Merchant A provides this application to Merchant B, allowing them to:

Grant OAuth permissions to Merchant A

Allow access to customer payment methods

Enable facilitated transactions

The integration uses two main Braintree APIs:

Access Token API - For OAuth authentication

Transaction API - For creating Shared Vault Transactions

FEATURES

OAuth connection flow

Token management and storage

Shared vault transaction processing

Real-time transaction status updates

Error handling and user feedback

Hope this is helpful to someone!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection