SilverStripe\Omnipay\GatewayInfo::maxExcessCapturePercent
Get the max excess capture percentage for the given gateway.
Some payment providers allow capturing a slightly higher amount than was authorized. If $200.00 was authorized and maxExcessCapturePercent returns `15`, you're allowed to capture at max $230.00, unless further restricted by maxExcessCaptureAmount. To get the correct max-capture amount, both maxExcessCapturePercent and maxExcessCaptureAmount have to be considered.
Signature
public function maxExcessCapturePercent(string
$gateway )
Parameters
$gateway
— string- the gateway name
Returns
- int|string
- max excess capture percentage as a number (no percentage sign) or `-1` if the
excess capture percentage is not limited (will only occur if there's a limited fixed amount) @see maxExcessCaptureAmount