PayPal Integration

I would like to implement either PayPal or stripe to my rocket chat server. I would like to offer a premium option to my users where users with certain permissions can create channels and private groups after making a payment. Has anyone done something like that before? if so, what is the best way to implement this?