Skip to content
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

feat(paymentmethods): boleto Payment Method Integration #195

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

vsrivatsa-juspay
Copy link
Contributor

No description provided.

akash-c-k
akash-c-k previously approved these changes Mar 4, 2024
src/LocaleString.res Outdated Show resolved Hide resolved
prafulkoppalkar
prafulkoppalkar previously approved these changes Mar 4, 2024
Copy link
Contributor

@prafulkoppalkar prafulkoppalkar left a comment

Choose a reason for hiding this comment

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

Please resolve comments, Rest looks fine

akash-c-k
akash-c-k previously approved these changes Mar 4, 2024
prafulkoppalkar
prafulkoppalkar previously approved these changes Mar 4, 2024
Co-authored-by: ArushKapoorJuspay <121166031+ArushKapoorJuspay@users.noreply.github.com>
None
}, [complete])

let submitCallback = React.useCallback((ev: Window.event) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please add socialSecurityNumber as a dependency for useCallback

let socialSecurityNumberBlur = ev => {
let val = ReactEvent.Focus.target(ev)["value"]->cleanSocialSecurityNumber
if val->Js.String2.length != 11 && val->Js.String2.length > 0 {
setSocialSecurityNumberError(_ => "The social security number entered is invalid.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add this to LocaleString

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would like to take this separately as refactoring. Same needs to be done in other input field errors such as blik code, sort code etc

<div className="flex flex-col h-full justify-between items-center">
<div className=" flex flex-col max-w-md justify-between items-center">
<div className="flex flex-row w-full">
<p className="Disclaimer font-medium text-sm text-[#151A1F] opacity-70">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this className Disclaimer being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This class was present in the qr modal as well, just reused it

<button
className="w-full mt-6 p-2 h-[40px]"
style={ReactDOMStyle.make(
~background="#006DF9",
Copy link
Contributor

Choose a reason for hiding this comment

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

@prafulkoppalkar should we use theme for these background and color?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I personally don't think so. These are fullscreen modals not using theme-based/merchant custom styling

Copy link
Contributor

Choose a reason for hiding this comment

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

but these are themeVariables right ..popups will look out of sync with rest of the SDK

@akash-c-k akash-c-k merged commit f4fc04d into main Mar 5, 2024
@akash-c-k akash-c-k deleted the feat/boleto_payment_method branch March 5, 2024 05:58
akash-c-k pushed a commit that referenced this pull request Mar 5, 2024
# [0.27.0](v0.26.4...v0.27.0) (2024-03-05)

### Features

* **paymentmethods:** boleto Payment Method Integration ([#195](#195)) ([f4fc04d](f4fc04d))
@@ -284,6 +284,40 @@ let intentCall = (
("iframeId", iframeId->Js.Json.string),
("metadata", metaData->Js.Json.object_),
])
} else if intent.nextAction.type_ === "display_voucher_information" {
let voucherData = intent.nextAction.voucher_details->Belt.Option.getWithDefault({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
let voucherData = intent.nextAction.voucher_details->Belt.Option.getWithDefault({
let voucherData = intent.nextAction.voucher_details->Belt.Option.getWithDefault(getVoucherDetails(Js.Json.null))

rising-dragon401 added a commit to rising-dragon401/hyperswitch-web that referenced this pull request Jul 2, 2024
# [0.27.0](juspay/hyperswitch-web@v0.26.4...v0.27.0) (2024-03-05)

### Features

* **paymentmethods:** boleto Payment Method Integration ([#195](juspay/hyperswitch-web#195)) ([f4fc04d](juspay/hyperswitch-web@f4fc04d))
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.

None yet

5 participants