Last time I wrote an ECommerce Moodle plugin, I used Omnipay https://omnipay.thephpleague.com/ which supports over 130 different payment gateways - see https://omnipay.thephpleague.com/gateways/community/ and it is quite easy to extend using their API.
General developer forum
Payment gateway for Moodle
This discussion has been locked so you can no longer reply to it.