serviceFee
QUERYThis call will allow you to calculate what the fee amount should be if using SERVICE_FEE for a transaction.
Arguments
merchant_uidRequired
The Pay Theory unique identifier for the merchant the transaction is for.
amountRequired
The amount of the transaction.
bank_id
The first 6 to 8 digits of a card number. An error will be thrown if it is any other length.
payment_type
-
is_ach
If the transaction is an ACH transaction.
payment_method_id
The Pay Theory unique identifier for a tokenized payment method to calculate fees for.
Response
ServiceFeeCalculation
fee_limit_reached
The fee limit reached.
fee
The amount that the service fee should be based on the amount passed in.
total
The total amount of the transaction before the service fee. This is what you would want to pass in the amount argument for the createOneTimePayment call.
adjusted_total
The total amount of the transaction after the service fee. This is what you would want to show the payor the total amount of the transaction will be.