#parK-dev

1 messages · Page 1 of 1 (latest)

stoic hazelBOT
pastel minnow
#

Hi Jack,

Is there a way to track where the payment methods originated from? Whether its from the PaymentElement itself or set after on the intent or something.
Trying to figure out why there is 2 of the same test 4242 payment method on this test customer I made.

https://dashboard.stripe.com/test/customers/cus_NOcFC95Ockfl0U

inland relic
#

These two payment_method was created for two different payment_intent
See
https://dashboard.stripe.com/test/logs/req_7QZl6yqyMRqXcf and https://dashboard.stripe.com/test/logs/req_Kq2zZ9c3x6zISP

pastel minnow
#

So my intents are duplicated?

inland relic
#

As far as I can tell, these are two different payment_intents

pastel minnow
#

Yeah well they're the same order.
So I'll change my question a bit.
See these two payment methods are in fact the same card.
Is there a way to retrieve only unique cards when retrieving a customer's payment methods to show them?

inland relic
pastel minnow
#

current params are these :

        let params = ListPaymentMethods {
            customer: Some(customer.id),
            ending_before: None,
            expand: &["data"],
            limit: Some(5),
            starting_after: None,
            type_: PaymentMethodTypeFilter::Card,
        };
        let methods = PaymentMethod::list(&self.client, params).await?;
#

Yeah I want to show my user their payment methods.
But it seems the same method (same say physical card like last4 4242) can be there multiple times if used on seperate payment intents?

#

Is there a way to only get back unique card or should I filter them myself?

inland relic