Nothing Special   »   [go: up one dir, main page]

Skip to content

An abp application module that provides payment service.

License

Notifications You must be signed in to change notification settings

yuansicloud/PaymentService

 
 

Repository files navigation

PaymentService

ABP version NuGet NuGet Download GitHub stars

An abp application module that provides payment service.

Online Demo

We have launched an online demo for this module: https://pay.samples.easyabp.io

Installation

  1. Install the following NuGet packages. (see how)

    • EasyAbp.PaymentService.Application
    • EasyAbp.PaymentService.Application.Contracts
    • EasyAbp.PaymentService.Domain
    • EasyAbp.PaymentService.Domain.Shared
    • EasyAbp.PaymentService.EntityFrameworkCore
    • EasyAbp.PaymentService.HttpApi
    • EasyAbp.PaymentService.HttpApi.Client
    • (Optional) EasyAbp.PaymentService.MongoDB
    • (Optional) EasyAbp.PaymentService.Web
  2. Add DependsOn(typeof(PaymentServiceXxxModule)) attribute to configure the module dependencies. (see how)

  3. Add builder.ConfigurePaymentService(); to the OnModelCreating() method in MyProjectMigrationsDbContext.cs.

  4. Add EF Core migrations and update your database. See: ABP document.

Usage

  1. Register the Free payment method, it is used to pay with 0.00 amount:

    public override void OnApplicationInitialization(ApplicationInitializationContext context)
    {
        var resolver = context.ServiceProvider.GetRequiredService<IPaymentServiceResolver>();
    
        resolver.TryRegisterProvider(FreePaymentServiceProvider.PaymentMethod, typeof(FreePaymentServiceProvider));
    }
  2. Choose the payment service providers you want:

Payment

Roadmap

  • Prepayment.
  • Support WeChatPay.
  • Support Paypal.
  • Support Alipay.
  • Support Bitcoin payment.
  • Unit tests.

About

An abp application module that provides payment service.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C# 89.3%
  • HTML 6.1%
  • JavaScript 4.6%