Transaction fee
post
Calculate the transaction fee for a given set of contributions.
This action takes in the contribution data, calculates the Stripe transaction fee based on the total contribution amount, and returns the transaction fee and the new total amount.
The Stripe fee is calculated as 2.9% of the total amount plus a fixed fee of $0.30.
:param request: The HTTP request object containing the contribution data in the request body. :return: A success response with the calculated transaction fee and updated total amount.
Authorizations
AuthorizationstringOptional
Bearer authentication header of the form Bearer <token>.
Body
user_idstring · uuidOptional
church_idstring · uuidOptional
cover_transaction_feesbooleanWrite-onlyOptionalDefault:
falsestart_datestring · dateOptional
payment_methodstringOptional
card_tokenstringOptional
cvvstringOptional
processor_idstringOptional
Responses
200Success
application/json
post
/api/give/contributions/transaction-fee200Success