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

Allow to mark API execution as failed (and don't charge them)

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
api, backend, payments

調査の方向性

まず、レスポンスヘッダー、--explicit-charge オプション、支払いトークン、spent テーブルがどのように処理されているかを追跡します。既存の成功パスと失敗パスを確認し、その後、実行エラー用の個別のテーブルを定義して、記載されている各 X-Charge とステータスコードのケースでトークンが期待される状態になることを確認します。

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

説明

enhancement

Allow services to signal that API execution has failed, which should free up the payment token and allow it to be used for another API call.

  • If the X-Charge response header is set to yes, consider the request a success and mark the payment token as spent. If the X-Charge header is set to any other value (normally no), consider the request a failure and mark the payment token as usable.

  • If the X-Charge response header is not specified,

    • If the --explicit-charge config option is set, consider the request a failure.

    • If the --explicit-charge config option is not set, consider the request a success if the status code is 2xx or 3xx, otherwise consider it a failure.

Freeing up the payment token means removing it from the spent table, which means we should log the execution error to a separate (new) table.

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

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ElementsProject/paypercall のほかの issue

ElementsProject/paypercall の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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