itinerisltd/gf-loqate-bank-verification

使用Loqate银行验证API验证Gravity Forms的银行详细信息。

0.6.0 2023-02-15 10:27 UTC

This package is auto-updated.

Last update: 2024-09-15 13:56:47 UTC


README

CircleCI Packagist Version WordPress Plugin Rating PHP from Packagist WordPress Plugin: Tested WP Version Packagist Downloads WordPress Plugin Downloads GitHub License Hire Itineris Twitter Follow @itineris_ltd Twitter Follow @TangRufus

使用Loqate银行验证API验证Gravity Forms的银行详细信息。

目标

GF Loqate Bank Verification 使用 Gravity Forms 验证 Loqate银行验证API 的银行详细信息。

它验证银行详细信息(分行排序代码和银行账户号码)

  • 指示账户号码和排序代码是否有效
  • 指示账户是否可以接受直接借记。某些账户(例如储蓄账户)不接受直接借记

用法

从Loqate获取你的服务密钥

  1. 注册一个 Loqate 账户
  2. 添加 银行验证
  3. 获取 服务密钥

Loqate Bank Verification Server Key

插件设置

  1. 转到 表单 » 设置 » 银行验证
  2. 输入你的Loqate银行验证 服务密钥

如果服务密钥有效,将显示绿色的勾号 ✅。

Plugin Setting

表单字段设置

  1. 添加2个 单行文本 字段
  • 排序代码
  • 账户号码
  1. 将两个字段标记为 必填
  2. 将它们的 自定义CSS类 设置为
  • gflbv-sort-code-is-correct
  • gflbv-account-number-is-correct

Form Fields Setting - Sort Code Form Fields Setting - Account Number

最低要求

安装

Composer(推荐)

composer require itinerisltd/gf-loqate-bank-verification

wordpress.org(WP CLI)

wp plugin install gf-loqate-bank-verification

wordpress.org

https://wordpresstheme.cn/plugins/gf-loqate-bank-verification 下载,然后安装 gf-loqate-bank-verification.zip,如常规操作

从源代码构建(不推荐)

# Make sure you use the same PHP version as remote servers.
# Building inside docker images is recommanded.
php -v

# Checkout source code
git clone https://github.com/ItinerisLtd/gf-loqate-bank-verification.git
cd gf-loqate-bank-verification
git checkout <the-tag-or-the-branch-or-the-commit>

# Build the zip file
composer release:build

然后,安装 release/gf-loqate-bank-verification.zip,如常规操作

常见问题解答

它支持检查直接借记功能吗?

是的。某些账户(例如储蓄账户)不接受直接借记。为了验证银行详细信息既正确又具有直接借记功能,请设置字段的 自定义CSS类

  • gflbv-sort-code-is-correct gflbv-sort-code-direct-debit-capable
  • gflbv-account-number-is-correct gflbv-account-number-direct-debit-capable

它是否缓存Loqate API响应?

是的。Loqate API响应将缓存到 WordPress transients 中,持续一小时。

要清除缓存

wp transient delete --all

你会添加对旧PHP版本的支持吗?

绝不!此插件仅支持 活动支持的PHP版本

不要在 已停用仅安全修复 的PHP版本上使用它。

看起来很棒。我可以在哪里找到更多类似的好东西?

我可以在哪里给出⭐⭐⭐⭐⭐评论?

谢谢!很高兴你喜欢它。让我的老板知道有人在使用这个项目很重要。请考虑

测试

composer style:check

不接受没有测试的 pull requests!

反馈

请提供反馈! 我们希望这个库尽可能多地用于各种项目。请提交一个 issue 并指出你喜欢和不喜欢的功能,或者fork 项目并提出建议。 没有 issue 是太小的。

变更日志

请查看 CHANGELOG 以获取最近更改的更多信息。

安全

如果你发现任何与安全相关的问题,请通过电子邮件 dev@itineris.co.uk 而不是使用 issue tracker 来报告。

致谢

GF Loqate Bank Verification 是由 Itineris Limited 创建的 Tang Rufus 的项目。

贡献者完整列表可以在 这里 找到。

许可

GF Loqate Bank VerificationMIT License 下发布。