Buy Now Custom Amount is an add-on for the Payment Button for PayPal WordPress plugin (also known as WP PayPal or WordPress PayPal) that can be used to add a custom price field to your PayPal Buy Now type buttons. This lets buyers set the amount they will pay for your products. It can also be used to give a choice of pre-defined prices.

All you need to do is install this add-on and leave the amount parameter empty in the shortcode.
[wp_paypal button="buynow" name="My product" amount=""]
The default label “Enter an amount:” can be customized in the add-on settings (WP PayPal > Buy Now Amount).

You can also set a different label on a per button basis using the “bn_cust_amt_label” parameter in the shortcode.
[wp_paypal button="buynow" name="My product" amount="" bn_cust_amt_label="Amount:"]
Price Selection
Instead of an empty price field, you can also offer a pre-defined set of prices to choose from. When this is enabled the user will select a price to pay for it.

In order to create a select option you can use the “bnca_option_val” parameter in the shortcode.
[wp_paypal button="buynow" name="My product" bnca_option_val0="2.99" bnca_option_val1="3.99" bnca_option_val2="4.99"]
The display text for each option can be customized using the “bnca_option” parameter in the shortcode.
[wp_paypal button="buynow" name="My product" bn_cust_amt_label="Select an amount:" bnca_option_val0="2.99" bnca_option_val1="3.99" bnca_option_val2="4.99" bnca_option0="$2.99" bnca_option1="$3.99" bnca_option2="$4.99"]

Leave a Reply