-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkout: Add postal code field to Ebanx fields #24294
Conversation
@@ -36,24 +36,27 @@ export class EbanxPaymentFields extends Component { | |||
const errorMessage = this.props.getErrorMessage( fieldName ) || []; | |||
const isError = ! isEmpty( errorMessage ); | |||
|
|||
return PAYMENT_PROCESSOR_EBANX_COUNTRIES[ this.props.countryCode ].fields.indexOf( fieldName ) > -1 | |||
return PAYMENT_PROCESSOR_EBANX_COUNTRIES[ this.props.countryCode ].fields.indexOf( fieldName ) > | |||
-1 | |||
? React.createElement( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are auto-formatting only
2d631c6
to
5a0762d
Compare
b789d75
to
1e1172b
Compare
es lint errors in CI will be addressed by #24308 |
…straction Updated validation and tests Updated styles for abstracted ebanx to ensure that fields look the same in redirect and credit card boxes
1e1172b
to
fb13bf9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@ramonjd Due to:
...there appears to be some extra padding in the credit card list item: Is it intended for a specific scope, or can it be removed? (Haven't tested this PR, but can't tell what it's for from the screenshot.) |
This PR addresses an omission in #24095, whereby the abstracted Ebanx component does not contain the required postal code field.
The inevitable result is that reusing the component won't contain all the required Ebanx fields.
There are no changes to design or functionality.
Screenshot
Testing
111.444.777-35
)Expectations
At 3: You should see the normal credit card fields (including the post code field)
At 4: You should see the Ebanx extra fields
At 5: The fields should show validation messages
At 6: Valid form data should permit payment attempt