Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Change payment notification listener hook name

オープン
#323 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
payments

調査の方向性

woocomerce/payment-gateway/class-sv-wc-payment-gateway-hosted.php の 65~68 行付近にある action の登録から始めます。Gateway ID がどこで利用可能かを追跡し、現在の get_class() ベースの hook 名と比較します。hosted transaction のレスポンスが、namespaced gateway に対しても有効な action 名を使用するようになれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Bug Payment Gateway

SV_WC_Payment_Gateway_Hosted automatically registers an action to listen for hosted transaction responses based on the value of get_class() -- see it here.

This has been fine in the past, but as we begin to move towards using namespaces in more plugins, this will become a problem as get_class() will result in the fully-qualified class name, including backslashes, therefore creating an action like woocommerce_api_skyverge\woocommerce\plugin_name\gateway which is pretty nasty-looking and won't work.

Instead, perhaps we should use the Gateway ID in the action rather than the class name.

主要言語
PHP
スター
146
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godaddy-wordpress/wc-plugin-framework のほかの issue

godaddy-wordpress/wc-plugin-framework の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。