Global Endpoints to perform Payment related transactions. BY Default, All transactions get processed through Spreedly. Virtual is provided so that the methods can be overridden and can skip the default functionality altogether.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| PaymentService | getInstance() |
| PaymentService | getSuper() |
| PaymentService | getInstance(String version) |
| void | savePaymentMethod(EPayRequest ePayRequest) |
| void | verify(EPayRequest ePayRequest ) |
| void | deletePaymentMethod(EPayRequest ePayRequest ) |
| void | capture(EPayRequest ePayRequest) |
| void | authorize(EPayRequest ePayRequest ) |
| void | purchase(EPayRequest ePayRequest ) |
| void | credit(EPayRequest ePayRequest ) |
| void | generalCredit(EPayRequest ePayRequest ) |
Method Detail
This class supports the following methods:
global static PaymentService getInstance()
Get Instance of PaymentService.
global virtual PaymentService getSuper()
Get super object
global static PaymentService getInstance(String version)
Service get instance method that will return an instance of this service, either versioned or overridden.
Parameters
| Name | Type | Description |
|---|---|---|
| version | String | undefined |
global PaymentService ()
PaymentService Constructor that should not be called directly.
global virtual EPayResponse savePaymentMethod(EPayRequest ePayRequest)
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse verify(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse deletePaymentMethod(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse capture(EPayRequest ePayRequest)
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse authorize(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse purchase(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse credit(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |
global virtual EPayResponse generalCredit(EPayRequest ePayRequest )
Parameters
| Name | Type | Description |
|---|---|---|
| ePayRequest | EPayRequest | undefined |