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: add samsung pay payment method support for cybersource #1650

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

JeevaRamu0104
Copy link
Collaborator

@JeevaRamu0104 JeevaRamu0104 commented Oct 24, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

image
image

Motivation and Context

How did you test it?

Under cybersource wallet you should find samsung pay as one of the payment method

Where to test it?

  • INTEG
  • SANDBOX
  • PROD

Checklist

  • I ran npm run re:build
  • I reviewed submitted code
  • I added unit tests for my changes where possible

@JeevaRamu0104 JeevaRamu0104 requested a review from a team as a code owner October 24, 2024 09:21
Copy link

Review changes with SemanticDiff.

@JeevaRamu0104 JeevaRamu0104 linked an issue Oct 24, 2024 that may be closed by this pull request
@JeevaRamu0104 JeevaRamu0104 self-assigned this Oct 24, 2024
@JeevaRamu0104 JeevaRamu0104 added the S-blocked Status: Blocked on something else or other implementation work label Oct 24, 2024
@JeevaRamu0104 JeevaRamu0104 added core Status: issues related to core and removed S-blocked Status: Blocked on something else or other implementation work labels Oct 24, 2024
@JeevaRamu0104 JeevaRamu0104 added the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Oct 24, 2024
->getArrayFromDict("countries", [])
->Array.map(item => {
let dict = item->getDictFromJsonObject
let a: SelectBox.dropdownOption = {
Copy link
Contributor

Choose a reason for hiding this comment

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

pls update the variable name

@@ -1404,6 +1407,7 @@ let itemToPMAuthMapper = dict => {
let constructConnectorRequestBody = (wasmRequest: wasmRequest, payload: JSON.t) => {
open LogicUtils
let dict = payload->getDictFromJsonObject
Js.log2(dict, "DICT")
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this log

let samsungPayFields = React.useMemo(() => {
try {
if connector->isNonEmptyString {
let dict =
Copy link
Contributor

Choose a reason for hiding this comment

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

update variable name

@@ -111,7 +112,8 @@ let make = (
</h2>
</div>
<div className="self-center">
<Button text="Proceed" buttonType={Primary} onClick={_ => onSubmit()->ignore} />
// <Button text="Proceed" buttonType={Primary} onClick={_ => onSubmit()->ignore} />
Copy link
Contributor

Choose a reason for hiding this comment

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

remove comment

@@ -152,6 +152,8 @@ let getPaymentMethodTypeFromString = paymentMethodType => {
| "apple_pay" => ApplePay
| "paypal" => PayPal
| "open_banking_pis" => OpenBankingPIS
| "samsung_pay" => SamsungPay

Copy link
Contributor

Choose a reason for hiding this comment

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

empty line addition not required here

| Select => selectInput(~field={samsungPayField}, ~formName)
| MultiSelect => multiSelectInput(~field={samsungPayField}, ~formName)
| Radio => radioInput(~field={samsungPayField}, ~formName, ~fill, ())

Copy link
Contributor

Choose a reason for hiding this comment

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

pls remove empty line addition

setScreenState(_ => Loading)
let paymentMethoConfigUrl = getURL(~entityName=PAYMENT_METHOD_CONFIG, ~methodType=Get)
let res = await fetchDetails(
`${paymentMethoConfigUrl}?connector=${connector}&paymentMethodType=apple_pay`,
Copy link
Contributor

Choose a reason for hiding this comment

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

${paymentMethoConfigUrl}?connector=${connector}&paymentMethodType=apple_pay,

Will there be paymentMethodType = applePay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Status: issues related to core S-waiting-on-review Status: This PR has been implemented and needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Samsung Pay payment method support for Cybersource
3 participants