Several payment gateways offer a fully hosted payment form or cart. It can be as simple as "fill in the form to set a price, and you get a magic link you can put on your website." You need no server-side code because the customer transitions to the gateway's site to pay.