#alexander_farkas

1 messages · Page 1 of 1 (latest)

chilly timberBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

nocturne flicker
#

hi! can you clarify/show me an example of what you mean?

foggy jetty
#

I'm using Stripe pk_test_xxx credentials. I've setup Apple Pay as payment method, handled "paymentMethod" event in js and paid with this payment method id.

Once payment was processed, the card I selected in Apple Pay interface was added to customer payment method as MasterCard + 4 last numbers.

#

I have never observed such behavior on other sites.

#

stripe.PaymentMethod.list(
api_key=secret_key,
stripe_account=account_id,
customer=customer_id,
type="card",
)

Now returns card I selected in Apple Pay

nocturne flicker
#

what's the pm_xxx ID?

foggy jetty
#

Your DM is closed

#

Is it secure to post it here?

nocturne flicker
#

yes

foggy jetty
#

pm_1Oh7EYRLotSK49I8kvmsIsxx

nocturne flicker
#

hmm, well I thought the way it worked is in test mode we ignore the details in the Apple Pay token and set the card object to be the 4242 card

#

maybe that was changed recently so it's more realistic and we create a test mode card using the actual details. I haven't heard of that but maybe it's a new thing

foggy jetty
#

Oh, so that's expected in prod

#

Could customer use this payment method for further payments? Could it be charged off-session?

nocturne flicker
#

AFAIK yes

foggy jetty
#

Awesome, thank you!

#

Will this payment method disappear if customer removes it from their Apple Pay?

nocturne flicker
#

no

foggy jetty
#

So it will behave the same as it was added manually?

nocturne flicker
#

it's just a pm_xxx card object so it works like other cards

foggy jetty
#

Ok, awesome

#

One more question - I've paid one more time with the same card, and it was added as a separate payment method

nocturne flicker
nocturne flicker
foggy jetty
#

Is there a way to disambiguate?

nocturne flicker
#

e.g. checking the fingerprint of existing PaymentMethods on the customer before adding a new one with the same fingerprint

#

but note for Apple Pay that generally doesn't work

foggy jetty
#

So it will be readded every time?

nocturne flicker
#

because the fingerprint is based on a transaction-specific card number that is generated, it's just how Apple Pay works for merchants

foggy jetty
#

Is that possible to not save this payment method at all?

nocturne flicker
#

sure, just don't pass setup_future_usage to the PaymentIntent.

foggy jetty
#

Okay, great!

#

You are a lifesaver

chilly timberBOT