Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EShop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
EShop
Commits
6905942e
Commit
6905942e
authored
May 06, 2020
by
gdlcf88
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try register FreePaymentServiceProvider
parent
a647720b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
EasyAbp.EShop.Payments.WeChatPay.Domain.csproj
...Pay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj
+1
-1
EShopPaymentDomainModule.cs
...EasyAbp.EShop.Payments.Domain/EShopPaymentDomainModule.cs
+9
-1
EasyAbp.EShop.Payments.Domain.csproj
...Shop.Payments.Domain/EasyAbp.EShop.Payments.Domain.csproj
+0
-1
FreePaymentServiceProvider.cs
...op.Payments.Domain/Payments/FreePaymentServiceProvider.cs
+5
-0
No files found.
modules/EasyAbp.EShop.Payments.WeChatPay/src/EasyAbp.EShop.Payments.WeChatPay.Domain/EasyAbp.EShop.Payments.WeChatPay.Domain.csproj
View file @
6905942e
...
...
@@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="2.5.0" />
<ProjectReference Include="..\..\..\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.
Abstractions\EasyAbp.EShop.Payments.Abstractions
.csproj" />
<ProjectReference Include="..\..\..\EasyAbp.EShop.Payments\src\EasyAbp.EShop.Payments.
Domain\EasyAbp.EShop.Payments.Domain
.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Payments.WeChatPay.Domain.Shared\EasyAbp.EShop.Payments.WeChatPay.Domain.Shared.csproj" />
</ItemGroup>
...
...
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EShopPaymentDomainModule.cs
View file @
6905942e
using
EasyAbp.EShop.Stores
;
using
EasyAbp.EShop.Payments.Payments
;
using
EasyAbp.EShop.Stores
;
using
Microsoft.Extensions.DependencyInjection
;
using
Volo.Abp
;
using
Volo.Abp.Modularity
;
namespace
EasyAbp.EShop.Payments
...
...
@@ -9,6 +12,11 @@ namespace EasyAbp.EShop.Payments
)]
public
class
EShopPaymentsDomainModule
:
AbpModule
{
public
override
void
OnApplicationInitialization
(
ApplicationInitializationContext
context
)
{
var
resolver
=
context
.
ServiceProvider
.
GetService
<
IPaymentServiceResolver
>();
resolver
.
TryRegisterProviderAsync
(
"Free"
,
typeof
(
FreePaymentServiceProvider
));
}
}
}
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/EasyAbp.EShop.Payments.Domain.csproj
View file @
6905942e
...
...
@@ -10,7 +10,6 @@
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Domain" Version="2.5.0" />
<ProjectReference Include="..\..\..\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain.Shared\EasyAbp.EShop.Stores.Domain.Shared.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Payments.Abstractions\EasyAbp.EShop.Payments.Abstractions.csproj" />
<ProjectReference Include="..\EasyAbp.EShop.Payments.Domain.Shared\EasyAbp.EShop.Payments.Domain.Shared.csproj" />
</ItemGroup>
...
...
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain/Payments/FreePaymentServiceProvider.cs
View file @
6905942e
...
...
@@ -8,6 +8,11 @@ namespace EasyAbp.EShop.Payments.Payments
[
Dependency
(
ServiceLifetime
.
Transient
,
TryRegister
=
true
)]
public
class
FreePaymentServiceProvider
:
IPaymentServiceProvider
{
public
FreePaymentServiceProvider
()
{
}
public
async
Task
<
Payment
>
PayForOrderAsync
(
Payment
payment
,
Dictionary
<
string
,
object
>
extraProperties
=
null
)
{
throw
new
System
.
NotImplementedException
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment