Calculate Payment Processing Cost
Returns what it costs to process a donation through a gateway.
amount you pass, and includes the amount added when donorCoverCosts is true.
401, so the causes aren’t listed with the responses here. Errors still arrive in the ProblemDetails envelope the rest of the Raise API uses — handle a rejected request (400), and a path ID that doesn’t resolve (404), as you would on any other endpoint.Authorizations
JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
Path Parameters
The organization identifier.
Query Parameters
The ID of the payment gateway the donation would be processed through.
The donation amount to calculate the cost for.
The card brand the donor would pay with, for example Visa or Mastercard. Rates can differ by brand.
The two-letter country code the card was issued in. Rates can differ for cards issued outside the organization's country.
The ID of the payment method the donor would pay with, when one has already been created.
The type of payment method the donor would pay with, for example CreditCard or ACH.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 When true, the response includes the amount that would be added to the gift for the donor to cover the processing cost.
The three-letter ISO currency code of the amount. Defaults to the organization's currency.
Response
OK