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
ConstructorsConstructorDescriptionDefaultMyFatoorahInitiatePaymentService(MyFatoorahProvider myFatoorahProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected MyFatoorahProviderinitiatePayment(@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:MyFatoorahInitiatePaymentServiceThis method is responsible for calling MyFatoorah init-payment endpoint.- Specified by:
initiatePaymentin interfaceMyFatoorahInitiatePaymentService- Parameters:
initPaymentRequest- initiate payment requestapplicationId- the application IDtenantId- the tenant ID- Returns:
- The
MyFatoorahInitiatePaymentResponse
-
getMyFatoorahProvider
-