On the Music Maker demo site I created a 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:
- firstname.lastname@example.org – 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.