Class DefaultMyFatoorahInitiatePaymentService
java.lang.Object
com.broadleafcommerce.myfatoorah.service.DefaultMyFatoorahInitiatePaymentService
- All Implemented Interfaces:
MyFatoorahInitiatePaymentService
public class DefaultMyFatoorahInitiatePaymentService
extends Object
implements MyFatoorahInitiatePaymentService
This service is responsible for making call to the MyFatoorah init-payment endpoint through
MyFatoorahProvider
- Author:
- Divyank Chavan.
-
Constructor Summary
ConstructorDescriptionDefaultMyFatoorahInitiatePaymentService
(MyFatoorahProvider myFatoorahProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected MyFatoorahProvider
initiatePayment
(@NonNull MyFatoorahInitiatePaymentRequest initPaymentRequest, String applicationId, String tenantId) This method is responsible for calling MyFatoorah init-payment endpoint.
-
Constructor Details
-
DefaultMyFatoorahInitiatePaymentService
-
-
Method Details
-
initiatePayment
public MyFatoorahInitiatePaymentResponse initiatePayment(@NonNull @NonNull MyFatoorahInitiatePaymentRequest initPaymentRequest, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:MyFatoorahInitiatePaymentService
This method is responsible for calling MyFatoorah init-payment endpoint.- Specified by:
initiatePayment
in interfaceMyFatoorahInitiatePaymentService
- Parameters:
initPaymentRequest
- initiate payment requestapplicationId
- the application IDtenantId
- the tenant ID- Returns:
- The
MyFatoorahInitiatePaymentResponse
-
getMyFatoorahProvider
-