どこが提供している仕組みでトークン化するの? 2種類 / A.Stripeが用意した仕組みを利用してトークン化する方法は、5種類

「決済」及び「開発」関連用語集

カテゴリー: Stripe  閲覧数:296 配信日:2019-02-12 11:25


どこが提供している仕組みでトークン化するの? 2種類


A.Stripeが用意した仕組みを利用してトークン化
・Stripeに丸投げ
・Stripe側のサーバにて、「顧客の生のカード情報」を取得

B.あなた自身が作成した仕組みを利用してトークン化
・自力で構築
・自前でトークン化
・販売者側のサーバにて、「顧客の生のカード情報」を取得

比較一覧表
- Stripeに丸投げ 自力で構築
「顧客の生のカード情報」をどこが取得するか Stripe側のサーバ 販売者側のサーバ
PCI DSS 対応 Stripe 販売者

A.Stripeが用意した仕組みを利用してトークン化する方法は、5種類


「Stripeに丸投げ」する方法は、5種類に分かれる
Checkout
┃ ┣Simple
┃ ┗Custom

Checkout public beta version

Stripe.js and Elements

iOS Integration

Android Integration

要点
・「checkout.js」を使用する場合、'src_xxxx'を受け取ることが出来ない

checkout.js ― Stripe.js と Stripe Elements


checkout.js
・Webとモバイルでの最もシンプルな決済フロー
比較一覧表
- checkout.js Stripe.js と Stripe Elements
JavaScriptライブラリのURL https://checkout.stripe.com/checkout.js https://js.stripe.com/v3/
Stripeサーバより返された「トークン」をどこで受け取る クライアントのformタグ内 クライアントのJavaScript処理内
難易度


比較一覧表
・「Stripeのモバイルライブラリ」については、これから確認予定
- checkout.js Checkout public beta version Stripe.js と Stripe Elements
JavaScriptライブラリのURL https://checkout.stripe.com/checkout.js https://js.stripe.com/v3/ https://js.stripe.com/v3/
Stripeサーバより返された「トークン」をどこで受け取る クライアントのformタグ内 - クライアントのJavaScript処理内
あなた(販売者側)のサーバが$_POSTで受け取る内容
array (
 'stripeToken' => 'tok_xxxx',
 'stripeTokenType' => 'card',
 'stripeEmail' => 'hoge@yahoo.co.jp',
)
- -

クライアント側コード


Checkout Simple
<form action="your-server-side-code" method="POST">
 <script
   src="https://checkout.stripe.com/checkout.js" class="stripe-button"
   data-key="pk_test_●●"
   data-amount="999"
   data-name="PHPデモ"
   data-description="Widget"
   data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
   data-locale="auto"
   data-currency="jpy">
 </script>
</form>


Checkout Custom
<script src="https://checkout.stripe.com/checkout.js"></script>

<button id="customButton">Purchase</button>

<script>
var handler = StripeCheckout.configure({
 key: 'pk_test_●●',
 image: 'https://stripe.com/img/documentation/checkout/marketplace.png',
 locale: 'auto',
 token: function(token) {
   // You can access the token ID with `token.id`.
   // Get the token ID to your server-side code for use.
 }
});

document.getElementById('customButton').addEventListener('click', function(e) {
 // Open Checkout with further options:
 handler.open({
   name: 'PHPデモ',
   description: '2 widgets',
   currency: 'jpy',
   amount: 2000
 });
 e.preventDefault();
});

// Close Checkout on page navigation:
window.addEventListener('popstate', function() {
 handler.close();
});
</script>


Checkout public beta version
<!-- Load Stripe.js on your website. -->
<script src="https://js.stripe.com/v3"></script>

<!-- Create a button that your customers click to complete their purchase. -->
<button id="checkout-button" role="link">Pay</button>
<div id="error-message"></div>

<script>
 var stripe = Stripe('pk_test_●●', {
   betas: ['checkout_beta_4']
 });

 var checkoutButton = document.getElementById('checkout-button');
 checkoutButton.addEventListener('click', function () {
   // When the customer clicks on the button, redirect
   // them to Checkout.
   stripe.redirectToCheckout({
     items: [{sku: 'sku_EYUuveVPe61SrH', quantity: 1}],

     // Note that it is not guaranteed your customers will be redirected to this
     // URL *100%* of the time, it's possible that they could e.g. close the
     // tab between form submission and the redirect.
     successUrl: 'https://php-demo.w4c.work/demo/settlement/stripe/checkout-beta/2/thanks.php',
     cancelUrl: 'https://php-demo.w4c.work/demo/settlement/stripe/checkout-beta/2/',
     clientReferenceId: 'order_123',
   })
   .then(function (result) {
     if (result.error) {
       // If `redirectToCheckout` fails due to a browser or network
       // error, display the localized error message to your customer.
       var displayError = document.getElementById('error-message');
       displayError.textContent = result.error.message;
     }
   });
 });
</script>


週間人気ページランキング / 4-11 → 4-17
順位 ページタイトル抜粋 アクセス数
1 YouTube | 動画サービス(課金販売できるプラットフォーム) 7
2 pixivFANBOX | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 3
2 EMVCo | クレジットカード仕様(仕様) 3
2 Saving Payment Methods / 支払い方法を保存する 3
2 支払い 3
2 「払い戻し」と「チャージバック」の違い | 違い 3
3 Stripeで"No such token: src"と表示されたら、最初にAPIキーを確認する | Stripe エラー(Stripe) 2
3 プリペイドカード | カード 2
3 EMVレベル1 / EMVレベル2 / EMVCo とは? 2
4 LeMEとは?/ 特徴 / Link 1
4 Stripeアカウントへログインする際、モバイル端末で受信したコード入力を求められる理由は? | その他エントリー(Stripe) 1
4 Stripe Payments > PREPARING FOR SCA > Payment Intents | documentation(Stripe) 1
4 決済代行 | 課金 1
4 Stripe Q33。CustomerオブジェクトのcreateSourceメソッドのAPIドキュメントについて | QA(Stripe) 1
4 「Gumroad」は、決済サービス「PayPal」を利用したオンラインコンテンツ販売サービス | デジタルコンテンツ販売可能なサービス(課金販売できるプラットフォーム) 1
4 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに | QA(Stripe) 1
4 Connect決済に際して「選択できる入金経路の種類」比較一覧表 / 「Direct Charges」と「Destination Charges」比較具体例 /「Direct Charges」処理方法に関する比較一覧表 1
4 LINE LIVE | ライブ配信サービス(課金販売できるプラットフォーム) 1
4 IBAN | 海外送金(送金) 1
4 「支払」と「送金」の違い | 違い 1
2024/4/18 1:02 更新
指定期間人気ページランキング / 2020-5-28 → 2024-4-17
順位 ページタイトル抜粋 アクセス数
1 Stripeアカウントへログインする際、モバイル端末で受信したコード入力を求められる理由は? | その他エントリー(Stripe) 2008
2 EMVCo | クレジットカード仕様(仕様) 1262
3 Stripe Q13。決済成功時に、「請求に紐づけられたメールアドレス」に対して、メール送信したいのですが、 | QA(Stripe) 942
4 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに | QA(Stripe) 899
5 Twitch | ゲーム実況配信サービス(課金販売できるプラットフォーム) 876
5 クレジットカード決済 | 課金 876
6 決済用語 854
7 Stripe Q50。 Connect 「Standardアカウント」で、自身に連結された子アカウントを、ダッシュボードから削除するには? | QA(Stripe) 824
8 Omise | 「支払」機能を有する決済系サービス(決済サービス) 766
9 Stripe Q1。Stripeにおける個人事業主の定義 | QA(Stripe) 761
10 Stripe Q31。ダッシュボードでの「支払い作成」の見方について | QA(Stripe) 738
10 pixivFANBOX | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 738
11 EMVレベル1 / EMVレベル2 / EMVCo とは? 721
12 YouTube | 動画サービス(課金販売できるプラットフォーム) 662
13 プリペイドカード | カード 643
14 EPUB | ファイルフォーマット(電子書籍) 587
15 サブスクリプション | 課金 563
16 Stripeで"No such token: src"と表示されたら、最初にAPIキーを確認する | Stripe エラー(Stripe) 544
17 Stripe Q74.「お客様のビジネスの詳細」とは何ですか? | Stripe 541
18 ファンティア | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 482
2024/4/18 1:02 更新