I have a one-time purchase workflow almost ready, but I still need the final step: when the buyer clicks my PayPal payment button, they must be taken smoothly through checkout and, once the transaction is approved, automatically receive 10 invoices. The pages are being coded in Visual Studio Code, so please supply clean, well-commented code snippets or modules that drop straight into that environment. I do not mind whether you handle the PayPal interaction with their JavaScript SDK, REST API, or a lightweight serverless function—use whichever approach gets a fast, reliable redirect and confirms payment instantly. What matters is that the moment PayPal sends back its success response the customer is served those 10 invoices (PDF is fine) without extra clicks or waiting. If you prefer to generate them on the fly, great; if you want to host pre-rendered files and swap in transaction data, that works too—just make sure each file is unique to the purchase. Acceptance criteria • Clicking “Pay with PayPal” opens the secure PayPal checkout for a single, fixed-price purchase. • Successful payment triggers an automatic redirect or download that delivers exactly 10 invoices to the buyer. • Failed or cancelled payments never expose the invoice links. • All logic is clearly documented so I can tweak labels and price later in VS Code.