#alexander_farkas
1 messages · Page 1 of 1 (latest)
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.
- alexander_farkas, 39 minutes ago, 11 messages
- alexander-applepay-domain, 15 hours ago, 16 messages
- alexander_farkas, 18 hours ago, 29 messages
hi! can you clarify/show me an example of what you mean?
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
what's the pm_xxx ID?
yes
pm_1Oh7EYRLotSK49I8kvmsIsxx
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
Oh, so that's expected in prod
Could customer use this payment method for further payments? Could it be charged off-session?
AFAIK yes
Awesome, thank you!
Will this payment method disappear if customer removes it from their Apple Pay?
no
So it will behave the same as it was added manually?
it's just a pm_xxx card object so it works like other cards
Ok, awesome
One more question - I've paid one more time with the same card, and it was added as a separate payment method
having said that there is a thing https://stripe.com/docs/apple-pay/merchant-tokens to take note of
yeah that will happen unless you write code to prevent it
Is there a way to disambiguate?
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
So it will be readded every time?
because the fingerprint is based on a transaction-specific card number that is generated, it's just how Apple Pay works for merchants
Is that possible to not save this payment method at all?
sure, just don't pass setup_future_usage to the PaymentIntent.