#benstjohn

1 messages · Page 1 of 1 (latest)

red kayakBOT
fresh patrol
#

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

scarlet bridge
#

Hello there

fresh patrol
#

what's the difference between the apple wallet and the "Apple Pay" feature

scarlet bridge
#

Apple Pay is just a card or card_present payment method type

#

Since the customer is still just paying with a Card here

fresh patrol
#

what about the 'apple pay" on the PI form?

scarlet bridge
#

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"?

fresh patrol
#

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

scarlet bridge
fresh patrol
#

Oh gotcha, so that would be at the "form" level rather than the PI side of things for Apple pay. Perfect

scarlet bridge
#

Yep

fresh patrol
#

what's the difference between card and card_present

scarlet bridge
#

card is for online transactions (card not present)

#

card_present is for... card present 🙂

fresh patrol
#

what is this for?

#

'automatic_payment_methods' => [
'enabled' => false,
],

#

what's the diff between automatic_payment_methods and payment_methods

scarlet bridge
#

That is for controlling card not present payment method types via your Dashboard

fresh patrol
#

so is that code necessary?

scarlet bridge
#

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

fresh patrol
#

and that just pulls from settings?

scarlet bridge
#

Yes that's correct. But automatic payment methods doesn't handle card_present.

fresh patrol
#

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"

scarlet bridge
#

Correct