Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@ynakajima さま
SPIKEが仮売上に対応しているようです。
https://support.spike.cc/hc/ja/articles/204911604-%E4%BB%AE%E5%A3%B2%E4%B8%8A%E3%81%A8%E3%81%AF%E3%81%AA%E3%82%93%E3%81%A7%E3%81%99%E3%81%8B-
以下の変更を行いました。
captureフラグに関しては初期値はtrueで明示的にfalseにセットするとオーソリになるという形になっています。返金に関しては特に実装上は変更ありませんが、仮売上の場合は仮売上のキャンセル、実売上の実売上のキャンセルになっているかテストコードだけ入れています。
ご確認頂ければ幸いです。
node-spike-apiがあったおかげで実装がラクできました。公開ありがとうございます。