In this article I will explain you how to get started using Your InvoicePlane & WooCommerce Integration.
First we’ll see how to configure InvoicePlane and after how to configure your WordPress website.
- Append the follow line of code to your InvoicePlane installation in the file “/application/config/config.php”:
$config['csrf_exclude_uris'] = array('webservice');
- Download the plugin from your account area
- Exctract the ZIP file
- Copy the folder “webservice” (which is inside the folder “invoiceplane_installation”) to your InvoicePlane in “/application/modules”
After InvoicePlane configuration is finished you can proceed to configure WordPress:
- Install the ZIP file you’ve downloaded
- In your “wp-config.php” file append the following:
define('YPS_INVOICEPLANE', array( 'url' => 'https://YOUR_INVOICEPLANE_URL', 'username' => 'YOUR_INVOICEPLANE_USERNAME', 'password' => 'YOUR_INVOICEPLANE_PASSWORD', 'invoice_group_id' => YOUR_INVOICEPLANE_GROUP_ID, 'invoice_filename_prefix' => 'Invoice', 'post_meta_vat_id' => '_billing_vat_number', 'post_meta_tax_code' => '_billing_tax_code', /* Payment Method Mapping: wc_pm => ip_pm */ 'payment_methods' => array( 'stripe' => YOUR_INVOICEPLANE_STRIPE_ID 'paypal' => YOUR_INVOICEPLANE_PAYPAL_ID, 'bacs' => YOUR_INVOICEPLANE_BACS_ID ) ));
- url: It’s your InvoicePlane installation URL
- username: Provide your administrator username
- password: Provide your administrator passwod
- invoice_group_id: The group id of your invoices. You can check this ID by clicking on “Settings > Invoice Groups > Invoice Default [Options > Edit]” and check the last number in your browser address bar.
- invoice_filename_prefix: You can use any prefix you would like.
- post_meta_vat_id: Meta ID of your VAT Field
- post_meta_tax_code: Meta ID of your Tax Code field
- payment_methods: You can get the ID of your InvoicePlane payment methods by clicking on “Settings > Payment Methods > METHOD” and check the last number in your browser address bar.