Hi there,
You may want to start by getting familiar with the Pay API. Here’s a good tutorial on how to get started.