Skip to content

Migrate Payment and PaymentForm to Chakra V3#2661

Merged
unandyala merged 25 commits intofeature/chakra-ui-upgrade-v3from
unandyala.chakrav3-payment
Jun 30, 2025
Merged

Migrate Payment and PaymentForm to Chakra V3#2661
unandyala merged 25 commits intofeature/chakra-ui-upgrade-v3from
unandyala.chakrav3-payment

Conversation

@unandyala
Copy link
Contributor

@unandyala unandyala commented Jun 26, 2025

Description

@W-18685094 @W-18685119
Migrate Payment and PaymentForm to Chakra V3

Chakra.V3.Payment.Demo.mov

How to Test-Drive This PR

  • Add item to cart
  • Got to checkout page
  • Checkout as guest
  • Add/Edit/Remove payment Info

@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Jun 26, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@unandyala unandyala changed the base branch from develop to feature/chakra-ui-upgrade-v3 June 26, 2025 17:06
</IconButton>
) : undefined
) : (
_inputProps?.endElement
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In v3, the pattern is to use InputGroup with an endElement prop instead of InputRightElement.

return onChange(formattedNumber)
}
},
endElement:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In v3, the pattern is to use InputGroup with an endElement prop instead of InputRightElement.

<ChakraField.Label>
<Flex align="center" justify="space-between">
<Box>{fields.securityCode.label}</Box>
<Tooltip
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ease of use, created a closed component composition for the Tooltip component as suggest in the Chakra doc

description: 'Generic credit card security code help text'
})

const handleTooltipClose = () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tooltip responds to these events by default. So we don't need this

@@ -0,0 +1,87 @@
/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For ease of use, created a closed component composition for the Tooltip component as suggest in the Chakra doc

@unandyala unandyala changed the title Unandyala.chakrav3 payment Migrate Payment and PaymetForm to Chakra V3 Jun 27, 2025
@unandyala unandyala marked this pull request as ready for review June 27, 2025 18:31
@unandyala unandyala requested a review from a team as a code owner June 27, 2025 18:31
@unandyala unandyala changed the title Migrate Payment and PaymetForm to Chakra V3 Migrate Payment and PaymentForm to Chakra V3 Jun 27, 2025
id: 'payment_selection.tooltip.secure_payment'
})}
contentProps={{
css: {'--tooltip-bg': 'colors.blue.800'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: what do you think we make a constant for tthis at the top of checkout? or do you think it is not worth it?

@unandyala unandyala merged commit 76b2e61 into feature/chakra-ui-upgrade-v3 Jun 30, 2025
33 checks passed
alexvuong pushed a commit that referenced this pull request Jul 16, 2025
Migrate Payment and PaymentForm to Chakra V3 (#2661)
@unandyala unandyala deleted the unandyala.chakrav3-payment branch July 17, 2025 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants