Stripe Q57.Pass two user-defined key-value pairs as parameters when creating Session object. I want to receive it in checkout.session.completed event

StripeQA

目次一覧

 状態:回答待  閲覧数:535  投稿日:2019-08-20  更新日:2019-08-20  
Q57

Q57

 閲覧数:309 投稿日:2019-08-20 更新日:2019-08-20 

Q57


Pass two user-defined key-value pairs as parameters when creating Session object. I want to receive it in checkout.session.completed event
2019/8/20
two user-defined key-value pairs
・'fw_login_flg' => 'TRUE',
・'fw_hoge_id' => 765,

▼index.php
$checkoutSession = \Stripe\Checkout\Session::create([
 'payment_method_types' => ['card'],
 'line_items' => [[
   'name' => "demo",
   'amount' => 500,
 ]],
 'payment_intent_data' => [
   'application_fee_amount' => 200,
   'metadata' =>  ['fw_login_flg' => 'TRUE','fw_hoge_id' => 765,],
 ],
 'success_url' => 'https://xxxx/thanks.php',
 'cancel_url' => 'https://xxxx/cancel.php',
 'client_reference_id' => '123',
], [
 'stripe_account' => 'xxxx',
]);


▼webhook.php
   if ($event->type == 'checkout.session.completed') {
       $session = $event->data->object;


Why is 'payment_intent_data' not included in the response?


捕捉
Stripe API Reference - Create a Session



Stripe Q56. 作成したCheckout\Sessionオブジェクトが破棄されるタイミングは?

Stripe Q58.Checkout\Session::create後、'checkout.session.completed'受信した段階で、PaymentIntentオブジェクトは作成されていますか?

コメント投稿(ログインが必要)



類似度ページランキング
順位 ページタイトル抜粋
1 Stripe Q57.Pass two user-defined key-value pairs as parameters when creating Session object. I want to receive it in checkout.session.completed event 21
2 Stripe Q48。「Checkout\Session - server」「Charge」「PaymentIntent」の使い分け方 21
3 Stripe Q9。Checkout beta version で、webhookを受け取ると、client_reference_idがNULL 20
4 Stripe Q60. Checkout\SessionオブジェクトとPaymentIntentオブジェクトの関係性は1対1ですか? 20
5 Stripe Q62.Webhook::constructEventで、SignatureVerificationエラーになるのですが… 19
6 Stripe Q25。Why is it an error to use “token_xxxx” not associated with a Customer object for payment? 19
7 Stripe Q24。After attaching the source to the customer object, how do I check from the customer object? 19
8 Stripe Q8。Stripe Checkout public beta version について 19
9 Stripe Q58.Checkout\Session::create後、'checkout.session.completed'受信した段階で、PaymentIntentオブジェクトは作成されていますか? 19
10 Q63.No signatures found matching the expected signature for payload について 19
11 Stripe Q20。「webhook」と「synchronous」と「Checkout beta version」について 19
12 Stripe Q38。Difference between “paymentIntent.status === 'succeeded'” and “payment_intent.succeeded event of Webhook” 19
13 Stripe Payments > COLLECTING PAYMENT DETAILS > Checkout 19
14 Stripe Q73.CheckoutのSessionオブジェクトをcreateする際、'payment_intent_data'内の'metadata'として渡したデータを、webhookで受け取る件について 18
15 Stripe Payments > Quickstart / クイックスタート 18
16 Stripe Q70.「checkout.session.completed イベント」と「charge.succeeded イベント」と「application_fee.created イベント」の違いについて 18
17 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに 18
18 Stripe Q55.Checkout\Session::createする際の、'client_reference_id'パラメータと'payment_intent_data.metadata'パラメータの違いについて 18
19 Stripe Payments > COLLECTING PAYMENT DETAILS / 支払い詳細の収集 > Checkout Reference 18
20 Purchase Fulfillment 18
2024/3/29 2:05 更新
週間人気ページランキング / 3-22 → 3-28
順位 ページタイトル抜粋 アクセス数
1 YouTube | 動画サービス(課金販売できるプラットフォーム) 7
2 その他エントリー(Stripe) カテゴリー 4
2 EMVレベル1 / EMVレベル2 / EMVCo とは? 4
2 Off-session Payments with Payment Intents / Payment Intents を使用したオフセッション支払 4
3 支払い 3
3 クレジットカード決済 | 課金 3
3 QA(Stripe) カテゴリー 3
3 Stripe Q15。PaymentIntent でエラー。カード番号に不備があります。 | QA(Stripe) 3
4 EMVCo | クレジットカード仕様(仕様) 2
4 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに | QA(Stripe) 2
4 Stripe エラー(Stripe) カテゴリー 2
4 資金決済に関する法律(資金決済法)とは?/(1)前払式支払手段 /(2)資金移動業 2
4 プリペイドカード | カード 2
4 Stripe Q60. Checkout\SessionオブジェクトとPaymentIntentオブジェクトの関係性は1対1ですか? | QA(Stripe) 2
4 QRコード決済 | 課金 2
4 Stripe Q48。「Checkout\Session - server」「Charge」「PaymentIntent」の使い分け方 | QA(Stripe) 2
4 振込 | 送金 2
5 Stripe Q11。テストAPIで、実際のカード番号を入力したらどうなりますか? | QA(Stripe) 1
5 Vプリカとは?/ 特徴 1
5 ICクレジットカード | クレジットカード仕様(仕様) 1
2024/3/29 1:01 更新