Stripe Q38。Difference between “paymentIntent.status === 'succeeded'” and “payment_intent.succeeded event of Webhook”

StripeQA

目次一覧

 状態:回答待  閲覧数:668  投稿日:2019-04-24  更新日:2019-04-24  
質問履歴38

質問履歴38

 閲覧数:294 投稿日:2019-04-24 更新日:2019-04-25 

質問履歴38


Difference between “paymentIntent.status === 'succeeded'” and “payment_intent.succeeded event of Webhook”
・2019/4/24
The difference between the two is only the following content?
・ Execute on the client side
・ Execute on the server side

Is essentially the same thing?
・ Can I use any of them?

paymentIntent.status === 'succeeded'
・js
(async () => {
 let {paymentIntent, error} = await stripe.handleCardPayment(clientSecret);
 if (error) {
   // Handle error here
 } else if (paymentIntent && paymentIntent.status === 'succeeded') {
   // Handle successful payment here
 }
})();


"payment_intent.succeeded event of Webhook"
・PHP
$event = null;

try {
 $event = \Stripe\Webhook::constructEvent(
   $payload, $sig_header, $endpoint_secret
 );
} catch(\UnexpectedValueException $e) {
 // Invalid payload
 http_response_code(400); // PHP 5.4 or greater
 exit();
} catch(\Stripe\Error\SignatureVerification $e) {
 // Invalid signature
 http_response_code(400); // PHP 5.4 or greater
 exit();
}

if ($event->type == "payment_intent.succeeded") {



Difference between "paymentIntent.status === 'succeeded'" and "payment_intent.succeeded event of Webhook"



Stripe Q37。PaymentIntentで支払いを行った後、成功画面を表示させるためにはどうすれば良いですか?

Stripe Q39。I want to check the processing for the 'success_url' parameter of the 'Checkout \ Session :: create () method' in the Git-Hub code

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



類似度ページランキング
順位 ページタイトル抜粋
1 Stripe Q38。Difference between “paymentIntent.status === 'succeeded'” and “payment_intent.succeeded event of Webhook” 30
2 Stripe Q25。Why is it an error to use “token_xxxx” not associated with a Customer object for payment? 25
3 Stripe Q9。Checkout beta version で、webhookを受け取ると、client_reference_idがNULL 24
4 Stripe Q8。Stripe Checkout public beta version について 24
5 Stripe Q48。「Checkout\Session - server」「Charge」「PaymentIntent」の使い分け方 24
6 Stripe Q20。「webhook」と「synchronous」と「Checkout beta version」について 24
7 Stripe Q62.Webhook::constructEventで、SignatureVerificationエラーになるのですが… 23
8 Stripe Q73.CheckoutのSessionオブジェクトをcreateする際、'payment_intent_data'内の'metadata'として渡したデータを、webhookで受け取る件について 23
9 Stripe Payments > COLLECTING PAYMENT DETAILS > Checkout 22
10 Stripe Q60. Checkout\SessionオブジェクトとPaymentIntentオブジェクトの関係性は1対1ですか? 22
11 Stripe Q36。What is the difference between “stripe.handleCardPayment (clientSecret)” and “stripe.retrievePaymentIntent (clientSecret)”? 22
12 Stripe Q51.Connect Standard アカウント連結後の返り値で、"refresh_token”も保存した方が良いですか? 22
13 Stripe Q30。Checkout (new) の「Checkout Server Quickstart」の「Step 2: Add Checkout to your website」について 21
14 Stripe Q46。Direct Charges で手数料聴取する場合、'payment_intent_data'の「有り」「無し」の違いは? 21
15 Q63.No signatures found matching the expected signature for payload について 21
16 We're sorry, we can't log you in. 21
17 Stripe Q24。After attaching the source to the customer object, how do I check from the customer object? 21
18 Stripe Q58.Checkout\Session::create後、'checkout.session.completed'受信した段階で、PaymentIntentオブジェクトは作成されていますか? 21
19 Stripe Payments > COLLECTING PAYMENT DETAILS / 支払い詳細の収集 > Checkout Reference 21
20 Stripe Q43。payouts スケジュールについて 21
2024/3/29 21:36 更新
週間人気ページランキング / 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 更新