#zakirhossenlive
1 messages ยท Page 1 of 1 (latest)
hello! how can i help?
hi
Is it possible to retrieve customer credit card information in my website from stripe?
what information are you looking for specifically?
you won't be able to retrieve the CVC. You can retrieve the last 4 and expiry date - https://stripe.com/docs/api/payment_methods/object#payment_method_object-card
Billing details are here : https://stripe.com/docs/api/payment_methods/object#payment_method_object-billing_details
ok
hi
๐
i don't really understand what you mean by creating a session with a custom card
what session are you referring to?
it is saving credit card for future
alright, and what do you mean when you say you want to create a Checkout Session with a custom card? can you elaborate more on that?
for context, a Checkout Session with mode=setup, is used to collect a payment method from the customer for future use. So i'm not really understanding why you're creating a card in your server first
my client want me to create a custom checkout page. Instead of going to stripe website to fill up just want to show side popup. Where customer will give their address and card.
Then the card information will be saved in database
then from the php code I want to create the card with that given information in stripe.
you'll need to build your own UI then, and you should be following the instructions in the Custom payment flow tab
ok
that one looks like hard to make
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
shall i use it?
sorry i don't understand
what do you mean by it looks hard to make?
and i can't tell you if you should use it if i don't know what you're trying to do
if you need a sample to play around with, maybe take a look at this instead : https://stripe.com/docs/payments/quickstart
ok
is there a concern with it automatically creating input boxes?
my clients want something like this
it should show popup like this
instead of redirecting to another website
you need to implement that yourself
ok
let's say. i have made the design
and then send POST request to php page
then I want to make a customer in stripe with those given credit card information
So, I can charge later
the custom payment flow - gives you a simple step by step guide to how to accept a payment with the Payment Element : https://stripe.com/docs/payments/payment-element. It's up to you to design and implement how the page / popup looks like with the Payment Element
isn't this guide that you're already looking at already doing what you're looking for? https://stripe.com/docs/payments/save-and-reuse?platform=web
I mean the first one i have tried
but it is redirecting to stripe checkout
then i tried to show it in iframe
but looks like not working
as i've mentioned before - you should be following the instructions in the Custom payment flow tab on that page
ok. but that one is generating the elements right?
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 think i can use it
yes, it will generate the Element.
but i need to know, if I can charge it later or not
on this one
I would suggest that you read through the full guide first - it's mentioned in https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method
hello
try it out and see