#DeepITM

1 messages · Page 1 of 1 (latest)

ancient kelpBOT
granite spruce
#

You mean collect via ApplePay or via PaymentElement?

hidden fulcrum
#

Via payment element with the Apple Pay method. (In mobile website)

granite spruce
#

So there are 2 ways: collect via the PaymentElement itself, or collect via the ApplePay sheet. Do you refer to the latter?

hidden fulcrum
#

Right. I guess is passing some variables in? Can’t find the doc for that.

granite spruce
hidden fulcrum
#

ok let me take a look

hidden fulcrum
#

Looks like it is not showing. ‘const paymentElement = elements.create('payment', {
paymentMethodOrder: ['apple_pay', 'google_pay', 'card', 'klarna'],
fields :{
billingDetails: 'auto'
},
layout: {
type: 'tabs',

  }

});
paymentElement.mount('#payment-element');

granite spruce
#

It may depends on the browser location... Auto means leaving to Stripe to "best guess" whether to collect the customer Address, ideally only if needed by the country regulator or the payment methods

#

If you want to force collecting Address, Address Element is the way...

hidden fulcrum
#

So that’s not the shipping address? How about collecting shipping address?

#

I need to use the address element?