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

[Bug] api_*_version override has no effect on PAL-based service URLs

オープン 初心者向け
#474 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@cobanfurkanx がすでに取り組んでいます。

2026年10月6日 から。

  • #489 @gourabsingha1 による — オープン
  • #511 @cobanfurkanx による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
api

調査の方向性

AdyenClient.set_url_version から始めて、サービスエンドポイントの URL にバージョン検索がどのように適用されるかを確認します。記載されている PAL ベースのエンドポイントと既存の URL バージョン動作を確認し、各 api*_version のオーバーライドによって対応するパスが変更され、バージョンが設定されていない場合は無関係な URL が変更されないことを検証します。

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

説明

Bug do not stale

Context

AdyenClient._set_url_version uses the following regex to replace the API version in endpoint URLs:

endpoint = re.sub(r"\.com/v\d{1,2}", f".com/{new_version}", endpoint)

This only matches URLs where the version segment appears immediately after the domain, e.g.:

  • checkout-test.adyen.com/v71 ✓
  • management-test.adyen.com/v3 ✓

It does not match PAL-based URLs where the version is deeper in the path, e.g.:

  • pal-test.adyen.com/pal/servlet/Recurring/v68 ✗
  • pal-test.adyen.com/pal/servlet/Payment/v68 ✗
  • pal-test.adyen.com/pal/servlet/BinLookup/v54 ✗

Proposed Change

Update the regex to match a version segment anywhere in the path:

endpoint = re.sub(r"/v\d+(?=/|$)", f"/{new_version}", endpoint)

Also add a None guard to avoid corrupting unrelated service URLs when only one api_*_version is set:

version = version_lookup[service]
if version is None:
    return endpoint

Benefit

Setting api_recurring_version, api_payment_version, api_payout_version, api_bin_lookup_version, or api_stored_value_version on AdyenClient currently has no effect. The fix makes version overrides work consistently across all services.

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

環境構築

はじめの一歩

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

Adyen/adyen-python-api-library のほかの issue

Adyen/adyen-python-api-library の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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