Skip to content

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

Merged
blushi merged 3 commits into
devfrom
fix-APP-913-stripe-link-issue
Aug 3, 2026
Merged

blushi merged 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 7c03201
🔍 Latest deploy log https://app.netlify.com/projects/terrasos/deploys/6a7061d2b2996f000834a5fc
😎 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.

@blushi

blushi commented May 19, 2026

Copy link
Copy Markdown
Member Author

@erikalogie @S4mmyb see testing instructions

@blushi
blushi force-pushed the fix-APP-913-stripe-link-issue branch from 3f0d821 to 7c03201 Compare August 3, 2026 09:39
@mergify

mergify Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@blushi
blushi merged commit 48c6e61 into dev Aug 3, 2026
15 checks passed
@blushi
blushi deleted the fix-APP-913-stripe-link-issue branch August 3, 2026 09:52
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