#fiyaz2110
1 messages ยท Page 1 of 1 (latest)
Actually I'm creating a paymentMethod using card and attaching it to customer like this
const paymentMethod = await stripe.paymentMethods.create({
type: 'card',
card: {
number: req.body.number,
exp_month: req.body.exp_month,
exp_year: req.body.exp_year,
cvc: req.body.cvc,
},
});
Here we need full card number which I'm collecting from CardField. But I know it is not secure to get full card number and use last4 instead. Is there any way to get it.
No, you shouldn't do this. It will make you on the highest requirement for PCI DSS and you will need to supply a lot of documents.
Normally you wouldn't want to do that
Yes then how can I achieve this?
How van I create a payment method from card using CardField and then attach this payment method to the customer.
*can
Are we still connected?
Yes I am looking for the right Doc for you
Let's try this
It's using a SetupIntent, which will eventually give you the PaymentMethod inside
and it confirmed with a Card Element in React Native
Ok I will try. And If you remember I have another thread for apple pay in which you asked me to tell my client to accept the apple pay terms and conditions. She done it but still it is showing not supported. I will send message with thread link in the main chat after trying this card.
Sure!
๐ I am stepping down for the day. If you need further help please ask in the channel
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.