The Shared Vault scope of OAuth allows you, as the platform owner, to store all credit cards and customer data in your own Braintree Vault. You can then use that data to create a transaction for a connected merchant. This Shared Vault model delivers a network benefit to all your connected merchants, helping boost checkout conversion.
shared_vault_transactions right allows you to use tokens and IDs from your own Vault when creating a transaction for a connected merchant. The full list of parameters that can be used when creating a Shared Vault transaction can be found in the transaction reference.
BraintreeGateway gateway = new BraintreeGateway(useAccessTokenForMerchant); TransactionRequest request = new TransactionRequest() .amount(new BigDecimal("100.00")) .sharedPaymentMethodToken("yourPaymentMethodToken"); Result<Transaction> result = gateway.transaction().sale(request); String transactionId = result.getTarget().getId();
Payment methods used to create Shared Vault transactions can never be updated by the connected merchant, and they can't be stored in the connected merchant’s Vault or cloned via Transaction: Clone Transaction.
You cannot create a Shared Vault transaction using a granted nonce or a payment method created from a granted nonce.