Problem with transactionInfo.totalPrice vs totalPriceStatus=NOT_CURRENTLY_KNOWN #203
Unanswered
dostiguyLII
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the React google-pay-button, by definition, the transactionInfo.totalPrice is required. If we remove it, it won't compile.
However it should be optional, like documented, when transactionInfo.totalPriceStatus = NOT_CURRENTLY_KNOWN.
If we leave it there in the code (otherwise not compiling) then at runtime we get the following error
"DEVELOPER_ERROR in loadPaymentData: PaymentDataRequest.transactionInfo.totalPrice should not be set for totalPriceStatus = NOT_CURRENTLY_KNOWN!"
Beta Was this translation helpful? Give feedback.
All reactions