#itsarghyadas
1 messages ยท Page 1 of 1 (latest)
Depends what specifically you're looking for?
so where the user will put their card number and it will show the brand 
but not in server as we are not passing the card in the server whatever operation needed should be in the client
Well the Payment Element should support that already? https://stripe.com/docs/payments/payment-element
No but I am not actually charging
Then which UI and/or Stripe.js methods are you using?
You're going to need to be more dedscriptive with what it is you're trying to do exactly and what code you're using
we are making a project where people will put their card and make a purchase which will be fake and it will send some payment intetions
Ok, and which UI are you using to collect card info?
normal nextjs + shadcn
You should be using one of our Elements to collect card data: https://stripe.com/docs/payments/elements
You won't have the necessary PCI compliance to handle raw card data: https://stripe.com/docs/security/guide
but it will not go through the payment processor
just to know if the person clicked the buy now button or not
You can't collect payment data (card numbers) at all without PCI compliance
ok so I should just use the element but not go through the payment right?
I suggest you use our pre-build components to collect card data
Sure, you can use that to just collect a card
what is that?
ok so let me explain
The Elements I linked to earlier
so I am kind of making a fake payment UI which will look like a payment UI where people will go through and pay but it won't charge them and we won't collect the card data in the backend or db
as the user will click a "pay now" button it will just send a status and he has the payment intention
that's what we need it's kinda a pre-launch product fit app, you understand right?
Yep I understand. But regardless of whether you're processing a payment or storing the data, raw card data is touchig your app/server and that requires PCI compliance without using our payment UIs
So look at integrating with Elements: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
so I can just use the stripe element and do all the operation without the actual payment right?
Yes that is what the guide outlines. Collecting payment details without an initial payment, but setitng them up for potential future payments
aah
ok wait
no it is kinda a saas product where I will share a cdn script to embed the ui
so I will not be setting them up for future payment
when the product is ready to launch the actual product owner then swaps them with actual payment instead of this fake ui
you get it right? ๐
so my ui has only one work that is to sense or know if people are actually willing to pay or not
Well you can't use a 'fake UI' to collect real payment information so that's your first hurdle
Not really sure how this is related to Stripe if you're not using our payment UIs to be honest
yeah so I thought using your element will make it rule complianced
Yes exactly
so if I use your elements but doesn't actually charge them instead I will just use a normal button which will not collect any card info but submit that he is willing to pay
will that work?
I don't really understand, why are you collecting card details if you've no intention of ever using them?
I am not but then how can I simulate a proper payment UI sp people use it as a normal payment so I can know if they are really willing to pay or not otherwise if it looks like a fake UI people will not pay
๐
You'd follow the guide I linked previously so that when you do launch you have their payment details already and can actually charge them to use your service
okay
thanks for letting me know
it was very helpful to know if this product will be rule complianced or not becuase it is a sensitive issue
np
probably I can change the way I am thinking for this project
and store the payment intention without the card details as they are not required
Sounds like a better idea