Payment Button for PayPal WordPress plugin (also known as WP PayPal or WordPress PayPal) can be integrated with the Contact Form 7 plugin to accept PayPal payments after a form submission.
How Contact Form 7 Integration with WP PayPal Works
When a Contact Form 7 form is submitted, the PayPal button configured for this form will appear. Buyers will be able to click on this button to make payments. Note: The page cannot contain multiple forms if you are planning to integrate with a WP PayPal payment button.
No payment button is shown when the form simply renders on the front end.
How to Enable Contact Form 7 Integration
Edit the page where you already have a contact form 7 type form or create a new one and insert a form into it.
Add a new shortcode block right after the form and insert these two shortcode into it.
[wp_paypal_cf7_button][wp_paypal button="buynow" name="Contact Form 1 Product" amount="1.00"][/wp_paypal_cf7_button]
Here, “wp_paypal_cf7_button” is the enclosing shortcode required for this integration and the self-closing “wp_paypal” shortcode is what renders the button. If you are not sure what parameters are supported with the “wp_paypal” shortcode please check the PayPal Website Payments Standard plugin documentation.
The “wp_paypal_cf7_button” shortcode supports the following optional parameters:
A custom text message that can be shown right before the PayPal button.
[wp_paypal_cf7_button message="Please click on the button below to make the payment:"][wp_paypal button="buynow" name="Contact Form 1 Product" amount="1.00"][/wp_paypal_cf7_button]
WP PayPal Contact Form 7 Integration Settings
The settings page of the add-on allows you to choose the type of event that should enable the payment button display.
This is exactly what I was looking for. Can I customize the PayPal button?
Noor Alam says
@Robert, Yes, you can use a custom button image.