這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

ABE – CAF Donate

描述

This is a really simple plugin which makes it easy to generate URLs for the CAF donation system.

For example, you might have a donate button on your site that lets users select from pre-defined amounts – £5, £10, £25 etc. This plugin lets you generate a URL for each amount so you can direct your user to a CAF form pre-filled with the correct parameters.

Setup

  1. Install and activate the plugin.
  2. Go to Settings > CAF Donations and enter your charity’s donation URL in the box. This normally looks like this: https://cafdonate.cafonline.org/10805
  3. Now you can generate donation URLs in your code using the abe_caf_get_donation_link() function! See below.

Example usage

Once you’ve set up the plugin and entered your charity’s CAF url, you can call the abe_caf_get_donation_link function like so:

abecaf_get_donation_link( $amount, $regular );

Generate the URL to make a one-off £10 donation:

abecaf_get_donation_link( 10, false );

// "https://cafdonate.cafonline.org/10742?caf_donationamount=10&caf_paymenttype=single"

Generate the URL to make a recurring £25 donation:

abecaf_get_donation_link( 25, true );

// "https://cafdonate.cafonline.org/10742?caf_donationamount=25&caf_paymenttype=regular"

License

Copyright 2020 A Big Egg (David Hewitson Ltd)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

評價

There are no reviews for this plugin.

貢獻者及開發者

“ABE – CAF Donate” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 ABE – CAF Donate 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄