#benstjohn
1 messages · Page 1 of 1 (latest)
var intent = await stripe.paymentIntents.create({
amount: amount,
currency: "usd",
payment_method_types: ["card_present"],
capture_method: "manual",
})
for some reason, creating the PI like this still allows us to do Apple Pay (from like an iPhone's apple pay) even though it's not passed in as a payment_method
Hello there
what's the difference between the apple wallet and the "Apple Pay" feature
Apple Pay is just a card or card_present payment method type
Since the customer is still just paying with a Card here
what about the 'apple pay" on the PI form?
So the crux of the question is how to prevent a customer using Apple Pay when charging via the M2, correct?
Not sure what you mean by "PI form"?
no we WANT them to use apple pay on M2 not the "Stripe element" form where you can actually type in the CC number into the web
but we want to use the same PI for both, and let them choose which method to use for payment
Gotcha. Okay well if you want to use the same PI for both then you need to provide card as a payment method type as well. Then you can diable Apple Pay on the web when you actually create Payment Element by setting apple_pay: never: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets-applePay
Oh gotcha, so that would be at the "form" level rather than the PI side of things for Apple pay. Perfect
Yep
what's the difference between card and card_present
card is for online transactions (card not present)
card_present is for... card present 🙂
what is this for?
'automatic_payment_methods' => [
'enabled' => false,
],
what's the diff between automatic_payment_methods and payment_methods
That is for controlling card not present payment method types via your Dashboard
so is that code necessary?
No since the default is false
You need one of payment_method_types or automatic_payment_methods
But since you want to support both card and card_present here you should use payment_method_types
and that just pulls from settings?
Yes that's correct. But automatic payment methods doesn't handle card_present.
and in order to accept the Apple/Google "tap to pay" wallet, we don't need Apple_pay enabled for the M2 reader
that's just "card_present"
Correct