Epinova's take on Arvato's AfterPay payment gateway API. All about invoices and down payment plans.
No configuration via config files are needed, but you can set up different API endpoint addresses for different environments via an appSetting.
web.config:
<configuration>
<appSettings>
<!-- Test environment: -->
<add key="AfterPay.Api.BaseAddress" value="https://sandboxapi.horizonafs.com/eCommerceServicesWebApi/" />
<!-- Production environment: -->
<add key="AfterPay.Api.BaseAddress" value="https://api.afterpay.io/" />
<appSettings>
</configuration>
If not provided the production URL is used by default.
If using Structuremap:
container.Configure(
x =>
{
x.Scan(y =>
{
y.TheCallingAssembly();
y.WithDefaultConventions();
});
x.AddRegistry<Epinova.ArvatoPaymentGateway.InvoiceGatewayRegistry>();
});
If you cannot use the structuremap registry provided with this module, you can manually set up InvoiceGatewayService for IInvoiceGatewayService & ICustomerLookupService.
Epinova.ArvatoPaymentGateway.IInvoiceGatewayService describes the main invoice gateway service. Epinova.ArvatoPaymentGateway.ICustomerLookupService describes the customer lookup service.
- Epinova.Infrastructure >= v11.1.0.95.
- EPiServer.Framework >= v11.1 for logging purposes.
- Automapper >= v9.0 for mapping models.
- StructureMap >= v4.7 for registering service contract.
The module is published on nuget.org.
nuget install Epinova.ArvatoPaymentGateway
- .NET Standard 2.0
- Tests target .NET Core 2.1
- Tarjei Olsen - Initial work - apeneve
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details