SlideShare a Scribd company logo
          の  
CheckoutHelper  
が超便便利利!!!  
って話
@M_̲Ishikawa
2014-07-22
WebPay Meetup #1
ペイっ!
@M_̲Ishikawa  
id:ishikawam
•ボランティアで開発  
・えがおの本  
・チャリティーサンタ  
・その他、福祉、イベントスタッフ、etc...  
•しごとで開発  
・グリー
は  
!
のCheckoutHelperを利利⽤用しています
https://webpay.jp/docs/checkout
何が便便利利かって⾔言うと
ぽちっとするだけで
これ埋め込んで
ちょー簡単!!!
サーバサイドの実装を(考えられる)  
極限まで少なくしてくれてる!!!
<form action="/purchase" method="post">
<script src="https://checkout.webpay.jp/v2/" class="webpay-button" data-key=
"test_public_xxxxxxxxxxxxxxxxxxxx" data-lang="ja"></script>
</form>
<form action="/purchase" method="post">
<script src= https://checkout.webpay.jp/v2/" class="webpay-button" data-key=
"test_public_xxxxxxxxxxxxxxxxxxxx" data-lang="ja" ></script>
<div id= WP_checkoutBox">
<input type="button" value= カードで支払う">
<input type="hidden" name= webpay-token">
</div>
</form>
⾯面倒なトークン発⾏行行とトークンチェック、  
カードのエラーチェック等は全部WebPay側でやってくれる!!!
って書いておくだけで
⾃自動でトークン⼊入れてくれる!
⾯面倒な  
トークン発⾏行行  
トークンチェック  
カードのエラーチェック  
等は全部WebPay側でやってくれる!!!  
!
こちらのサーバを通さずに  
クライアントと直接やってくれる!!!
つまり今までだと
•ユーザーが(ブラウザで)カード情報⼊入れて送信  
•サーバで(トークンとともに)受け取る  
・トークンが有効であればサーバからカード情報について決済業者に問い合わせる  
・トークンが無効または簡易易バリデーションでアウトならユーザーへエラーを返す  
•決済業者からのカード情報をサーバで受け取る  
・カードが有効なら課⾦金金処理理を続ける  
・カードが無効ならユーザーへその旨返す  
•サーバから決済業者へ課⾦金金処理理をリクエスト&結果を受け取る  
・課⾦金金が有効なら課⾦金金処理理を続ける  
・課⾦金金が無効ならユーザーへその旨返す  
•課⾦金金が成功したのでサーバにて決済ログを記録  
•ユーザーへ完了了を通知。課⾦金金サービスを提供して無事完了了
でもWebPayなら
•ユーザーが(ブラウザで)カード情報⼊入れて送信  
•サーバで(トークンとともに)受け取る  
・トークンが有効であればサーバからカード情報について決済業者に問い合わせる  
・トークンが無効または簡易易バリデーションでアウトならユーザーへエラーを返す  
•決済業者からのカード情報をサーバで受け取る  
・カードが有効なら課⾦金金処理理を続ける  
・カードが無効ならユーザーへその旨返す  
•サーバから決済業者へ課⾦金金処理理をリクエスト&結果を受け取る  
・課⾦金金が有効なら課⾦金金処理理を続ける  
・課⾦金金が無効ならユーザーへその旨返す  
•課⾦金金が成功したのでサーバにて決済ログを記録  
•ユーザーへ完了了を通知。課⾦金金サービスを提供して無事完了了
この部分はサーバ側の実装不不要。  
全部WebPayがやってくれる!
CheckoutHelperを使えば  
⼀一瞬⾜足りともカード番号を  
サーバ側で扱わないで済んじゃう!!!  
!
カード番号の管理理はWebPay。  
サーバはクライアントトークンを扱うだけ。  
カード管理理の責任を全部WebPayが負担!!!
なので
まじすげー
でも...
WebPayへの要望  
その1
ボタンのデザイン  
!
変えれないの?
⾃自動で挿⼊入されるボタンのデザイン変えたい。。  
CSSで上書きかあ、、そもそもdiv(注:ブロック要素)
<form action="/purchase" method="post">
<script src= https://checkout.webpay.jp/v2/" class="webpay-button" data-key=
"test_public_xxxxxxxxxxxxxxxxxxxx" data-lang="ja" ></script>
<div id= WP_checkoutBox">
<input type="button" value= カードで支払う">
<input type="hidden" name= webpay-token">
</div>
</form>
CSSリセット⾯面倒だな。。。  
テキストリンクとかきれいにできないよ。。
しかたなく  “displey:none;”  にしてw
⾒見見えないボタンを押させるwww
WebPayへの要望  
その2
テストの課⾦金金履履歴  
消せない...
テストの課⾦金金履履歴  
消せない...
この件は解決法がありました!!!  
>ユーザ設定からリセットできた  
教えてくださったWebPay++
WebPayへの要望  
その3
marginないのが  
気になる
WebPayの  
とてもいいところ
⼟土⽇日というのに質問に  
すぐに答えてくれたよ!!!
WebPayの  
すごくいいところ
エンジニアが  
わくわくする  
モノがある!
これからも期待してます!
ペイっ!
@M_̲Ishikawa

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

WebPayのCheckoutHelper が超便利!!! って話