Title: Split Payment
Last modified: August 1, 2025

---

# Split Payment

 *  Resolved [rafafeuer](https://wordpress.org/support/users/rafafeuer/)
 * (@rafafeuer)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/split-payment-21/)
 * Hi there!
 * I’m working on a WooCommerce + Dokan multi-vendor setup using BTCPay for WooCommerce
   v2 (latest version – 2.7.2). I’m trying to implement **split payments** using
   the `paymentMethod.destination` feature available on BTCPay Server invoices.
 * The idea is to split the payment between the marketplace and the vendor **at 
   the invoice level**, without needing custodial wallets or post-processing.
 * I added a filter in my `functions.php` to modify the invoice data like this:
 * phpCopiar
 * Editar
 * add_filter(‘btcpaywc_v2_invoice_data’, function ($data, $order) {
   $data[‘checkout’][‘
   paymentMethods’][] = [‘value’ => 95,‘destination’ => ‘[MARKETPLACE_ADDRESS]’,‘
   paymentMethod’ => ‘BTC’,];$data[‘checkout’][‘paymentMethods’][] = [‘value’ =>
   5,‘destination’ => ‘[VENDOR_ADDRESS]’,‘paymentMethod’ => ‘BTC’,];return $data;},
   10, 2);
 * However, BTCPay seems to ignore the custom destinations and routes the full amount
   to the store’s main wallet instead.
 * Questions:
    - Does the plugin support this use case?
    - Is `checkout.paymentMethods` the right key to modify?
    - Are there any specific conditions (store permissions, BTCPay version, etc)
      needed for this to work?
 * Thanks in advance for any insight!

Viewing 1 replies (of 1 total)

 *  Plugin Author [ndeet](https://wordpress.org/support/users/ndeet/)
 * (@ndeet)
 * [9 months ago](https://wordpress.org/support/topic/split-payment-21/#post-18636369)
 * Hey there, sorry for the late reply due to holidays.
 * What you want to achieve is not really possible that way the invoice will always
   have one destination address and can’t auto-forward on a per invoice basis.
 * If you only accept Lightning Network payments you can auto-forward by using the
   Prism plugin, which forwards payments based on LN-addresses. You can find it 
   in BTCPay Server under “manage plugins”.
 * ![](https://wordpress.org/a58491ca-3472-48c0-afcc-7e200d29f85f)

Viewing 1 replies (of 1 total)

The topic ‘Split Payment’ is closed to new replies.

 * ![](https://ps.w.org/btcpay-greenfield-for-woocommerce/assets/icon-256x256.png?
   rev=2674285)
 * [BTCPay Server - Accept Bitcoin payments in WooCommerce](https://wordpress.org/plugins/btcpay-greenfield-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/btcpay-greenfield-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/btcpay-greenfield-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/btcpay-greenfield-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/btcpay-greenfield-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/btcpay-greenfield-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ndeet](https://wordpress.org/support/users/ndeet/)
 * Last activity: [9 months ago](https://wordpress.org/support/topic/split-payment-21/#post-18636369)
 * Status: resolved