Does Membership redirect to the payment gateway, or process the transaction on site?

Hello, WPMUDev;

I'm looking at using Membership to set up access on a site, but I need to know if it redirects to the payment gateway or if it handles the payments on-site. I couldn't find any information about that online. Thanks!