Browse Source

Merge pull request #22945 from abpframework/feat/update-payment-custom-gateway

Add project names to each seciton in payment-custom-gateway.md
pull/22946/head
İsmail ÇAĞDAŞ 1 year ago
committed by GitHub
parent
commit
75c201bed0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      docs/en/modules/payment-custom-gateway.md

6
docs/en/modules/payment-custom-gateway.md

@ -6,7 +6,7 @@ This document explains creating custom a payment gateway that's different than t
## Creating Core Operations ## Creating Core Operations
- Create **MyPaymentGateway.cs** and implement `IPaymentGateway` - Create **MyPaymentGateway.cs** in the **Domain** layer of your project and implement `IPaymentGateway`.
```csharp ```csharp
public class MyPaymentGateway : IPaymentGateway, ITransientDependency public class MyPaymentGateway : IPaymentGateway, ITransientDependency
@ -57,7 +57,7 @@ This document explains creating custom a payment gateway that's different than t
} }
``` ```
- You should configure your gateway in `PaymentOptions` - You should also configure `PaymentOptions` for your gateway in the **Domain** layer of your project as shown below.
```csharp ```csharp
Configure<PaymentOptions>(options => Configure<PaymentOptions>(options =>
@ -119,7 +119,7 @@ There are 2 types of pages that are supported by default. You can define a pre-p
<h3>Operation Done</h3> <h3>Operation Done</h3>
``` ```
- Configure your pages in `PaymentWebOptions` - Configure your pages using `PaymentWebOptions` in **Web** layer of your project.
```csharp ```csharp
Configure<PaymentWebOptions>(options => Configure<PaymentWebOptions>(options =>

Loading…
Cancel
Save