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

StripeQA

目次一覧

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

質問履歴24 / A

 閲覧数:313 投稿日: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/7/27 22:49 更新
週間人気ページランキング / 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 更新