Hi, I have a question about Apple Pay and Google Pay.
Is it important to provide the tax amount in the Apple / Google pay object?
Or we can just display the total amount to pay (tax included)
const paymentObj = {
requestBillingInfo: true,
currencyCode: 'USD',
countryCode: 'US',
total: {
label: 'Merchant name',
amount: '5.00',
pending: false
},
lineItems: [
{
label: 'Subtotal',
amount: '4.00',
pending: false
},
{
label: 'Tax',
amount: '1.00',
pending: false
}
]
};
VS
const paymentObj = {
requestBillingInfo: true,
currencyCode: 'USD',
countryCode: 'US',
total: {
label: 'Merchant name',
amount: '5.00',
pending: false
},
lineItems: [
{
label: 'Subtotal',
amount: '5.00',
pending: false
}
]
};
I mean we will put the correct tax amount in the pay request body to Square, but without tax amount in the token generation from Apple / Google pay button.
Will it cause a problem?