前言介紹
- 這款 WordPress 外掛「Simple Stripe Payment」是 2019-01-03 上架。 目前已經下架不再更新,不建議安裝使用。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2021-03-07,距離現在已有 1521 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 尚未有人給過這款外掛評分。
- 論壇上目前有 1 個提問,問題解答率 0%
外掛協作開發者
外掛標籤
block | stripe | widget | shortcode |
內容簡介
將 Stripe 結帳整合到 WordPress
透過短碼將 Stripe 結帳按鈕貼到單篇文章和單頁面上
透過區塊將 Stripe 結帳按鈕貼到單篇文章和單頁面上
透過小工具將 Stripe 結帳按鈕貼到存檔頁和首頁上
在不轉換畫面的情況下完成付款
可以在付款前和付款後指定文本或 HTML
可以移除付款後的 HTML 元素
為立即帳單處理事宜準備了過濾器勾子(Filter Hook)
教學影片
使用過濾器勾子的範例
顯示按鈕
echo do_shortcode('[simplestripepayment amount=100 currency="USD" name="Test" description="Test Charge" email="[email protected]" payname="testpay"]';
短碼
屬性: 描述
amount: 價格
name: 公司或網站名稱
description: 購買之產品或服務之說明
currency: 貨幣代碼
label: 藍色按鈕所顯示的文字
before: 付款前顯示的內容
after: 付款後顯示的內容
remove: 付款後移除的 HTML 元素
remove2: 付款後移除的 HTML 元素
email: 電子郵件
payname: 此筆付款的唯一名稱
過濾器勾子和函數
/**==================================================
* Simple Stripe Payment 的過濾器
*
* @param string $token 付款資訊(以 JSON 格式)
* @param string $email 電子郵件
* @param int $amount 價格
* @param string $currency 貨幣代碼
* @param string $name 公司或網站名稱
* @param string $description 購買之產品或服務之說明
* @param string $payname 此筆付款的唯一名稱
*/
function stripe_charge( $token, $email, $amount, $currency, $name, $description, $payname ) {
/* 記得寫下當帳單成功時需要執行的流程 */
if ( 'testpay' === $payname ) {
update_option( 'testpay_stripe', 'stripe' . $payname . $amount . $currency );
}
}
add_filter( 'simple_stripe_payment_charge', 'stripe_charge', 10, 7 );
過濾器勾子
變數: 描述:來源
$token: JSON 格式的付款資訊:Stripe 值
$email: 電子郵件:Simple Stripe Payment 值
$amount: 價格:Simple Stripe Payment 值
$currency: 貨幣代碼:Simple Stripe Payment 值
$name: 公司或網站名稱:Simple Stripe Payment 值
$description: 購買之產品或服務之說明:Simple Stripe Payment 值
$payname: 此筆付款的唯一名稱:Simple Stripe Payment 值
原文外掛簡介
Integrates Stripe checkout into WordPress.
Paste Stripe checkout button to Single Post and Single Page by short code.
Paste Stripe checkout button to Single Post and Single Page by block.
Paste Stripe checkout button to Archive Page and Home Page by widget.
Complete payment without screen transition.
Can specify the text or html before payment and after payment.
Can remove html elements to after payment.
Prepared a filter hook for processing immediately after billing.
Tutorial Video
Sample of how to use the filter hook
Show button
echo do_shortcode('[simplestripepayment amount=100 currency="USD" name="Test" description="Test Charge" email="[email protected]" payname="testpay"]';
shortcode
Attribute : Description
amount : Price
name : The name of your company or website
description :A description of the product or service being purchased
currency : Currency Codes
label : The text to be shown on the blue button
before : Display before payment
after : Display after payment
remove : HTML elements to remove after payment
remove2 : HTML elements to remove after payment
email : Email
payname : Unique name for this payment
Filter hook & Function
/** ==================================================
* Filter of Simple Stripe Payment
*
* @param string $token token.
* @param string $email email.
* @param int $amount amount.
* @param string $currency currency.
* @param string $name name.
* @param string $description description.
* @param string $payname payname.
*/
function stripe_charge( $token, $email, $amount, $currency, $name, $description, $payname ) {
/* Please write the process to be done when billing succeeds. */
if ( 'testpay' === $payname ) {
update_option( 'testpay_stripe', 'stripe' . $payname . $amount . $currency );
}
}
add_filter( 'simple_stripe_payment_charge', 'stripe_charge', 10, 7 );
Filter hook
Variable : Description : From
$token : Payment information by JSON : Value of Stripe
$email : Email : Value of Simple Stripe Payment
$amount : Price : Value of Simple Stripe Payment
$currency : Currency Codes : Value of Simple Stripe Payment
$name : The name of your company or website : Value of Simple Stripe Payment
$description : A description of the product or service being purchased : Value of Simple Stripe Payment
$payname : Unique name for this payment : Value of Simple Stripe Payment
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple Stripe Payment」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.10 | 1.11 | 1.12 | 1.13 | 1.14 | 1.15 | 1.16 | 1.17 | 1.18 | 1.19 | trunk |
延伸相關外掛(你可能也想知道)
Widgets for Google Reviews 》onal version of our review software, you can:, , , Display unlimited Google Reviews, Customize widget design and behavior, Respond to reviews direc...。
Blocksy Companion 》Blocksy Companion 是一個外掛,將 Blocksy 主題轉化為強大的瑞士軍刀工具。, 只有在安裝並啟用 Blocksy 主題時,它才會運行並添加增強功能。, 最小需求, , W...。
Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
Widget Importer & Exporter 》Widget Importer & Exporter 是一個有用的外掛,可將小工具從一個WordPress站點移動到另一個站點,備份小工具,並供主題開發人員為用戶提供範例小工具。...。
Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
Widget Logic 》此外掛可在每個小工具中新增一個名為 "Widget logic" 的額外控制欄,讓您控制這個小工具會出現在哪些頁面上。文字欄位允許您使用 WP 的Conditional Tags或任...。
Social Media Share Buttons & Social Sharing Icons 》在你的免費測試網站上試試看:點擊此處 => https://tastewp.com/plugins/ultimate-social-media-icons, (這個技巧適用於所有外掛 – 只需在外掛的 WP 存儲庫 ...。
Fixed Widget and Sticky Elements for WordPress 》使用 Fixed Widget 外掛可以創建黏貼式的小部件、區塊和其他元素,當用戶向上或向下滾動頁面時,它們會保持在可見的屏幕區域內。, 相較於非固定小工具,黏貼...。
PHP Code Widget 》普通的文字小工具允許您插入任意文字和/或 HTML 代碼。這個外掛程式也允許這樣做,但還會解析文本小工具中的任何 PHP 代碼並執行它。, 這可以讓您更輕鬆地遷...。
Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
Custom Sidebars – Dynamic Sidebar Classic Widget Area Manager 》使用 Custom Sidebars,一個靈活的小工具管理器,在您的網站上管理和替換側邊欄和其他小工具區。, 製作自訂側邊欄配置,能夠選擇在您網站的每個頁面或文章上...。
Recent Posts Widget Extended 》外掛描述, 此外掛可以啟用自定義、靈活且進階的最新文章功能,您可以透過簡碼或小工具來顯示它。您可以顯示具有縮略圖、摘要和發佈日期的最新文章清單,並且...。
Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。