Stripe Q24。After attaching the source to the customer object, how do I check from the customer object?

StripeQA

目次一覧

 状態:-  閲覧数:596  投稿日:2019-03-17  更新日:2019-03-21  
質問履歴24 / A

質問履歴24 / A

 閲覧数:298 投稿日:2019-03-17 更新日:2019-03-17 

質問履歴24


After attaching the source to the customer object, how do I check from the customer object?
・2019/3/16
$customer1 = \Stripe\Customer::create([
   "description" => "test",
   'email' => 'a@example.com',
]);
$customerObj = \Stripe\Customer::retrieve($customer1->id);
$sourceObj = $customer->sources->create(["source" => 'src_xxxx']);

The source object has been created. I can understand this.

I can not understand where in the Customer object the source object was created.

How can I check the source object created above from the Customer object?

var_export($customer->sources->source);


After attaching the source to the customer object, how do I check from the customer object?

A


更新されたソースをソースのリストに表示するには?
・Customerオブジェクトをもう一度取得する必要がある
・これにはhttps://stripe.com/docs/api#retrieve_customerを使用してくれ
\Stripe\Stripe::setApiKey("sk_test_xxxx");

$customer = \Stripe\Customer::retrieve('cus_EhrAhwK7W4OB41');

foreach($customer->sources->data as $key => $val){
 echo $val->id."<br>";
}



Stripe Q23。イベントで「新しい支払元が追加されました」と表示されているのに、「支払元がありません」

Stripe Q25。Why is it an error to use “token_xxxx” not associated with a Customer object for payment?

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



類似度ページランキング
順位 ページタイトル抜粋
1 Stripe Q24。After attaching the source to the customer object, how do I check from the customer object? 29
2 Stripe Q48。「Checkout\Session - server」「Charge」「PaymentIntent」の使い分け方 25
3 Stripe Q25。Why is it an error to use “token_xxxx” not associated with a Customer object for payment? 25
4 Stripe Q20。「webhook」と「synchronous」と「Checkout beta version」について 24
5 Stripe Q9。Checkout beta version で、webhookを受け取ると、client_reference_idがNULL 24
6 Stripe Q8。Stripe Checkout public beta version について 24
7 Stripe Q62.Webhook::constructEventで、SignatureVerificationエラーになるのですが… 24
8 Stripe Payments > COLLECTING PAYMENT DETAILS > Checkout 23
9 Stripe Q34。I could create a Stripe account with the code below, but where can I find the code for this create method? 23
10 Stripe Q26。If you only accept credit card payments, are there any functions that can not be done with src_xxxx but only with tok_xxxx? 22
11 Stripe Q30。Checkout (new) の「Checkout Server Quickstart」の「Step 2: Add Checkout to your website」について 22
12 Stripe Q19。「PaymentIntents」と「Sourceオブジェクト」と「Sources API」の関係について 22
13 Stripe Q28。Sourceオブジェクトのusageプロパティのデフォルト値について 22
14 Stripe Q17。カード情報を「card object」「source object」へ保存する違いについて 22
15 Stripe Q33。CustomerオブジェクトのcreateSourceメソッドのAPIドキュメントについて 22
16 Stripe Billing > Quickstart / クイックスタート 21
17 Stripe Q60. Checkout\SessionオブジェクトとPaymentIntentオブジェクトの関係性は1対1ですか? 21
18 Stripe Q43。payouts スケジュールについて 21
19 Stripe Payments > COLLECTING PAYMENT DETAILS / 支払い詳細の収集 > Checkout Reference 21
20 Stripeで"No such token: src"と表示されたら、最初にAPIキーを確認する 21
2024/4/26 15:55 更新
週間人気ページランキング / 4-19 → 4-25
順位 ページタイトル抜粋 アクセス数
1 YouTube | 動画サービス(課金販売できるプラットフォーム) 7
2 EMVCo | クレジットカード仕様(仕様) 6
3 EMVレベル1 / EMVレベル2 / EMVCo とは? 5
4 クレジットカード決済 | 課金 4
5 pixivFANBOX | クリエイター支援プラットフォーム(課金販売できるプラットフォーム) 3
5 Squareは、デジタルコンテンツ(デジタル情報)の配信利用が認められないサービス | 「支払」機能を有する決済系サービス(決済サービス) 3
6 Stripeアカウントへログインする際、モバイル端末で受信したコード入力を求められる理由は? | その他エントリー(Stripe) 2
6 Off-session Payments with Payment Intents / Payment Intents を使用したオフセッション支払 2
6 Stripe Q32。Webhook のエンドポイントから適切な値を返さなかったときの停止措置について | QA(Stripe) 2
6 「支払」と「送金」の違い | 違い 2
6 Stripe Q16。PaymentIntentの支払いで郵便番号入力を求められる。Radar rules の ZIP code を無効にしているのに | QA(Stripe) 2
6 プリペイドカード | カード 2
7 振込 | 送金 1
7 IBAN | 海外送金(送金) 1
7 Stripe Q11。テストAPIで、実際のカード番号を入力したらどうなりますか? | QA(Stripe) 1
7 Stripe Q53.Checkout\Sessionの1回限りの支払いで、決済完了したユーザにだけページ表示させたい | QA(Stripe) 1
7 ツイキャスとは?/ 特徴 / キートスとは? 1
7 note | 課金販売できるプラットフォーム 1
7 Stripe webhook 配信の問題 / 実際に受け取った警告メールの受信例 1
7 Stripe webhook 配信の問題 | その他エントリー(Stripe) 1
2024/4/26 1:02 更新