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

Pass PaymentIntentId to Client for convenience of API calling #491

Merged
merged 5 commits into from
Sep 15, 2024

Conversation

infofromca
Copy link
Contributor

Fixes #490

)
{
// If it is null it means the session was not loaded yet and a redirect is needed.
if (string.IsNullOrEmpty(_paymentIntentPersistence.Retrieve()))
if (needToJudgeIntentStorage && string.IsNullOrEmpty(_paymentIntentPersistence.Retrieve()))
Copy link
Member

Choose a reason for hiding this comment

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

What if we check the paymentIntent existence instead of introducing a new param?

Copy link
Contributor Author

@infofromca infofromca Sep 6, 2024

Choose a reason for hiding this comment

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

in your way, it is not flexible。 actually use needToJudgeIntentStorage can pass by the whole _paymentIntentPersistence system, which means I do not need _paymentIntentPersistence for store and retrieve.
and the new _paymentIntentPersistence does not influence the current code.

@sarahelsaig sarahelsaig merged commit facd4ac into OrchardCMS:main Sep 15, 2024
7 checks passed
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.

Pass PaymentIntentId to Client for convenience of API calling (OCC-289)
3 participants