Breakdown (with Surcharge)
Enhanced payment amount breakdown with surcharge support. Rates can be sent as integers (old SDK format, e.g., 875 = 8.75%) or floats (new SDK format, e.g., 8.75). Values >= 100 are auto-converted from basis points.
- subtotalType: integer · Subtotalrequired
Subtotal amount in cents before tax, tip, and surcharge.
- surchargeType: object · Surcharge nullable
Surcharge configuration for a transaction. Only one of
amountorpercentagemay be set. Whenbypassis true, neither amount nor percentage should be provided.- amountType: integer | null · Amount
Fixed surcharge amount in cents. Mutually exclusive with
percentage. - bypassType: boolean · Bypass
When true, surcharge calculation is skipped entirely for this transaction. Must be false when amount or percentage is provided.
- percentageType: number | null · Percentage
Surcharge rate as a decimal (e.g., 3.5 for 3.5%). Mutually exclusive with
amount.
- taxType: integer | null · Taxamount
Amount Tax amount in cents.
- taxType: number | null · Taxrate
Rate Tax rate as a float (e.g., 8.75 for 8.75%). Integer values >= 100 are auto-divided by 100 for backward compatibility.
- tipType: integer | null · Tipamount
Amount Tip amount in cents.
- tipType: number | null · Tiprate
Rate Tip rate as a float (e.g., 15.0 for 15%). Integer values >= 100 are auto-divided by 100 for backward compatibility.
- tipType: string | null · Tiptype
Type Tip calculation method. One of:
fixed,percentage.

