You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
With preserving current commissions, the total payment amount would go to vendors, therefore no commission for the admin account (even if commissions are set).
It is because the total commission is billed monthly to vendors.
Describe the solution you'd like
Add two apply_filters() hooks to /dokan-pro/modules/stripe/includes/IntentController.php
With these hooks, developers will have the opportunity to modify application fees at Stripe connect gateway.
Describe alternatives you've considered
Unfortunately I found no other solutions, because these variables are determined by dokan()->commission->get_earning_by_order()
function, which is used in many other places, and its output cannot be altered only for this case.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
With preserving current commissions, the total payment amount would go to vendors, therefore no commission for the admin account (even if commissions are set).
It is because the total commission is billed monthly to vendors.
Describe the solution you'd like
Add two apply_filters() hooks to /dokan-pro/modules/stripe/includes/IntentController.php
line 293:
$vendor_raw_earning = apply_filters( 'dokan_stripe_commission_seller', dokan()->commission->get_earning_by_order( $tmp_order, 'seller' ), $tmp_order );
original:
$vendor_raw_earning = dokan()->commission->get_earning_by_order( $tmp_order, 'seller' );
line 331:
$application_fee = apply_filters( 'dokan_stripe_commission_admin', dokan()->commission->get_earning_by_order( $tmp_order, 'admin' ) );
original:
$application_fee = dokan()->commission->get_earning_by_order( $tmp_order, 'admin' );
With these hooks, developers will have the opportunity to modify application fees at Stripe connect gateway.
Describe alternatives you've considered
Unfortunately I found no other solutions, because these variables are determined by
dokan()->commission->get_earning_by_order()
function, which is used in many other places, and its output cannot be altered only for this case.
Additional context
No response
The text was updated successfully, but these errors were encountered: