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

StripeQA

目次一覧

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

質問履歴38

 閲覧数:313 投稿日: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/7/27 12:39 更新
週間人気ページランキング / 7-20 → 7-26
順位 ページタイトル抜粋 アクセス数
1 決済系サービス比較 | 決済(Webサービスビジネス) 3
1 Twitch | ゲーム実況配信サービス(課金販売できるプラットフォーム) 3
2 支払い 2
2 Stripe Q47。Charge::create の 'receipt_email' について | QA(Stripe) 2
2 Stripe webhook 配信の問題 / 実際に受け取った警告メールの受信例 2
2 Stripe Q37。PaymentIntentで支払いを行った後、成功画面を表示させるためにはどうすれば良いですか? | QA(Stripe) 2
3 普通送金とは? / 処理の流れ 1
3 ファンティア | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 1
3 Stripe Payments > SOURCES / ソース | documentation(Stripe) 1
3 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに | QA(Stripe) 1
3 PaymentIntentで支払を実装する場合の選択肢 /「Payment Intents API」使用によるカードの支払確認方法は2種類 / PaymentMethodオブジェクトは歴史的経緯により3種類ある 1
3 決済用語 1
3 Stripe Q43。payouts スケジュールについて | QA(Stripe) 1
3 「払い戻し」と「チャージバック」の違い | 違い 1
3 EMVレベル1 / EMVレベル2 / EMVCo とは? 1
3 Stripe Q74.「お客様のビジネスの詳細」とは何ですか? | Stripe 1
3 Stripe Q21。新規顧客作成時に新規ソースオブジェクトを添付したいのですが、No such token: src_xxxxとなります | QA(Stripe) 1
3 Stripe オブジェクト | その他エントリー(Stripe) 1
3 LINE LIVE | ライブ配信サービス(課金販売できるプラットフォーム) 1
3 日本で、Connect Standardアカウント を導入している(と思われる)事例 | その他エントリー(Stripe) 1
2024/7/27 1:02 更新