On the Music Maker demo site, I created an example Make a Payment page. This can be used to accept payments. You will need a PayPal account to use the code below.
Create a static page in WordPress and copy and paste the code below.
Edit the following items in the code below:
- yourname@email.com – Add your PayPal email address
- USD – Edit your currency. The default currency displayed is American dollars (USD). Example currencies: EUR, GBP, AUD. Here is a list of PayPal’s allowed currencies.
- – Edit the success URL. This is where the user will be redirected once a payment has been made. You may want to create a static page that says thank you for your payment.
- – This is where a user will be redirected to if they cancel a payment. You can send them back to your payment page, create a new static page with a cancel message, or your site homepage.
Please test the code on your site to make sure it works properly.
Need Help?
1. Try searching for answers. Try searching different terms if you can't find a answer. 2. Try troubleshooting if something is not working.
3. If you can't find answers, click to leave a comment. Provide website links and detailed information.