#harinth-invoice-pi

1 messages · Page 1 of 1 (latest)

glossy belfry
#

Hey. Each Invoice will have a unique Payment Intent

#

Each payment attempt won't create a new Payment Intent, no

sullen mango
#

We need to use customer ID and payment method id for that right?

glossy belfry
#

For what?

sullen mango
#

To prevent duplicate payment method

#

Everytime user gives card details and not saving it for the future in the db

#

How can I check whether a payment method exist with the given card information

#

I mean in the second time

glossy belfry
#

Well, it's difficult as we don't return the full card data

sullen mango
#

Same card created 2 payment method

glossy belfry
#

Yep, you can have multiple Payment Method objects using the same card details

sullen mango
#

But is that a good practice?

#

Suppose I have only 1 card and making payment with that 100 times. This will create 100 payment method with same fingerprint

glossy belfry
#

Why not just re-use the original Payment Method then?

sullen mango
#

Because in the payment form, no option to select payment method. It's just a form where user enters card information each time

glossy belfry
#

Yeah, you'd need to build a UI the display previously saved payment methods

sullen mango
#

Ok. Thank you