Interface PaymentGatewayResourceProvider
-
- All Known Implementing Classes:
DefaultPaymentGatewayResourceProvider
public interface PaymentGatewayResourceProviderThis represents the main service bus for retrieving payment gateway service implementations to execute service calls programmatically. Since multiple gateways can be configured for a single implementation (like PayPal Express and Braintree, or PayPal Express, a credit card module and a gift card module) this allows you to select between them to perform additional operations on a payment transaction.- Author:
- Chris Kittrell (ckittrell)
-
-
Method Summary
-
-
-
Method Detail
-
getConfiguration
PaymentGatewayConfiguration getConfiguration(String gatewayType)
Returns the firstPaymentGatewayConfigurationthat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getTransactionService
PaymentGatewayTransactionService getTransactionService(String gatewayType)
Returns the firstPaymentGatewayTransactionServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getRollbackService
PaymentGatewayRollbackService getRollbackService(String gatewayType)
Returns the firstPaymentGatewayRollbackServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getWebhookHandler
PaymentGatewayWebhookHandler getWebhookHandler(String gatewayType)
Returns the firstPaymentGatewayWebhookHandlerthat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getReportingService
PaymentGatewayReportingService getReportingService(String gatewayType)
Returns the firstPaymentGatewayReportingServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getCustomerService
PaymentGatewayCustomerService getCustomerService(String gatewayType)
Returns the firstPaymentGatewayCustomerServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getHostedService
PaymentGatewayHostedService getHostedService(String gatewayType)
Returns the firstPaymentGatewayHostedServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getPaymentValidator
PaymentGatewayPaymentValidator getPaymentValidator(String gatewayType)
Returns the firstPaymentGatewayPaymentValidatorthat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getTransactionResponseService
PaymentGatewayTransactionResponseService getTransactionResponseService(String gatewayType)
Returns the firstPaymentGatewayTransactionResponseServicethat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getTransactionResponseValidator
PaymentGatewayTransactionResponseValidator getTransactionResponseValidator(String gatewayType)
Returns the firstPaymentGatewayTransactionResponseValidatorthat matches the givenPaymentGatewayType.- Parameters:
gatewayType- a String representation of thePaymentGatewayType- Throws:
UnsupportedOperationException- if there is no resource for the givenPaymentGatewayType.
-
getSavedPaymentMethodService
@Nullable PaymentGatewaySavedPaymentMethodService getSavedPaymentMethodService(String gatewayType)
Returns the implementation ofPaymentGatewaySavedPaymentMethodServicefor the specified gateway type or null.- Parameters:
gatewayType- thePaymentGatewayTyperelated to implementing resource- Returns:
- the implementation of
PaymentGatewaySavedPaymentMethodServicefor the specified gateway type or null
-
get3DSTransactionLookupService
PaymentGateway3DSTransactionLookupService get3DSTransactionLookupService(String gatewayType)
Returns the implementation ofPaymentGateway3DSTransactionLookupServicefor the specified gateway type.- Parameters:
gatewayType- thePaymentGatewayTyperelated to implementing resource- Returns:
- the implementation of
PaymentGateway3DSTransactionLookupServicefor the specified gateway type
-
-