-
Notifications
You must be signed in to change notification settings - Fork 90
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
Use PaymentIntentId directly instead of by PaymentIntentPersistence #497
Conversation
@sarahelsaig Please review the code |
src/Modules/OrchardCore.Commerce.Payment.Stripe/Abstractions/IStripePaymentService.cs
Outdated
Show resolved
Hide resolved
src/Modules/OrchardCore.Commerce.Payment.Stripe/Assets/Scripts/stripe-payment-form.js
Outdated
Show resolved
Hide resolved
src/Modules/OrchardCore.Commerce.Payment/Abstractions/IPaymentProvider.cs
Outdated
Show resolved
Hide resolved
src/Modules/OrchardCore.Commerce.Payment/Controllers/PaymentController.cs
Outdated
Show resolved
Hide resolved
@@ -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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too:
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId, string? paymentIntentId); | |
Task<IList<string>> ValidateErrorsAsync(string providerName, string? shoppingCartId, string? paymentId); |
…StripePaymentService.cs Co-authored-by: Sára El-Saig <[email protected]>
@@ -107,7 +104,7 @@ window.stripePaymentForm = function stripePaymentForm( | |||
}); | |||
} | |||
|
|||
const validationJson = await fetchPost(validateUrl); | |||
const validationJson = await fetchPost(validateUrl + '/' + paymentIntentId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const validationJson = await fetchPost(validateUrl + '/' + paymentIntentId); | |
const validationJson = await fetchPost($"{validateUrl}/{paymentIntentId}"); |
There was a problem hiding this comment.
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. 🫠
src/Modules/OrchardCore.Commerce.Payment.Stripe/Assets/Scripts/stripe-payment-form.js
Outdated
Show resolved
Hide resolved
…/stripe-payment-form.js Co-authored-by: Sára El-Saig <[email protected]>
Fixes #484