Would it be possible to integrate with this open source platform?
FOSSBilling is a free open source, billing and client management solution. Whatever the size of your online services business, whether a startup or established, FOSSBilling can help you to automate your invoicing, incoming payments, and client management and communication.
https://github.com/FOSSBilling/FOSSBilling/issues/1362