Tokyo Otaku Mode での PayPal 活用事例

Preview:

Citation preview

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode での PayPal 活用事例

PayPal Tech Meetup #42016-12-14 (Wed)

2Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

自己紹介

稲田尚也 @naoina

● 2015 年 1 月入社

● サーバーサイドエンジニア

● リモートワーク

3Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

もくじ

● Tokyo Otaku Mode について● Tokyo Otaku Mode と PayPal● Tokyo Otaku Mode の新サービス● PayPal のイケてないところ

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode について

5Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

オタク文化で世界をハッピーに

6Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

7Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

8Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

9Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

10Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode とは

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode と PayPal

12Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode と PayPal

オンラインショップの決済方法

● クレジットカード

● PayPal

● Amazon ペイメント

13Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode と PayPal

約半数が PayPal を決済方法として使っている

利用決済比率 (2016 年)

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode の新サービス

15Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode の新サービス

Subscriptions

16Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode の新サービス

17Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

Tokyo Otaku Mode の新サービス

Subscriptions

● 色々なお菓子の詰め合わせが毎月届くサービス

○ 将来的にはフィギュアやぬいぐるみも

● 1 ヶ月や 3 ヶ月など特定期間ごとに契約が自動更新される

○ クレジットカード決済では簡単

○ PayPal はオンラインショップで利用決済の約半数を占めているのでこちらにも導入は

必須

18Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

要件

● 決済日をコントロールできる

● 決済金額を変更できる

19Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

調査の結果、定期支払いに使えそうなものが見つかった

● Billing Plans

● Recurring Payments Profile

● Adaptive Payments (Preapproval)

● Reference Transactions

20Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

● Billing Plans○ 決済日をコントロールできない

● Recurring Payments Profile○ こちらも決済日をコントロールできない

● Adaptive Payments (Preapproval)○ Preapproval の期間が 1 年先まで(指定したくない場合は要問合せ)

○ 決済金額も合計 $2,000 まで

● Reference Transactions○ 前述の方法のような制限が無さそうなのでこれが要件に合ってそう

21Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

Reference Transactions

● 今回の要件に本当に使えるのか PayPal に確認した

○ 審査に出したあとに TOM 社内の人からアカウントマネジャーになってくれている人が

いるとの情報が

○ そこから申請のやり取り中にサービスの説明をして問題無さそうだった

22Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

教訓

23Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal で定期支払い

サポートに訊こう!

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal のイケてないところ

25Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal のイケてないところ

Reference Transactions

● NVP/SOAP API しか用意されていない

paypalApi.nvp.doReferenceTransaction "AMT": amount # 決済額

"CURRENCYCODE": price.currency.toUpperCase() # 決済通貨

"PAYMENTACTION": "Sale" #The type of payment "REFERENCEID": referenceId "PAYMENTTYPE": "instant" # echeckを受け付けない

, (err, response)-> .....

26Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.

PayPal のイケてないところ

Refund Sales

● /v1/payments/sale/sale_id/refund

● refund_from_transaction_fee が返ってこないバグ

Copyright © 2016 Tokyo Otaku Mode Inc. All Rights Reserved.