Yes, Magento 2's REST API is versatile and can be used to integrate a variety of payment gateways. The principles and steps are similar, although specific configurations will vary based on the payment provider.