-
Notifications
You must be signed in to change notification settings - Fork 75
feat: embeddable bank debit PMT #4108
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
Conversation
src/screens/Connectors/PaymentProcessor/ConnectorMetaData/BankDebit/BankDebit.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorMetaData/BankDebit/BankDebit.res
Outdated
Show resolved
Hide resolved
src/screens/Connectors/PaymentProcessor/ConnectorUIUtils/PaymentMethod.res
Outdated
Show resolved
Hide resolved
|
Theres one issue thats happening steps to replicate :
Screen.Recording.2026-01-28.at.12.10.49.PM.mov |
| let handleCheckboxClick = _ => { | ||
| if paymentMethod->getPaymentMethodFromString === BankDebit { | ||
| removeOrAddMethods(value) | ||
| } | ||
| } |
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.
Can you move this function out
| if paymentMethod->getPaymentMethodFromString !== BankDebit { | ||
| removeOrAddMethods(value) | ||
| } | ||
|
|
||
| if showSideModal(value.payment_method_type->getPaymentMethodTypeFromString) { | ||
| if ( | ||
| showAdditionalDetails( | ||
| value.payment_method_type->getPaymentMethodTypeFromString, | ||
| ) | ||
| ) { | ||
| setSelectedWallet(_ => value) | ||
| } | ||
| }, |
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.
Can you also move this out
| ("payment_method", paymentMethod->JSON.Encode.string), | ||
| ("payment_method_types", [methodJson]->JSON.Encode.array), | ||
| ] | ||
| ->Dict.fromArray |
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.
use LogicUtils
| let pmDict = pmJson->getDictFromJsonObject | ||
| let pmMethod = pmDict->getString("payment_method", "")->String.toLowerCase | ||
|
|
||
| if pmMethod === targetMethod { |
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.
Please use type values to check rather than string
Type of Change
Description
Motivation and Context
How did you test it?
Where to test it?
Checklist
npm run re:build