Download the PHP package vatly/vatly-fluentcart without Composer

On this page you can find all versions of the php package vatly/vatly-fluentcart. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vatly-fluentcart

Vatly for FluentCart

PHP 8.1+ WordPress 6.2+ Packagist

Sell from your FluentCart store without becoming a tax expert. Vatly is the European Merchant of Record for AI, software and digital products: it is the legal seller on every sale, charges the right VAT or sales tax for each customer's country, issues the invoice, and carries the compliance burden.

A WordPress plugin that adds Vatly as a payment gateway to FluentCart. Full documentation: docs.vatly.com/packages/fluentcart.

[!WARNING] Alpha. The plugin works end to end with Vatly test mode on FluentCart 2.3, but it can still change in ways that need you to update your setup. Try it in Vatly test mode before you take live payments with it.

Why

Selling digital products across borders means VAT registration, the right rate for every country, compliant invoices and credit notes, and refunds that keep the tax records straight. With Vatly as the Merchant of Record, that is Vatly's job, not yours:

Requirements

Quick start

1. Install

From a release zip (recommended for most sites):

  1. Download the zip from the latest release. It bundles a namespace-scoped copy of the dependencies, so you don't need Composer and it can't clash with other plugins.
  2. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip, and Activate.

With Composer (for sites that manage plugins with Composer, such as Bedrock with composer/installers). The dependencies are alpha releases, so allow alpha packages first:

The plugin installs as vatly-for-fluentcart, the same directory name the zip uses, and loads its dependencies through your site's Composer autoloader. Activate it from the Plugins screen.

2. Connect Vatly

  1. Add your API credentials. Go to FluentCart → Settings → Payment Methods → Vatly, choose Test or Live mode, and paste the matching API key and Webhook secret from the Developers section of your Vatly dashboard.
  2. Register the webhook in Vatly. Under Developers in the Vatly dashboard, add a webhook endpoint pointing at:

    Use the same webhook secret you entered above. Until a secret is saved for the current mode, the endpoint answers 503 and processes nothing; Vatly retries the delivery once it is saved.

3. Map your products

Edit a FluentCart product and fill in the Vatly mapping box with the IDs from Manage Products in your Vatly dashboard:

A checkout fails with a clear error when the product it sells has no matching Vatly ID. Run a test purchase in Vatly test mode before you switch to live.

Building from source

bin/build-release.sh builds build/vatly-for-fluentcart.zip locally (requires PHP, Composer, curl and zip). For development, clone the repository, run composer install, and place or symlink the directory in wp-content/plugins/.

Merchant-of-Record invoicing

Vatly issues the legally valid VAT invoice (and, for refunds, the credit note), not FluentCart's draft receipt. To avoid two competing invoices for the same purchase, the plugin surfaces Vatly's invoice and suppresses FluentCart's own invoicing for any order paid via the Vatly gateway.

When a Vatly order.paid webhook arrives, the plugin stamps the Vatly invoice URL onto the FluentCart order (and the credit-note URL onto refunds). You can surface that invoice anywhere FluentCart accepts shortcodes:

Shortcode Output
[vatly_invoice_link] A plain "Download official Vatly invoice" link.
[vatly_invoice_button] The same link, styled as a button.

Both accept an optional order_id (e.g. [vatly_invoice_link order_id="123"]); otherwise they use FluentCart's current-order context. They render nothing when an order has no Vatly invoice, so they're safe to leave in templates shared with non-Vatly orders. Good places for them are the PDF invoice template (via FluentCart's "Add ShortCodes" dropdown) and the receipt email body (via the block editor). The Vatly invoice button is also rendered automatically on the FluentCart receipt page.

For the exact FluentCart hooks the invoicing guard relies on (and the FluentCart limitations it works around), see docs/merchant-of-record.md.

Refunds

Refunds issued from the FluentCart admin are routed through Vatly, so the credit note and its VAT are computed and issued by the Merchant of Record, then recorded back onto the FluentCart transaction and shown in your Vatly dashboard.

Vatly's refund API is asynchronous: the FluentCart refund is recorded with Vatly's initial status (usually pending) and moves to refunded once Vatly confirms the payout.

Test and live mode

Each FluentCart transaction freezes its mode (test/live) at checkout. Refunds and any other operation on an existing record use the Vatly API key for that record's mode, not the current gateway toggle. So switching the gateway between test and live never makes an old test order's refund hit the live key; new checkouts use the current setting. The mode is exposed per record via isTestmode() on the Vatly order / subscription / refund wrappers.

Data the plugin stores

For your records of processing and for access and deletion requests:

Orders, subscriptions and transactions are FluentCart's own records. Deleting the plugin removes both tables, its settings and its scheduled jobs, and leaves those records in place.

Development

A Docker-based WordPress + FluentCart environment for manual and integration testing lives in docker/.

License

MIT © Vatly


All versions of vatly-fluentcart with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
vatly/vatly-fluent-php Version ^0.8.0-alpha.34
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vatly/vatly-fluentcart contains the following files

Loading the files please wait ...