paypal_donations_purpose_html – Filters the the default hidden form input element for the purpose.Useful to change to the PayPal sandbox URL for testing the button. paypal_donations_url – Filters the URL the form points to.paypal_donations_amount = Filters the predefined amount before the button is generated.The following filters are available for hooking into the plugin: Or the following (if you wanted to use custom parameters): Use the following PHP code in your theme’s template file: You can optionally add the following arguments to the shortcode:įor example, The following shortcode will use a custom button image for the donation button: Using The Donations Widgets in Your Theme’s Template File Here is an example: Additional Shortcode Parameters If you want to make a specific button for a specific purpose you can add the following parameters in the shortcode. Which is the simplest option, and uses all default and optional settings. Insert the button in your pages or posts with the following shortcode: You can also use a shortcode to add the donations widget to a WordPress post or page. Reference to override the default reference.Purpose to override the default purpose.A descriptive text to appear above the button (it automatically adds around it on display.A title to appear on the Widget (defaults to Donate).You can enter a few optional settings for the widget. Go to Appearance -> Widgets menu from your admin dashboard to add a donations widget to your sidebar. This will redirect the visitors to a “Thank You” page after they make a donation. You can configure auto redirect in your PayPal account using this documentation. Set Checkout Language Enable this to override any potential PayPal language cookie the person to donate might have set in the browser, and control the language used for the first PayPal checkout page.Īuto Redirect from PayPal (After Donation Payment).Theme CSS Override: Center Button If the theme you are using do not center form buttons, but you want the Donate button centered, enable this options to center it.It’s recommended to load the statistics image, but for speed purposes it can be turned off with this option. Disable PayPal Statistics Enable this to not load the hidden image PayPal uses for statistics.By selecting your intended country when using the button with credit card symbols, they will be adjusted to the ones appropriate for the selected country. It let’s you localize the graphics of the button to use any of PayPal’s available buttons with translated button graphics. The last option in this section is language and country. Here you can select between PayPals three default buttons, or enter an URL to a custom button of your own to use instead. You can override this reference when inserting a specific button by using the reference=â€â€ argument in the shortcode. Here you can enter a default reference for the donation. If no purpose is defined, the user will get the possibility to enter a purpose on PayPal’s payment page. You can override this purpose when inserting a specific button by using the purpose=â€â€ argument in the shortcode. Here you can enter a default purpose for the donation. Use numbers only, like 9.95 or 20 without any currency symbol. Set a default amount to be used by the plugin. For example, a URL on your site that hosts a “Thank you for your donation†page. Return Page (optional)Īn URL where the user will be returned after completing the payment. My Account -> Profile -> My selling tools -> Selling online -> Custom payment pages. Note: Some PayPal accounts have this option located in this place instead: Login to PayPal -> Profile -> Selling Preferences -> Custom Payment Pages, to design your own page style. The custom page style that associated with the donation button when arriving at the PayPal payment page. Select the currency the donations will be made in. The donations will go directly to this PayPal account. Your PayPal Email or Secure Merchant Account ID. You need to enter some details for the donation and your PayPal account from the admin interface of the plugin: Go to the “paypal donations” menu link from the WordPress dashboard settings menu after you install and activate the plugin: Click Install Now and then activate the plugin.Browse for the plugin file (paypal-donations.zip).Go to the Add New plugins screen in your WordPress admin area. PayPal Donations Widget Plugin Installation
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |