Closed jenchuah closed 5 years ago
@rebeccajfriedman Is this the intended behaviour for paymentDue
?
This is the expected behaviour right now. We are working to make the flow more intuitive, and we'll update here when we do.
Since paymentDue
is reduced by gift card applications, and the API is expecting the full balance of the checkout, I think the solution then is to pass the totalPrice
to the payment mutation.
I don't really understand the process of a transaction.
Why we should pass the totalPrice
to the payment mutation if the paymentDue
reflects the total value that customer should pay? After all, how gift cards
are working? :)
The gift card is not charged until the checkoutCompleteWithTokenizedPayment
mutation is called, which is why it needs to accept the full amount. It will deplete the gift card before charging the remaining (paymentDue
) balance.
Hey, we've recently hit the same problem. I've checked the latest sample app and the latest sdk version and the problem still presist. How did you fix it?
I am also having same issues here. Please any can guide to solve this problem or any hint.
▿ Optional
This is a follow up from #927
The
paymentDue
is reduced by gift card applications, see Mobile Buy SDK'sCheckout
class:So when you add
paymentDue
to[PKPaymentSummaryItem]
you will get the following error because as you said the API is expecting the total since the gift card isn't charged until checkout completion.