Linux 软件免费装
Banner图

TjingTjing – Form Payments with Payfast

开发者 tjingtjing
更新时间 2026年11月7日 16:09
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

donations payments ninja forms payfast south africa

下载

0.3.3 0.3.2

详情介绍:

TjingTjing adds Payfast checkout to Ninja Forms. Your visitor fills in the form, pays securely on Payfast, and the payment is verified and recorded against their submission. TjingTjing is an independent plugin. It is not affiliated with or endorsed by Payfast or Ninja Forms. Payfast and Ninja Forms are trademarks of their owners.

安装:

  1. Install and activate TjingTjing, and make sure Ninja Forms is active.
  2. Go to TjingTjing > Settings and enter your Payfast Merchant ID and Key (and passphrase, if you set one in Payfast). Leave Sandbox on while testing.
  3. Edit a form in Ninja Forms. Under Emails & Actions, add "TjingTjing (Payfast)".
  4. Set the amount (for example {field:amount} or {calc:total}), what they are paying for, and the buyer's name and email fields.
  5. Optional: add a Hidden field with the key payment_status to see the status in Ninja Forms' Submissions screen and exports.

屏幕截图:

  • The Payments screen, with refunds.
  • Settings: Payfast credentials and Sandbox mode.

常见问题:

Do I need a Payfast account?

Yes. Payfast holds and pays out the money. TjingTjing connects your form to it. For testing, create a free sandbox account at sandbox.payfast.co.za.

Why does Payfast say I can't pay myself?

Payfast refuses a payment when the buyer's email address is the same as the merchant account's. When you test your own form, use a different email address.

How do refunds work?

Refund the money in your Payfast dashboard. Then open TjingTjing > Payments and click Record refund on that payment, for the full amount or part of it. Payfast does not tell your site about refunds, so this keeps your records and the form submission up to date.

Do I need to set a notify URL in Payfast?

No. TjingTjing sends it with every payment.

Payments stay "Pending"

A payment stays Pending if the buyer never finishes paying. If paid payments stay Pending, turn on the debug log under TjingTjing > Settings and check your PHP error log. If it says the source IP failed and your site uses Cloudflare or another proxy, set "Site behind a proxy".

What happens to my data if I delete the plugin?

Settings are removed. The payments table is kept, because it is a financial record. To remove it as well, add define( 'TJINGTJING_REMOVE_ALL_DATA', true ); to wp-config.php before deleting the plugin.

For developers

tjingtjing_payment_complete( $payment, $itn ) fires once per verified payment. tjingtjing_payment_status_changed( $status, $payment, $itn ) fires on every verified update. tjingtjing_payment_refunded( $payment, $refund ) fires when a refund is recorded. tjingtjing_credentials filters the merchant credentials per payment.

更新日志:

0.3.3 0.3.2 0.3.1 0.3.0 0.2.1 0.2.0 0.1.0