-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
191 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/Modules/OrchardCore.Commerce.Payment.Stripe/Services/IStripeSessionEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using OrchardCore.Commerce.Payment.Stripe.Models; | ||
using Stripe; | ||
using Stripe.Checkout; | ||
using Stripe.Checkout; | ||
using System.Threading.Tasks; | ||
|
||
namespace OrchardCore.Commerce.Payment.Stripe.Services; | ||
|
||
public interface IStripeSessionEventHandler | ||
{ | ||
Task StripeSessionDataCreatingAsync(StripeSessionData sessionData, Session session, Customer customer); | ||
Task StripeSessionCreatingAsync(SessionCreateOptions options) => Task.CompletedTask; | ||
Task StripeSessionCreatedAsync(Session session, SessionCreateOptions options) => Task.CompletedTask; | ||
} |
11 changes: 1 addition & 10 deletions
11
src/Modules/OrchardCore.Commerce.Payment.Stripe/Services/IStripeSessionService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
using OrchardCore.Commerce.Payment.Stripe.Models; | ||
using Stripe; | ||
using Stripe.Checkout; | ||
using System.Collections.Generic; | ||
using Stripe.Checkout; | ||
using System.Threading.Tasks; | ||
|
||
namespace OrchardCore.Commerce.Payment.Stripe.Services; | ||
|
||
public interface IStripeSessionService | ||
{ | ||
Task<Session> CreateSessionAsync(SessionCreateOptions options); | ||
|
||
Task<StripeSessionDataSave> SaveSessionDataAsync(Customer customer, Session session); | ||
|
||
Task<IEnumerable<StripeSessionData>> GetAllSessionDataAsync(string userId, string invoiceId, string sessionId); | ||
|
||
Task<StripeSessionData> GetFirstSessionDataByInvoiceIdAsync(string invoiceId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.