#DeepITM
1 messages · Page 1 of 1 (latest)
You mean collect via ApplePay or via PaymentElement?
Via payment element with the Apple Pay method. (In mobile website)
So there are 2 ways: collect via the PaymentElement itself, or collect via the ApplePay sheet. Do you refer to the latter?
Right. I guess is passing some variables in? Can’t find the doc for that.
Yeah I know it's possible with PaymentRequestButton to control Apple to collect address. But with PaymentElement haven't found the parameter. Probably you should rely on the PaymentElement itself to collect the address, by making sure the billingDetails here are all auto
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails
ok let me take a look
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');
‘