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

StripeQA

目次一覧

 状態:回答待  閲覧数:591  投稿日:2019-04-28  更新日:2019-04-28  
質問履歴39

質問履歴39

 閲覧数:294 投稿日:2019-04-28 更新日:2019-04-30 

質問履歴39


I want to check the processing for the 'success_url' parameter of the 'Checkout \ Session :: create () method' in the Git-Hub code
・2019/4/28
The following PHP code works fine.
   $checkoutSession = \Stripe\Checkout\Session::create([
   'customer_email' => 'customer@example.com',
   'success_url' => 'https://xxxx/thanks.php',


The description is also described in the document.
The URL the customer will be directed to after the payment or subscription creation is successful.

But I want to see in PHP code how the process to be redirected to 'success_url' is implemented.
▼stripe-php /lib/Checkout/Session.php
<?php
namespace Stripe\Checkout;
/**
* Class Session
*
* Omission
*
* @property string $success_url
*
* @package Stripe
*/
class Session extends \Stripe\ApiResource
{
   const OBJECT_NAME = "checkout.session";
   use \Stripe\ApiOperations\Create;
   use \Stripe\ApiOperations\Retrieve;
}


▼stripe-php /lib/ApiOperations/Create.php
trait Create
{
   /**
    * @param array|null $params
    * @param array|string|null $options
    *
    * @return \Stripe\ApiResource The created resource.
    */
   public static function create($params = null, $options = null)
   {
       self::_validateParams($params);
       $url = static::classUrl();
       list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
       $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
       $obj->setLastResponse($response);
       return $obj;
   }
}


Where is the process for 'success_url' implemented?

私は、”Checkout\Session::create()メソッド”の'success_url'パラメータに対する処理をGit-Hubのコードで確認したい
下記PHPコードは正常に動作する。

ドキュメントにも説明が記述されている。

しかし私は'success_url'へリダイレクトされる処理がどのように実装されているかをPHPコードで確認したい。

'success_url'に対する処理はどこで実装されているのですか?

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


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

Stripe Q42。「Stripeダッシュボードへログインした後に表示される各ページ」へのアクセス権について

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



類似度ページランキング
順位 ページタイトル抜粋
1 Stripe Q39。I want to check the processing for the 'success_url' parameter of the 'Checkout \ Session :: create () method' in the Git-Hub code 26
2 Stripe Q9。Checkout beta version で、webhookを受け取ると、client_reference_idがNULL 23
3 Stripe Q48。「Checkout\Session - server」「Charge」「PaymentIntent」の使い分け方 22
4 Stripe Q8。Stripe Checkout public beta version について 21
5 Stripe Q30。Checkout (new) の「Checkout Server Quickstart」の「Step 2: Add Checkout to your website」について 21
6 Stripe Q38。Difference between “paymentIntent.status === 'succeeded'” and “payment_intent.succeeded event of Webhook” 20
7 Stripe Q47。Charge::create の 'receipt_email' について 20
8 Stripe Q55.Checkout\Session::createする際の、'client_reference_id'パラメータと'payment_intent_data.metadata'パラメータの違いについて 20
9 Stripe Q25。Why is it an error to use “token_xxxx” not associated with a Customer object for payment? 20
10 Stripe Q24。After attaching the source to the customer object, how do I check from the customer object? 20
11 Stripe Q20。「webhook」と「synchronous」と「Checkout beta version」について 20
12 Stripe Q58.Checkout\Session::create後、'checkout.session.completed'受信した段階で、PaymentIntentオブジェクトは作成されていますか? 20
13 Stripe Q10。Checkout の Simple で、「data-zip-code="true"」追加した場合について 20
14 Stripe Q73.CheckoutのSessionオブジェクトをcreateする際、'payment_intent_data'内の'metadata'として渡したデータを、webhookで受け取る件について 20
15 Stripe Payments > COLLECTING PAYMENT DETAILS > Checkout 19
16 Stripe Q60. Checkout\SessionオブジェクトとPaymentIntentオブジェクトの関係性は1対1ですか? 19
17 Stripe Q62.Webhook::constructEventで、SignatureVerificationエラーになるのですが… 19
18 Stripe Q72.Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com. (Network error [errno 77]: ) 19
19 Stripe Q46。Direct Charges で手数料聴取する場合、'payment_intent_data'の「有り」「無し」の違いは? 19
20 Q63.No signatures found matching the expected signature for payload について 19
2024/4/19 16:23 更新
週間人気ページランキング / 4-12 → 4-18
順位 ページタイトル抜粋 アクセス数
1 YouTube | 動画サービス(課金販売できるプラットフォーム) 7
2 Saving Payment Methods / 支払い方法を保存する 3
2 支払い 3
2 「払い戻し」と「チャージバック」の違い | 違い 3
2 EMVレベル1 / EMVレベル2 / EMVCo とは? 3
3 Stripeで"No such token: src"と表示されたら、最初にAPIキーを確認する | Stripe エラー(Stripe) 2
3 pixivFANBOX | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 2
3 プリペイドカード | カード 2
3 EMVCo | クレジットカード仕様(仕様) 2
3 ログイン 2
3 Stripe Q73.CheckoutのSessionオブジェクトをcreateする際、'payment_intent_data'内の'metadata'として渡したデータを、webhookで受け取る件について | QA(Stripe) 2
3 Stripe Q55.Checkout\Session::createする際の、'client_reference_id'パラメータと'payment_intent_data.metadata'パラメータの違いについて | QA(Stripe) 2
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
4 Stripe Q13。決済成功時に、「請求に紐づけられたメールアドレス」に対して、メール送信したいのですが、 | QA(Stripe) 1
4 Stripe Payments > Quickstart / クイックスタート | documentation(Stripe) 1
2024/4/19 1:01 更新