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

FAC Hosted Page Button

外掛說明

Custom wordpress plugin to facilitate First Atlantic Commerce hosted page payments

Features

  • Customizable template files using theme. Just copy over to theme folder in sub directory called ‘fac-hosted-page-button’
    • part-page.error.php
    • part-page.success.php
    • part-payment.button.error.php
    • part-payment.button.php
  • Custom actions hooks
    • fac-hosted-page_button_after_page_error
    • fac-hosted-page_button_after_page_success
    • fac-hosted-page_button_before_payment_button
    • fac-hosted-page_button_after_payment_button
    • fac-hosted-page_button_before_payment_button_error
    • fac-hosted-page_button_after_payment_button_error
  • Editable Custom Page via Page Section
    • fac-hosted-page_button (slug)
  • Shortcodes for response page and payment link button
    • [fac-hosted-page_button_payment_button amount="" currency="" transaction_id="" text=""]
    • [fac-hosted-page_button_page [page="" message="" transaction_id="" code=""]]
  • Helper functions
    • fac_hosted_page_button_display_payment_button($attr)(Displays the button by calling the short code)
  • Define overriding constants

Usage

Either embed the payment button shortcode into a page/post or call the helper function with parameters similar to the template code.

E.g.

Payment Link Button

`

[fac-hosted-page_button_payment_button amount=”20.23″ currency=”BBD” transaction_id=”A-9191″ text=”Pay Now”]
`

Custom Results Pages

`

[fac-hosted-page_button_page [“page”=”path/to/template.php” message=”Response MEssage” transaction_id=”A-9191″ code=”200″]]
fac_hosted_page_button_display_payment_button([‘amount’=>200.34,’currency’=>’JMD’,….])
`

Screenshots

  1. Use shortcode in page
  2. Payment Button
  3. Default Thank You Page
  4. Successful Thank You Page

Changelog

1.0.0-beta

  • Plugin released.

1.0.1-beta

  • Dependency security updates

Notes

  • You can optionally add hooks for executing additional events on button template and thank you page template
    • do_action('fac-hosted-page_button_after_page_error', string $transaction_id );
    • do_action('fac-hosted-page_button_after_page_success', string $transaction_id );
  • A default results page and url is created on install
  • Recommend flushing permalinks settings to enable plugin’s return response url directives
  • Currently, the plugin supports First Atlantic Commerce’s 3DS initiatives by default.

螢幕擷圖

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈FAC Hosted Page Button〉的開發相關工作。

參與者

將〈FAC Hosted Page Button〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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