Pagar.me Split Payment with Recipient Management
Pagar.me Split Payment is a plugin that allows you to split the payment of a WooCommerce order between multiple sellers. It allows you to define the percentage of the product value that each seller will receive.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/kashanshah/pagarme-split-payment/archive/refs/heads/master.zipPagar.me Split Payment is a plugin that allows you to split the payment of a WooCommerce order between multiple sellers. It allows you to define the percentage of the product value that each seller will receive.
Right now, the plugin only works with WooCommerce and Pagar.me as payment gateway.
Requirements
- PHP 7.0 or higher
- WordPress 4.9 or higher
- WooCommerce 3.0 or higher
- Pagar.me WooCommerce plugin
Installation
- Download the plugin zip file from the [latest release](
- Go to your WordPress admin panel and click on Plugins > Add New
- Click on the "Upload Plugin" button and select the zip file you downloaded
- Click on the "Install Now" button
- Activate the plugin
- Go to WooCommerce > Settings > Payments > Pagar.me and configure your Pagar.me API keys
- Go to Pagar.me Recipients and add the main recipient.
- Go to the product you want to split the payment and set the seller in the "Product Data" metabox
- Go to file
wp-content/plugins/pagarme-payments-for-woocommerce/vendor/pagarme/ecommerce-module-core/src/Kernel/Services/APIService.phpand look for the following line:$configInfo = $this->configInfoService->retrieveInfo(""); - Add the following line after the line above:
$orderRequest = apply_filters('pagarme_modify_order_request', $orderRequest); - Done!
How it works
Right now it works only with single product checkout. When the customer buys a product, the plugin will split the payment between the main recipient and the seller of the product. The recipient defined in the product will receive the percentage of the product value defined in the product, while the main recipient will receive the remaining value.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Contributing
This project is open source and we would love your help.
To contribute, just fork the project, create a new branch and submit a pull request.
Authors
Acknowledgments
Support
If you have any questions or need help, please contact us at wordpress@teknoffice.com