Package com.clover.sdk.v3.payments
Class IServiceFeeService.Default
- java.lang.Object
-
- com.clover.sdk.v3.payments.IServiceFeeService.Default
-
- All Implemented Interfaces:
IInterface
,IServiceFeeService
- Enclosing interface:
- IServiceFeeService
public static class IServiceFeeService.Default extends Object implements IServiceFeeService
Default implementation for IServiceFeeService.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.clover.sdk.v3.payments.IServiceFeeService
IServiceFeeService.Default, IServiceFeeService.Stub
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBinder
asBinder()
PaymentResponse
payServiceFee(ServiceFeeRequest request, ResultStatus resultStatus)
Calling this method will result in a payment being submitted on behalf of the associated MID that collects the service fees for your merchant.RefundResponse
refundServiceFee(ServiceFeeRefundRequest request, ResultStatus resultStatus)
Calling this method will refund the service fee previously charged The ServiceFeeRefundRequest.refund object must be populated as below: refund.amount : must match the amount of the original service charge refund.payment : populated with the original payment The RefundResponse object will indicate success or failure.
-
-
-
Method Detail
-
payServiceFee
public PaymentResponse payServiceFee(ServiceFeeRequest request, ResultStatus resultStatus) throws RemoteException
Calling this method will result in a payment being submitted on behalf of the associated MID that collects the service fees for your merchant. The request object must contain the amount, the source payment id (that the service fee is related to), and the populated vaulted card object including the token The orderId will be populated internal to the implementation The PaymentResponse will indicate if the request was successful or no. If successful, it will contain a payment object, if not, it should include an error message- Specified by:
payServiceFee
in interfaceIServiceFeeService
- Throws:
RemoteException
-
refundServiceFee
public RefundResponse refundServiceFee(ServiceFeeRefundRequest request, ResultStatus resultStatus) throws RemoteException
Calling this method will refund the service fee previously charged The ServiceFeeRefundRequest.refund object must be populated as below: refund.amount : must match the amount of the original service charge refund.payment : populated with the original payment The RefundResponse object will indicate success or failure. In the case of failure there will be an error message set. In the case of success the refund object will be echo'ed back with additional attributes (e.g id) populated- Specified by:
refundServiceFee
in interfaceIServiceFeeService
- Throws:
RemoteException
-
asBinder
public IBinder asBinder()
- Specified by:
asBinder
in interfaceIInterface
-
-