22 * Check out {@link https://developer.flutterwave.com/docs/flutterwave-standard} for more information.
33 */
44
5- export interface FlutterWaveProps {
5+ export interface FlutterWaveProps {
66 /**
77 * Your transaction reference. This MUST be unique for every transaction
88 */
@@ -66,12 +66,25 @@ export interface FlutterWaveProps {
6666 * function to be called when the payment is completed successfully
6767 */
6868 callback : ( data : FlutterWaveResponse ) => void ;
69-
69+
7070 /**
7171 * function to be called when the mono connection is closed
7272 */
7373 onclose : ( ) => void ;
7474 public_key : string ;
75+ /**
76+ * An array of objects containing the subaccount IDs to split the payment into.
77+ * e.g subaccounts: [
78+ {
79+ id: "RS_A8EB7D4D9C66C0B1C75014EE67D4D663",
80+ transaction_split_ratio: 2,
81+ transaction_charge_type: "flat_subaccount",
82+ transaction_charge: 4200,
83+ },
84+ ]
85+ * Check out {@link https://developer.flutterwave.com/docs/collecting-payments/split-payments/} for more information on subaccounts.
86+ */
87+ subaccounts ?: Array < unknown > ;
7588}
7689
7790export interface FlutterwaveConfig {
@@ -85,6 +98,7 @@ export interface FlutterwaveConfig {
8598 redirect_url ?: FlutterWaveProps [ 'redirect_url' ] ;
8699 payment_plan ?: FlutterWaveProps [ 'payment_plan' ] ;
87100 payment_options : FlutterWaveProps [ 'payment_options' ] ;
101+ subaccounts ?: FlutterWaveProps [ 'subaccounts' ] ;
88102}
89103
90104export interface InitializeFlutterwavePayment {
0 commit comments