PaymentGatewayProvider classes implement processing for payment gateways like Verisign, QSI, etc. This is an abstract class. Implementations for specific providers should extend this class.

Namespace: Asi.iBO.Commerce
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public abstract class PaymentGatewayProvider : ProviderBase
Visual Basic
Public MustInherit Class PaymentGatewayProvider _
	Inherits ProviderBase
Visual C++
public ref class PaymentGatewayProvider abstract : public ProviderBase

Remarks

Classes that entend PaymentGatewayProvider just need to implement the ProcessPayment method, like:

override public PaymentGatewayResponse ProcessPayment(TransactionType transactionType, CPayment payment, CAddressBasic billingAddress)

Examples

Use the following sample to setup the configuration info in the config file (e.g., web.config). Place the relevant sections where they belong in the config.

<configuration>

<configSections>

<sectionGroup name="system.web">

<section name="paymentGatewayService" type="Asi.iBO.Commerce.PaymentGatewayServiceSection, Asi.iBO" allowDefinition="MachineToApplication" restartOnExternalChanges="true" />

</sectionGroup>

</configSections>

<system.web>

<paymentGatewayService defaultProvider="SamplePaymentGatewayProvider">

<providers>

<add name="SamplePaymentGatewayProvider" type="SampleNamespace.SamplePaymentGatewayProvider, SamplePaymentGatewayProvider" authorizationAccounts="VERISIGN,PaymentTech"/>

</providers>

</paymentGatewayService>

1. Replace everywhere where it says Sample with the name associated with your provider.

2. The authorizationAccounts attribute is only needed if you are using more than one provider. If so, list the names of the iMIS Authorization Accounts that should be processed by this provider.

For more details, see: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/ASPNETProvMod_Prt8.asp

Inheritance Hierarchy

System..::..Object
  System.Configuration.Provider..::..ProviderBase
    Asi.iBO.Commerce..::..PaymentGatewayProvider

See Also