Skip to content

Conversation

@rasbhat
Copy link

@rasbhat rasbhat commented Jan 9, 2026

A registered customer will be able to save payment method.

Description

Screenshot 2026-01-09 at 7 16 31 AM

Types of Changes

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Documentation update
  • Breaking change (could cause existing functionality to not work as expected)
  • Other changes (non-breaking changes that does not fit any of the above)

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

  • (change1)

How to Test-Drive This PR

  • (step1)

Checklists

General

  • Changes are covered by test cases
  • CHANGELOG.md updated with a short description of changes (not required for documentation updates)

Accessibility Compliance

You must check off all items in one of the follow two lists:

  • There are no changes to UI

or...

Localization

  • Changes include a UI text update in the Retail React App (which requires translation)

@rasbhat rasbhat requested a review from a team as a code owner January 9, 2026 17:24
@salesforce-cla
Copy link

salesforce-cla bot commented Jan 9, 2026

Thanks for the contribution! It looks like @rvishwanathbhat is an internal user so signing the CLA is not required. However, we need to confirm this.

@cc-prodsec
Copy link
Collaborator

cc-prodsec commented Jan 9, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

)
})

// Store the updated basket for potential cleanup on cancel
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove so many of these descriptive comments?

Copy link
Author

Choose a reason for hiding this comment

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

Guess they were removed by mistake. Added them again. Few extra spaces have been added along, will clear them up the next iteration, as it's not allowing me to just push spacebar changes.

statusCode,
errorMessage,
errorDetails,
requestBody: JSON.parse(JSON.stringify(requestBody)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

How can we be sure it's safe to log the entire request body? If we keep this, let's please not do parse(stringify()).

Copy link
Author

Choose a reason for hiding this comment

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

Removed the Request body. Modified to log only error details.


const account = findPaymentAccount(paymentMethodSetAccounts, paymentMethodType)
if (!account) {
return paymentMethodType === 'card' ? 'stripe' : null
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand the need for these fallbacks. Also, can we put constants in a file to use here instead of repeating strings?

Copy link
Author

Choose a reason for hiding this comment

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

Removed these, now just returning null if an account isn't found.

@jeffraab-sfdc
Copy link
Collaborator

@rasbhat I saw the save as default checkbox in the screenshot. Since we don't support default SPM yet, should we suppress that checkbox?

@rasbhat
Copy link
Author

rasbhat commented Jan 9, 2026

@rasbhat I saw the save as default checkbox in the screenshot. Since we don't support default SPM yet, should we suppress that checkbox?

Makes sense, I've disabled the save as default checkbox.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants