カテゴリー : 2013年 8月

[Stripe] Refund のキャンセル/取り消し処理について

Stripeで、Refund のキャンセル/取り消しをする方法をメモ。

Refunds can’t be cancelled. If you’d like to charge your customer for the amount that you have refunded, you can create a new charge for your customer.
If the card that you have refunded is expired or cancelled, the customer’s new card will be credited with the refund. In the rare case that the customer doesn’t have a new card, the bank will usually send the refund to the customer’s bank account.
In the worst case, the bank won’t know what to do, and will send the refund back to us, at which point we’ll contact you via email to ask how you would like to handle the refund.

結論から書くと、Refund のキャンセル処理はできないらしい。

代わりに、Stripeの管理画面から「Create Payment」経由で、新たに Payment を作成することができるので、これを使って、Refundした金額を新たに請求すれば良さそうだ。

参考情報

Can I cancel a refund? : Stripe: Help & Support

[Jade] each で要素だけでなく index も取得する

テンプレートエンジン Jade の each で現在のループ回数 index を取得する方法をメモ。

each item, index in list
  li= item
  if index === 1
    | : First item in list!

参考情報

node.js – Jade template engine – Each Iteration Offset – Stack Overflow

[WordPress] wp-cron を無効化する

WordPress で、wp-cron を無効化するには wp-config.php に下記のコードを追記するだけでOKです。

WordPress | ワードプレス

define('DISABLE_WP_CRON', true);

[jQuery] フォームの値をクリア、リセット、空にする方法

jQuery でフォームの値をクリアする方法をご紹介します。

jQuery

続きを読む

CoffeeScript のインストール方法

CoffeeScript をインストールする方法をご紹介します。

続きを読む

[Mongoose] 異なるOR条件を2つ以上指定したい場合の書き方

Node.js + Mongoose にて異なるOR条件を2つ以上指定したい場合の書き方をご紹介します。

mongoose | マングース

続きを読む