Dont know about Stripe but Braintree has a forwarding API where the card details go to Braintree then Braintree forwards that data to another payment gateway you have signed up for, the other payment gateway sends a token to braintree which forwards that token to you.
Then you have an option to make the payment on Braintree or the other payment gateway using that gateway's token.
Then you have an option to make the payment on Braintree or the other payment gateway using that gateway's token.