#Laxislad-save-pm
1 messages ยท Page 1 of 1 (latest)
Checking
You didn't pass the customer parameter on creation: https://dashboard.stripe.com/test/logs/req_ATrJ193mzYXU1Q
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Nope not for that specific Setup Intent. See the log here: https://dashboard.stripe.com/test/logs/req_ATrJ193mzYXU1Q
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Np!
thaankssssss
hi
Hey
welcome back
now I have saved cards
yei
now I wanna show saved cards on my react froentend
is there a recomended way or some pre defined elements?
Sure! You'll need to build this yourself as there's no Element for this
But there are APIs you can use
yeah I.m aware of it
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I created api for it
So you can use the JSON returned from that endpoint to build a UI as you need
now I wanna create it
show iy
it
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
I found this. but it uses pure js
What specific issue are you encountering?
the details I need to show the customer?
like last elements of card, expiry date etc...
I guess last 4 digits, expiry date, maybe the brand?
It's entirely up to you! All Stripe needs is the pm_xxx ID to charge the card
number,exp,brand,
did it
๐
how to update defalut payment method?
I just want to make the card as a default card
@tawny robin depends on the context!
-for one time payments, there's no such thing โ we don't have a default, you tell us what card to charge by passing it to the payment_method field when creating a PaymentIntent.
-for subscriptions, can use either https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method or set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
that does the second option I mentioned(it sets customer.invoice_settings[default_payment_method])