Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] 仮売上(オーソリ)への対応 #3

Merged
merged 4 commits into from
Oct 14, 2016

Conversation

takayukii
Copy link
Contributor

@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フラグが扱われてなかったため扱うように変更
  • 実売上をあげるためのcaptureChargeメソッドを実装

captureフラグに関しては初期値はtrueで明示的にfalseにセットするとオーソリになるという形になっています。返金に関しては特に実装上は変更ありませんが、仮売上の場合は仮売上のキャンセル、実売上の実売上のキャンセルになっているかテストコードだけ入れています。

ご確認頂ければ幸いです。

node-spike-apiがあったおかげで実装がラクできました。公開ありがとうございます。

@ynakajima ynakajima merged commit dbe460d into ynakajima:develop Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants