Pabbly is an Indian Software to manage and automate stuff. Its one product called Pabbly subscription helps users to make payment pages and accept payments.
I have created a simple code which can help you to create plans and handle payments.
I have created a github gist for you.
Please look at it.