We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ef4d9 commit 3d85a32Copy full SHA for 3d85a32
2 files changed
.changeset/short-laws-warn.md
@@ -0,0 +1,5 @@
1
+---
2
+"@godaddy/react": patch
3
4
+
5
+Send major unit price for square payments
packages/react/src/components/checkout/payment/utils/use-build-payment-request.ts
@@ -551,7 +551,12 @@ export function useBuildPaymentRequest(): {
551
};
552
553
const squarePaymentRequest: SquarePaymentRequest = {
554
- amount: (totals?.total?.value || 0).toString(),
+ amount: formatCurrency({
555
+ amount: totals?.total?.value || 0,
556
+ currencyCode,
557
+ inputInMinorUnits: true,
558
+ returnRaw: true,
559
+ }),
560
billingContact: {
561
givenName: order?.billing?.firstName || '',
562
familyName: order?.billing?.lastName || '',
0 commit comments