#fiyaz2110

1 messages ยท Page 1 of 1 (latest)

smoky heath
#

Hey howdy ๐Ÿ™‚ What's your question?

cobalt dagger
#

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.

smoky heath
#

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

cobalt dagger
#

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?

smoky heath
#

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

cobalt dagger
#

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.

smoky heath
#

Sure!

smoky heath
#

๐Ÿ‘‹ I am stepping down for the day. If you need further help please ask in the channel

molten nebulaBOT
#

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

cobalt dagger
#

Hi

#

I've followed this but I'm getting an error