SplitDriverInterface¶
Source: view src/Contracts/SplitDriverInterface.php
Generated from the public PHP contract and its PHPDoc. Driver support varies; check
instanceof or GatewayCapabilities before calling optional gateway capabilities.
createSplit¶
Create a transaction split for dividing payments among multiple subaccounts. Expected $data keys: name (string) required — split name type (string) required — 'percentage' or 'flat' currency (string) required — supported currency code subaccounts (array) required — [{subaccount: 'ACCT_xxx', share: 50}] bearer_type (string) optional — 'subaccount', 'account', 'all-proportional', 'all' bearer_subaccount (string) optional — subaccount code if bearer_type is 'subaccount'
listSplits¶
List all transaction splits.
getSplit¶
Retrieve a single split by ID.
updateSplit¶
Update a split's configuration.
addSubaccountToSplit¶
Add or update a subaccount's share in a split.
removeSubaccountFromSplit¶
Remove a subaccount from a split.