top | item 42610925

Show HN: Braintree OAuth Shared Vault React Example

1 points| perryraskin | 1 year ago |github.com

1 comment

order

perryraskin|1 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!