Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Paiwise.IPaymentService Interface Reference

Interface for information about a service provider that users can use to pay for services. More...

Inheritance diagram for Paiwise.IPaymentService:
Paiwise.IServiceProvider Waher.Runtime.Inventory.IProcessingSupport< CaseInsensitiveString > Paiwise.Internal.BuyEDalerPaymentService TAG.Payments.Script.Providers.Payment.PaymentService

Public Member Functions

Task< PaymentResultPay (decimal Amount, string Currency, string Description, string SuccessUrl, string FailureUrl, string CancelUrl, ClientUrlEventHandler ClientUrlCallback, object State)
 Processes a payment. More...
 
Grade Supports (T Object)
 If the interface understands objects such as Object . More...
 

Properties

IPaymentServiceProvider PaymentServiceProvider [get]
 Reference to service provider. More...
 
string Id [get]
 ID of service provider. More...
 
string Name [get]
 Displayable name of service provider. More...
 
string IconUrl [get]
 Optional URL to icon of service provider. More...
 
int IconWidth [get]
 Width of icon, if available. More...
 
int IconHeight [get]
 Height of icon, if available. More...
 

Detailed Description

Interface for information about a service provider that users can use to pay for services.

Definition at line 10 of file IPaymentService.cs.

Member Function Documentation

◆ Pay()

Task< PaymentResult > Paiwise.IPaymentService.Pay ( decimal  Amount,
string  Currency,
string  Description,
string  SuccessUrl,
string  FailureUrl,
string  CancelUrl,
ClientUrlEventHandler  ClientUrlCallback,
object  State 
)

Processes a payment.

Parameters
AmountAmount to be paid.
CurrencyCurrency
DescriptionDescription of payment.
SuccessUrlOptional Success URL the service provider can open on the client from a client web page, if payment has succeeded.
FailureUrlOptional Failure URL the service provider can open on the client from a client web page, if payment has succeeded.
CancelUrlOptional Cancel URL the service provider can open on the client from a client web page, if payment has succeeded.
ClientUrlCallbackMethod to call if the payment service requests an URL to be displayed on the client.
StateState object to pass on the callback method.
Returns
Result of operation.

Implemented in Paiwise.Internal.BuyEDalerPaymentService, and TAG.Payments.Script.Providers.Payment.PaymentService.

◆ Supports()

Grade Waher.Runtime.Inventory.IProcessingSupport< T >.Supports ( Object)
inherited

If the interface understands objects such as Object .

Parameters
ObjectObject
Returns
How well objects of this type are supported.

Property Documentation

◆ IconHeight

◆ IconUrl

◆ IconWidth

◆ Id

◆ Name

◆ PaymentServiceProvider

IPaymentServiceProvider Paiwise.IPaymentService.PaymentServiceProvider
get

Reference to service provider.

Implemented in Paiwise.Internal.BuyEDalerPaymentService, and TAG.Payments.Script.Providers.Payment.PaymentService.

Definition at line 15 of file IPaymentService.cs.


The documentation for this interface was generated from the following file: