Interface PaymentResponseUtil
- All Known Implementing Classes:
DefaultPaymentResponseUtil
public interface PaymentResponseUtil
-
Method Summary
Modifier and TypeMethodDescriptionbuildInitialPaymentResponse
(@NonNull GatewayTransactionResponse transactionResponse, @NonNull PaymentGatewayType gatewayType) Builds and populates aPaymentResponse
based on the providedGatewayTransactionResponse
andPaymentGatewayType
buildPaymentResponse
(@NonNull PaymentRequest paymentRequest, @NonNull PaymentGatewayType gatewayType, @NonNull TransactionType transactionType) Builds and populates aPaymentResponse
based on the providedPaymentRequest
-
Method Details
-
buildPaymentResponse
PaymentResponse buildPaymentResponse(@NonNull @NonNull PaymentRequest paymentRequest, @NonNull @NonNull PaymentGatewayType gatewayType, @NonNull @NonNull TransactionType transactionType) Builds and populates aPaymentResponse
based on the providedPaymentRequest
- Parameters:
paymentRequest
- the PaymentRequest used to initiate the related transactiongatewayType
- the type of gateway used to execute the transactiontransactionType
- the type of transaction that was executed- Returns:
- a PaymentResponse populated based on the provided PaymentRequest
-
buildInitialPaymentResponse
PaymentResponse buildInitialPaymentResponse(@NonNull @NonNull GatewayTransactionResponse transactionResponse, @NonNull @NonNull PaymentGatewayType gatewayType) Builds and populates aPaymentResponse
based on the providedGatewayTransactionResponse
andPaymentGatewayType
- Parameters:
transactionResponse
- the GatewayTransactionResponse used to create the related transactiongatewayType
- the type of gateway used to execute the transaction- Returns:
- a PaymentResponse populated based on the provided GatewayTransactionResponse and Payment
-