WP Manifestindependent plugin directory
manifest / ecommerce / rebill-for-woocommerce

Rebill Payment Gateway for WooCommerce

Accept credit and debit card payments via Rebill's secure hosted checkout. No PCI compliance required.

★ 0stars
v1.1.0latest · 4mo ago

Install

Download source zip No release zip yet

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/abr4xas/rebill-for-woocommerce/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Accept credit and debit card payments in your WooCommerce store using Rebill's secure hosted checkout. No PCI compliance required! 🚀

🎯 Overview

This plugin seamlessly integrates Rebill's payment gateway with WooCommerce, providing a secure and hassle-free payment experience. Customers are redirected to Rebill's hosted checkout page to complete their payments, eliminating the need for PCI DSS compliance on your end.

✨ Key Features

  • 🔒 Secure Hosted Checkout - No PCI compliance certification required
  • ⚡ Quick Setup - Just add your Rebill API key and you're ready to go
  • ✅ Reliable Payment Confirmation - Server-to-server webhooks (payment.created / payment.updated) re-validated against the Rebill API, not the browser redirect
  • 💳 Installments (cuotas) - Offer installment plans, configurable per store (default 1,3,6,12) or disable for single payments
  • 💸 Full & Partial Refunds - Process refunds directly from WooCommerce admin
  • 🧱 WooCommerce Blocks Compatible - Works with both classic and block-based checkout
  • 🌍 Multi-Region Support - Accept payments from Argentina, Brazil, Colombia, Mexico, Chile, and more
  • 📱 Mobile Optimized - Responsive checkout experience on all devices

📋 Requirements

  • WordPress 6.5 or higher
  • WooCommerce 8.0 or higher
  • PHP 8.1 or higher
  • A Rebill account with API credentials

🚀 Installation

Via WordPress Admin

  1. Download the plugin ZIP file
  2. Go to Plugins → Add New → Upload Plugin
  3. Choose the downloaded ZIP file and click Install Now
  4. Click Activate Plugin

Manual Installation

  1. Upload the rebill-for-woocommerce folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to WooCommerce → Settings → Payments → Rebill

⚙️ Configuration

  1. Navigate to WooCommerce → Settings → Payments
  2. Click on Rebill to access the payment gateway settings
  3. Enable the gateway by checking Enable Rebill Payment
  4. Enter your Secret Key (obtained from your Rebill Dashboard)
  5. Configure the payment method title and description (optional)
  6. (Optional) Configure Installments — enable/disable and set the offered counts (default 1,3,6,12)
  7. Click Save changes

Webhook Setup (Required)

Payment confirmation relies on webhooks, so this step is required for reliable order status updates:

  1. Copy the Webhook URL shown in the Rebill settings page (it contains an unguessable security token — keep it private)
  2. Go to your Rebill Dashboard
  3. Navigate to the Webhooks section
  4. Add a new webhook with the copied URL
  5. Subscribe to the payment.created and payment.updated events

The plugin re-validates every webhook against the Rebill API (GET /v3/payments/{id}) before updating an order, so the browser redirect is never trusted as the source of truth.

🔄 How It Works

sequenceDiagram
    Customer->>WooCommerce: Select Rebill at checkout
    WooCommerce->>Rebill API: Create Payment Link
    Rebill API-->>WooCommerce: Return checkout URL
    WooCommerce->>Customer: Redirect to Rebill
    Customer->>Rebill: Complete payment
    Rebill-->>Customer: Redirect back to store
    Rebill->>WooCommerce: Send webhook notification
    WooCommerce->>Customer: Show order confirmation

📖 Usage

For Customers

  1. Add products to cart
  2. Proceed to checkout
  3. Select "Rebill" as the payment method
  4. Click "Place Order"
  5. Complete payment on Rebill's secure page
  6. Automatically return to your store

For Store Owners

Processing Refunds

  1. Go to WooCommerce → Orders
  2. Open the order you want to refund
  3. Click Refund
  4. Enter the refund amount (full or partial)
  5. Click Refund via Rebill

Note: Refunds require the payment to have been confirmed via webhook (the plugin stores the real pay_... id from it). Card payments only — other methods must be refunded from the Rebill dashboard.

🛠️ Development

Project Structure

rebill-for-woocommerce/
├── assets/
│   ├── css/
│   │   └── rebill-checkout.css
│   └── img/
│       └── rebill-logo.svg
├── includes/
│   ├── blocks/
│   │   └── class-wc-gateway-rebill-blocks-support.php
│   ├── class-rebill-api.php
│   └── class-wc-gateway-rebill.php
├── languages/
├── rebill-woocommerce.php
├── uninstall.php
├── README.md
└── readme.txt

Running Plugin Check

wp plugin check rebill-for-woocommerce --include-experimental

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 Changelog

1.1.0

  • 💳 Installments (cuotas) — enable/disable and configure the offered installment counts (default 1,3,6,12) from the gateway settings
  • 🐞 Fixed amount format — amounts are now sent in the currency's major unit (decimal) as required by the Rebill API; previous versions multiplied by 100, which could overcharge customers 100×
  • 🔐 Real webhook handler — payment.created / payment.updated with an unguessable URL secret, deduplication by logId, and authoritative confirmation via GET /v3/payments/{id}
  • 🛡️ Redirect is now UX only — orders are marked paid exclusively from the verified webhook, closing a spoofing hole where the return URL status could be forged
  • 💸 Partial refunds — refunds now use the real payment id (pay_...) and support partial amounts
  • 📝 Settings now reference the correct webhook events (the old payment-change-status no longer exists)
  • ⬆️ Tested up to WooCommerce 10.8 / WordPress 6.9

1.0.0 - 2025-02-21

  • ✨ Initial release
  • ✅ Hosted checkout implementation using Rebill Payment Links
  • ✅ Support for credit and debit cards
  • ✅ Full refund functionality
  • ✅ WooCommerce Blocks compatibility
  • ✅ WordPress.org compliance (text domain, translators comments, security fixes)

❓ FAQ

Do I need PCI compliance?

No! Because customers enter their payment details on Rebill's secure hosted page, you don't need PCI DSS compliance certification. Rebill handles all sensitive payment data.

Which countries are supported?

Rebill supports payments in multiple Latin American countries including:

  • 🇦🇷 Argentina
  • 🇧🇷 Brazil
  • 🇨🇴 Colombia
  • 🇲🇽 Mexico
  • 🇨🇱 Chile
  • And more...

Check Rebill's website for the complete list of supported regions.

Can I process refunds?

Yes! You can process both full and partial refunds directly from the WooCommerce order page. The refund is processed through Rebill's API automatically. Refunds require the payment to have been confirmed via webhook, and apply to card payments only (other methods must be refunded from the Rebill dashboard).

Can customers pay in installments (cuotas)?

Yes. Enable installments in the gateway settings and choose which counts to offer (default 1,3,6,12), or disable the option to force a single full payment. Actual availability still depends on the customer's card and issuing bank.

Is it compatible with WooCommerce Blocks?

Yes! The plugin works seamlessly with both the classic WooCommerce checkout and the new block-based checkout (Cart & Checkout Blocks).

Where can I get support?

📄 License

This plugin is licensed under the GPLv2 or later.

Copyright (C) 2026 Angel Cruz

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

👨‍💻 Author

Angel Cruz - @abr4xas

🙏 Acknowledgments

  • Rebill for providing the payment gateway API
  • The WordPress and WooCommerce communities
  • All contributors who help improve this plugin

Made with ❤️ by Angel Cruz

Releases

1 release.

Tag
Published
v1.1.0 latest
Jul 21, 2026 4mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.