diff --git a/.gitbook/assets/imagen (1).png b/.gitbook/assets/imagen (1).png new file mode 100644 index 0000000..9e63d5f Binary files /dev/null and b/.gitbook/assets/imagen (1).png differ diff --git a/.gitbook/assets/imagen.png b/.gitbook/assets/imagen.png new file mode 100644 index 0000000..be0b51f Binary files /dev/null and b/.gitbook/assets/imagen.png differ diff --git a/integrations/woocommerce.md b/integrations/woocommerce.md index efc9c95..8a16d66 100644 --- a/integrations/woocommerce.md +++ b/integrations/woocommerce.md @@ -4,12 +4,6 @@ Official Repository {% embed data="{\"url\":\"https://github.com/BTCPrivate/btcp-widget/blob/master/plugins/btcp-pay-woocommerce.php\",\"type\":\"link\",\"title\":\"BTCPrivate/btcp-widget\",\"description\":\"btcp-widget - JS widget for online shop payments\",\"icon\":{\"type\":\"icon\",\"url\":\"https://github.com/fluidicon.png\",\"aspectRatio\":0},\"thumbnail\":{\"type\":\"thumbnail\",\"url\":\"https://avatars0.githubusercontent.com/u/34813369?s=400&v=4\",\"width\":400,\"height\":400,\"aspectRatio\":1}}" %} -{% hint style="warning" %} -The plugin is still under heavy development. This guide will be updated make it easier to install in the future! - -We are waiting for our plugin to get into the WordPress store! -{% endhint %} - ## Downloading the plugin from GitHub {% hint style="info" %} @@ -72,14 +66,18 @@ Next, look for a plugin called `Bitcoin Private for WooCommerce` and click on `A Once you have clicked on activate the website will redirect you directly you the configuration page. +{% hint style="success" %} +You have now activated the BTCP Pay for WooCommerce plugin! +{% endhint %} + +## Configure the plugin + {% hint style="danger" %} Create a BTCP Pay button now if you haven't already {% endhint %} {% page-ref page="../cloud-hosted-guide/create-a-btcp-pay-button.md" %} -## Configure the plugin - To configure the plugin simply paste **btcpWidget.data from your widget.** It should look something like this: ```javascript diff --git a/integrations/wordpress.md b/integrations/wordpress.md index db585c2..2a448e6 100644 --- a/integrations/wordpress.md +++ b/integrations/wordpress.md @@ -4,8 +4,8 @@ Official Repository {% embed data="{\"url\":\"https://github.com/BTCPrivate/btcp-widget/blob/master/plugins/btcp-pay-wordpress.php\",\"type\":\"link\",\"title\":\"BTCPrivate/btcp-widget\",\"description\":\"btcp-widget - JS widget for online shop payments\",\"icon\":{\"type\":\"icon\",\"url\":\"https://github.com/fluidicon.png\",\"aspectRatio\":0},\"thumbnail\":{\"type\":\"thumbnail\",\"url\":\"https://avatars0.githubusercontent.com/u/34813369?s=400&v=4\",\"width\":400,\"height\":400,\"aspectRatio\":1}}" %} -{% hint style="danger" %} -The WordPress plugin is **not complete**, therefore the plugin is not functional **yet**. +{% hint style="warning" %} +The plugin is still under heavy development. This guide will be updated make it easier to install in the future! {% endhint %} ## Downloading the plugin from GitHub @@ -68,13 +68,87 @@ Firstly login to your target WordPress site and click on `Plugins` ![](../.gitbook/assets/btcp4%20%281%29.png) -Next, look for a plugin called `Bitcoin Private for WooCommerce` and click on `Acitavte` +Next, look for a plugin called `Bitcoin Private for WordPress` and click on `Acitavte` -![](../.gitbook/assets/btcp11.png) +![](../.gitbook/assets/imagen.png) -{% hint style="danger" %} -Complete docs coming soon! +{% hint style="success" %} +You have now activated the BTCP Pay WordPress plugin. {% endhint %} +## Configuring the plugin +{% hint style="danger" %} +Create a BTCP Pay button now if you haven't already +{% endhint %} + +{% page-ref page="../cloud-hosted-guide/create-a-btcp-pay-button.md" %} + +Once activated you will be directly taken to the configuation page. Please paste the widget code from your account on the [btcppay.com](https://btcppay.com) site into the box, it should like something like this: + +```javascript + + + + + +' +``` + +Once entered, click on **Save Changes.** + +![](../.gitbook/assets/imagen%20%281%29.png) + +{% hint style="success" %} +You have now configured the BTCP Pay for WordPress plugin. +{% endhint %} + +## Using the plugin + +### Within wordpress + +You can use shortcodes to activate the BTCP Pay screen: + +* Fixed value used in the code you pasted: **\[btcp\_pay\_widget\]** +* Attribute value use: **\[btcp\_pay\_widget amount="987.654"\]** + +### **Within code** + +You can use a PHP function to call the BTCP Pay screen. + +{% hint style="danger" %} +**Do not use this method** unless you know how to. +{% endhint %} + +* Fixed value use: **btcp\_pay\_widget\(\);** +* Function argument value use: **btcp\_pay\_widget\(987.654\);** + +{% hint style="success" %} +You can now use te plugin pay with BTCP Pay +{% endhint %}