API to Braintree / Paypal

I know that Stripe has been covered before and also Square I believe.

It appears they have a GraphQL api or a drop in payment form. The best thing to do is follow their docs, give it a try and post back on here if you get stuck. It might be easier to start off with their drop in form.