EasyAbp.PaymentService.Prepayment.MongoDB

An abp application module that provides payment service.


Keywords
abp, easyabp, module, payment, paymentservice
License
MIT
Install
Install-Package EasyAbp.PaymentService.Prepayment.MongoDB -Version 2.16.0

Documentation

PaymentService

ABP version NuGet NuGet Download Discord online GitHub stars

An abp application module that provides payment service.

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 when the amount is 0.00:

    Configure<PaymentServiceOptions>(options =>
    {
        options.Providers.Configure<FreePaymentServiceProvider>(FreePaymentServiceProvider.PaymentMethod);
        // options.Providers.Configure<PrepaymentPaymentServiceProvider>(PrepaymentPaymentServiceProvider.PaymentMethod);
        // options.Providers.Configure<WeChatPayPaymentServiceProvider>(WeChatPayPaymentServiceProvider.PaymentMethod);
    });
  2. Choose the payment service providers you want:

Payment

Roadmap

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