Skip to content

Fix PaymentForm selector helper usage#2

Open
justiceo wants to merge 1 commit intomainfrom
codex/refactor-library-into-web-component
Open

Fix PaymentForm selector helper usage#2
justiceo wants to merge 1 commit intomainfrom
codex/refactor-library-into-web-component

Conversation

@justiceo
Copy link
Collaborator

@justiceo justiceo commented Oct 4, 2025

Summary

  • wrap the payment form markup and logic in a reusable <payment-form> web component
  • allow consumers to initialize the component in any container through a configurable selector
  • scope the form controller to a provided root element while keeping existing validation and formatting behavior intact
  • update the PaymentForm#getElement helper to accept full CSS selectors and adjust all usages to pass ids explicitly

Testing

  • npm test

https://chatgpt.com/codex/tasks/task_b_68e0bd106f688326bb3ffc84b16a1d28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant