HT PAY.JP for kintone

説明

このプラグインには Contact Form 7 と Form data to kintone が必要です。
このプラグインは PAY.JP を使用して決済を行い、kintone にデータを送信できます。

機能

  • WordPress のフォームで PAY.JP を使った決済を受け付け
  • 決済データを kintone に自動送信
  • 3D セキュア認証に対応(2025年2月から必須)
  • 決済時に PAY.JP の顧客を作成(オプション)
  • フォームごとのテスト/本番モードの切り替え
  • 決済ダイアログの多言語対応(日本語/英語)

利用可能なメールタグ

以下のメールタグは CF7 のメールテンプレートや kintone のフィールドマッピングで使用できます:

  • [payjp-charged-id] – PAY.JP の決済ID
  • [payjp-charged-captured-at] – 決済確定日時
  • [payjp-customer-id] – PAY.JP の顧客ID(顧客作成が有効な場合)

kintone とは?

サイボウズが提供する、プログラミング不要で業務アプリケーションを作成できるクラウドサービスです。

アプリやワークスペースを通じてチームメンバーやパートナーと協力できます。

PAY.JP とは?

PAY.JPは日本で決済APIを提供しています。
https://pay.jp/

インストール

  1. ht-payjp-for-kintone フォルダ全体を /wp-content/plugins/ ディレクトリにアップロードします。
  2. WordPress の「プラグイン」メニューからプラグインを有効化します
  3. お問い合わせ > HT PAY.JP for kintone に移動して、PAY.JP の API キーを設定します
  4. Contact Form 7 のフォームを編集し、PAY.JP タブで設定を行います
  5. フォームにショートコード [ht_payjp_for_kintone] を追加します

FAQ

どのプラグインが必要ですか?

このプラグインには Contact Form 7 が必要です。
決済データを kintone に送信したい場合は、Form data to kintone もインストールしてください。

PAY.JP の API キーを取得するにはどうすればいいですか?

https://pay.jp/ でアカウントを作成し、ダッシュボードからテスト/本番の API キーを取得してください。

3D セキュアに対応していますか?

はい、3D セキュアに対応しています。PAY.JP では2025年2月から3D セキュアが必須となります。

Pay.jp の Customer を作成することはできますか?

はい、PAY.JP タブの設定で顧客作成を有効にできます。有効にすると、決済時に PAY.JP の Customer が作成され、[payjp-customer-id] メールタグを使用できます。

テストモードと本番モードを切り替えるにはどうすればいいですか?

各 Contact Form 7 フォームの PAY.JP タブに「本番モードを有効にする」チェックボックスがあります。テストモードを使用するにはチェックを外してください。

評価

2019年12月23日
NPOへの寄付のために、WordPress・PAY.JP・Kintoneを連携させようとしていて情報を探していたら、まさに求めていたプラグインに出会えました。 解説のYouTubeがとても丁寧で迷うことなく設定できました。大変素晴らしいプラグインだと思います。ありがとうございます!
2件のレビューをすべて表示

貢献者と開発者

HT PAY.JP for kintone はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“HT PAY.JP for kintone” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログを RSS で購読してみてください。

変更履歴

1.11.2( 2026-09-17 )

  • [Fixed] Submitting a Contact Form 7 form that had never had its PAY.JP settings saved ended in a PHP fatal error (TypeError: Cannot access offset of type string on string) on PHP 8. get_post_meta() returns an empty string for a form with no _ht_payjpforkintone_setting_data meta, and that string was accessed as an array. Because Contact Form 7 submits through the REST API, the broken response left the front-end spinner rotating forever and the form could not be submitted at all. The setting is now always read through the new ht_payjp_for_kintone_get_setting_data() helper, which guarantees an array, and every caller checks the key with isset() before comparing

1.11.1( 2026-09-04 )

  • [Changed] Bumped “Tested up to” to 7.1. Verified on WordPress 7.1 / PHP 8.3 that the Japanese error messages, the per-form language setting (PAY.JP Locale header and checkout.js data-lang), the translated admin screens and a successful test-card charge all work, with no PHP notices

1.11.0( 2026-09-04 )

  • [Added] Japanese translation files (languages/ht-pay-jp-for-kintone-ja.po / .mo). Error messages such as “Failed to get credit card information”, shown when the form is submitted without entering card information, are now displayed in Japanese on Japanese-locale sites
  • [Added] PAY.JP API requests now send the Locale header, so PAY.JP-side error messages are returned in Japanese. The language follows the existing per-form “payment dialog language” setting (Japanese / English), so it is not hard-coded
  • [Added] New filter hook ht_payjp_for_kintone_error_message to customize the user-facing payment error message
  • Parameters: $message (string), $error_type (string: no_token / card_error / invalid_request / api_error), $exception (\Exception|null), $contact_form (WPCF7_ContactForm)
  • [Fixed] Payjp\Error\Authentication, Payjp\Error\ApiConnection and Payjp\Error\Api were not caught, so an invalid API key or a network failure ended the form submission with a PHP fatal error. They are now caught and shown to the visitor as a generic message, with the details sent to the admin by e-mail
  • [Fixed] The Text Domain plugin header did not match the text domain used in the code, so no translation could ever be loaded. Both are now unified to ht-pay-jp-for-kintone
  • [Fixed] Moved load_plugin_textdomain() to the init hook to avoid the “Translation loading triggered too early” notice on WordPress 6.7+

1.10.0( 2026-05-16 )

  • [Added] New action hook ht_payjp_for_kintone_before_charge fired just before PAY.JP charge. Allows site-specific validation (e.g., member matching, fraud check) and aborting the payment by reference parameters.
  • Parameters: $posted_data (array), $amount (int), $token (string), $abort_payment (bool, by-ref), $abort_reason (string, by-ref), $submission (WPCF7_Submission), $contact_form (WPCF7_ContactForm)
  • Set $abort_payment = true in your callback to cancel the charge; optionally set $abort_reason for the user-facing message

1.9.0( 2026-04-27 )

  • [Security] Masked Test/Live Secret Keys on the settings page (input type=password with empty value; only the last 4 characters shown as a “Current” hint)
  • [Security] Suppressed browser password manager prompts (autocomplete=off plus data-1p-ignore / data-lpignore / data-bwignore)
  • [Security] Validated PAY.JP key format prefixes (sk_test_ / sk_live_ / pk_test_ / pk_live_) before saving; invalid values are rejected with an error message
  • [Security] Set autoload=no on stored API key options so secret keys are not loaded into memory on every request
  • [Fixed] Live Secret Key was not saved when Live Public Key was empty due to a field check looking at the wrong POST key

1.8.1( 2026-02-01 )

  • readme.txt に機能セクションと利用可能なメールタグのドキュメントを追加
  • FAQセクションを実際の質問と回答で改善
  • 変更履歴の日付を Git タグの日付に修正

1.8.0( 2026-01-31 )

  • 顧客作成機能を追加 – 決済時にオプションで PAY.JP の Customer を作成
  • CF7 メールと kintone 用の [payjp-customer-id] メールタグを追加
  • ht_payjp_for_kintone_after_customer_create アクションフックを追加
  • ht_payjp_for_kintone_after_charge アクションフックを追加

1.7.1( 2025-03-30 )

  • 1.7.0 のプラグイン zip ファイルが作成されず更新できなかったため、1.7.1 にバージョンアップ

1.7.0( 2025-03-30 )

  • 3D セキュアへの強制移行

1.6.1( 2024-11-24 )

  • 3D セキュアの設定ガイドリンクを追加

1.6.0( 2024-11-23 )

  • 3D セキュアの切り替え機能を追加
  • 3D セキュアのプレリリース版に対応(2025年4月30日まで利用可能)
  • 3D セキュア有効化に対応(2025年2月4日から利用可能)

1.5.0( 2024-11-17 )

  • payjp/payjp-php のバージョンを 1.0.5 から 1.7.0 に更新
  • \Payjp\Error\Card のエラーハンドリングを追加

1.4.1( 2023-11-05 )

  • [修正] ‘description’ 設定が未指定の場合の処理

1.4.0( 2023-11-03 )

  • 決済データへの説明の追加に対応

1.3.6( 2023-05-26 )

  • wpcf7_add_form_tag 関数の設定が正しくない問題を修正。

1.3.5

リリース日: 2022年4月8日

  • [更新] バージョン番号を更新。

1.3.4

リリース日: 2022年4月8日

  • [修正] テキストドメインを修正。

1.3.3

リリース日: 2022年3月30日

  • [修正] payjp-charged-captured-at のバグを修正。

1.3.2

リリース日: 2022年3月24日

  • [更新] バージョン番号を更新。

1.3.1

リリース日: 2022年3月24日

  • [追加] Pay.jp の決済日時を kintone に保存する機能に対応。

1.3.0

リリース日: 2022年2月26日

  • [追加] Pay.jp 決済ダイアログの言語設定に対応。

1.2.5

リリース日: 2021年6月8日

  • [追加] Pay.jp の決済処理日を取得する機能に対応。
  • [追加] 決済金額からカンマや円などの不要な文字列を削除。

1.2.4

  • [修正] 金額フォームの要素としてラジオボタンを使用する際の問題を修正。

1.2.3

  • [削除] Pro版のWebhook待機処理を削除

1.2.2

  • [削除] Pro版の「set_update_key_for_kintone」フィルターフックを削除

1.2.1

  • リリースアセットからの更新に変更。

1.2.0

  • PRO版の自動更新機能を追加。

1.1.0

  • Contact Form 7 でバリデーションエラーがあっても Pay.jp に決済が行われてしまうバグを修正。

1.0.8

  • Undefined index: kintone-enabled を修正。

1.0.7

  • 全てのクラス名を変更。

1.0.6

  • 表示タブの順序を変更。

1.0.5

  • HT PAY.JP for kintone が無効の場合でもバリデーションチェックが実行される問題を修正。

1.0.4

  • readme.txt に YouTube を追加。

1.0.3

  • プラグインのバナーとアイコンを追加。

1.0.2

  • readme.txt を変更。

1.0.1

  • 誤字を修正。

1.0.0

  • 初回リリース