So depending on what you want to do here. So I’m going to just type this as a “food for thought” rather then a solution.
Set the URL from webhooks (which fires if someone buys something) to a STRAPI endpoint of your choice. Creating your OWN endpoint is what is in the link I gave above.
Then do the logic in strapi on what to do when it’s purchased what data to store etc.