#DeepITM

1 messages · Page 1 of 1 (latest)

analog pecanBOT
barren lodge
#

Yes, the address is attached to the PaymentMethod object, not PaymentIntent, you should retrieve the associated PaymentMethod object from PaymentIntent to get the address

late bloom
#

I see the address from the PaymentMethod object and I can retrieve it. But looks like that’s the billing address not the shipping address

#

I am testing on desktop with ‘Link’ actually. Not the real Apple Pay

barren lodge
#

Can you share with me the PaymentIntent ID?

late bloom
#

pm_1Nl3FrDUXg0Gc8ZHRN6Rp9I6

#

In test mode

#

O that’s the payment method I’d

#

*id

#

Intent id: pi_3Nl3FcDUXg0Gc8ZH39QH0BsJ

late bloom
#

Yes. Otherwise it won’t be collected. I input shipping separately when paying with Link

barren lodge
#

Can you share with me the code your wrote for payment request?

late bloom
#

const paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Total',
amount: finalTotalPrice,
},
requestPayerName: true,
requestPayerEmail: true,
requestShipping: true,
// shippingOptions is optional at this point:
shippingOptions: [
// The first shipping option in this list appears as the default
// option in the browser payment interface.
{
id: shippingFeeToCharge ? 'shipping-fee' : 'free-shipping',
label: shippingFeeToCharge ? 'Shipping Fee' : 'Free shipping',
detail: 'Arrives in 5 to 7 days',
amount: shippingFeeToCharge ? 1000 : 0,
},
],
});

#

That’s what I see when the link payment page shows up. The shipping address is a separate input

barren lodge
#

Just to clarify, are you using Apple Pay or Link?

late bloom
#

Link right now for testing

barren lodge
#

OK.

late bloom
#

Haven’t used the actual apply pay test yet

barren lodge
late bloom
#

Ok so from frontend?

barren lodge
#

Yes you are right