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

Use PaymentIntentId directly instead of by PaymentIntentPersistence #497

Merged
merged 6 commits into from
Sep 30, 2024

Conversation

infofromca
Copy link
Contributor

@infofromca infofromca commented Sep 16, 2024

Fixes #484

@infofromca infofromca closed this Sep 16, 2024
@infofromca infofromca reopened this Sep 16, 2024
@infofromca
Copy link
Contributor Author

@sarahelsaig Please review the code

@@ -94,7 +94,7 @@ Task UpdateOrderToOrderedAsync(
/// <param name="providerName">The name of provider.</param>
/// <param name="shoppingCartId">Shopping Cart.</param>
/// <returns>The list of the errors.</returns>
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId);
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId, string? paymentIntentId);
Copy link
Contributor

Choose a reason for hiding this comment

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

Here too:

Suggested change
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId, string? paymentIntentId);
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId, string? paymentId);

@@ -107,7 +104,7 @@ window.stripePaymentForm = function stripePaymentForm(
});
}

const validationJson = await fetchPost(validateUrl);
const validationJson = await fetchPost(validateUrl + '/' + paymentIntentId);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const validationJson = await fetchPost(validateUrl + '/' + paymentIntentId);
const validationJson = await fetchPost($"{validateUrl}/{paymentIntentId}");

Copy link
Contributor

Choose a reason for hiding this comment

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

That's not valid Javascript. 🫠

@sarahelsaig sarahelsaig merged commit 6427cd6 into OrchardCMS:main Sep 30, 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.

Too many Api calls will incur many issues, and also take more time (OCC-284)
3 participants