How to include a paypal integration into a modx site based on the docs

Despite having a good grasp of PHP, I still don’t fully grasp how things like vendor-autoload and such work, especially in MODX

Given the php from this example on the paypal documentation how do I set up the required dependencies so that I can use use?

You might need to update the backend used in the example, it defaults to JS for some reason and there’s no way to set which it should be in the url