Skip to content

fix: APP-913 disable 'save credit card' if Link is used#2835

Open
blushi wants to merge 3 commits into
devfrom
fix-APP-913-stripe-link-issue
Open

fix: APP-913 disable 'save credit card' if Link is used#2835
blushi wants to merge 3 commits into
devfrom
fix-APP-913-stripe-link-issue

Conversation

@blushi

@blushi blushi commented May 19, 2026

Copy link
Copy Markdown
Member

Description

https://regennetwork.atlassian.net/browse/APP-913


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

From https://deploy-preview-2835--regen-marketplace.netlify.app/project/terrasos-project-with-fiat-sell-order/buy
Choose "link" as payment method, this should disable "Save my credit card info for next time"

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@netlify

netlify Bot commented May 19, 2026

Copy link
Copy Markdown

Deploy Preview for terrasos ready!

Name Link
🔨 Latest commit 3f0d821
🔍 Latest deploy log https://app.netlify.com/projects/terrasos/deploys/6a0c5dd07b65330008c270b8
😎 Deploy Preview https://deploy-preview-2835--terrasos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces logic to handle Stripe Link payments by disabling the 'Save my credit card' option and attempts to manage React Strict Mode behavior in the purchase form. However, the review identifies two critical issues: the use of a ref to skip cleanup in AgreePurchaseForm will prevent state resets in production environments, and the removal of the elements.update call in PaymentInfoForm creates a regression for standard credit card payments where users can no longer save their payment information.

Comment thread web-marketplace/src/components/organisms/AgreePurchaseForm/AgreePurchaseForm.tsx Outdated
@blushi

blushi commented May 19, 2026

Copy link
Copy Markdown
Member Author

@erikalogie @S4mmyb see testing instructions

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.

1 participant