diff --git a/.gitbook/assets/imagen (1).png b/.gitbook/assets/imagen (1).png index 9e63d5f..62e0909 100644 Binary files a/.gitbook/assets/imagen (1).png and b/.gitbook/assets/imagen (1).png differ diff --git a/.gitbook/assets/imagen (2).png b/.gitbook/assets/imagen (2).png new file mode 100644 index 0000000..1cf6705 Binary files /dev/null and b/.gitbook/assets/imagen (2).png differ diff --git a/.gitbook/assets/imagen (3).png b/.gitbook/assets/imagen (3).png new file mode 100644 index 0000000..be0b51f Binary files /dev/null and b/.gitbook/assets/imagen (3).png differ diff --git a/.gitbook/assets/imagen (4).png b/.gitbook/assets/imagen (4).png new file mode 100644 index 0000000..9e63d5f Binary files /dev/null and b/.gitbook/assets/imagen (4).png differ diff --git a/.gitbook/assets/imagen (5).png b/.gitbook/assets/imagen (5).png new file mode 100644 index 0000000..8287615 Binary files /dev/null and b/.gitbook/assets/imagen (5).png differ diff --git a/.gitbook/assets/imagen.png b/.gitbook/assets/imagen.png index be0b51f..84caf07 100644 Binary files a/.gitbook/assets/imagen.png and b/.gitbook/assets/imagen.png differ diff --git a/integrations/woocommerce.md b/integrations/woocommerce.md index 8a16d66..7271000 100644 --- a/integrations/woocommerce.md +++ b/integrations/woocommerce.md @@ -4,7 +4,78 @@ 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}}" %} -## Downloading the plugin from GitHub +## Install form the WordPress plugin store + +### Install & activate the plugin + +Firstly login to your target WordPress site and click on `Plugins` + +![](../.gitbook/assets/btcp4%20%281%29.png) + +Next, click on `Add New` + +![](../.gitbook/assets/imagen%20%285%29.png) + +Now, on the search bar type `btcp-pay-woocommerce` + +![](../.gitbook/assets/imagen.png) + +And click on `Install Now` + +![](../.gitbook/assets/imagen%20%282%29.png) + +Wait until you get a message that says `Activate` and then click on it. + +![](../.gitbook/assets/imagen%20%281%29.png) + +{% 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" %} + +To configure the plugin simply paste **btcpWidget.data from your widget.** It should look something like this: + +```javascript +btcpWidget.data = { + "id" : "btcp_widget", + "buttonData" : "buy_A1_6", + "merchantid" : "414", + "walletid" : "2", + "amount" : 0.001, + "itemid" : "0", + "description" : "Pepperoni Pizza", + "transactiondetails" : + { + "size" : "12 inch", + "crust" : "stuffed", + "pan" : "thin base" + } +``` + +{% hint style="info" %} +If you want to make BTCP your store-wide currency you can do so by adding the line `"currency": "BTCP",` to your `btcpWidget.data` +{% endhint %} + +Finally, click on save + +![](../.gitbook/assets/btcp6.png) + +{% hint style="success" %} +Your plugin should now be working and BTCP Pay activated succesfully! +{% endhint %} + +![](../.gitbook/assets/btcp7.png) + +## Install form GitHub + +### Downloading the plugin from GitHub {% hint style="info" %} You should have registered in [BTCP Pay](https://btcppay.com) before attemping to follow the steps. @@ -24,7 +95,7 @@ Then click on **'Save'.** You have now downloaded the BTCP Pay WooCommerce plugin! {% endhint %} -## Uploading the plugin to WordPress +### Uploading the plugin to WordPress Next we will need to **upload** the plugin on WordPress. @@ -50,7 +121,7 @@ Drag the .PHP file to the directory to upload it. You have now uploaded the plugin to WordPress! {% endhint %} -## Activate the plugin +### Activate the plugin {% hint style="warning" %} You must access to you administrator account on WordPress in order to activate the plugin. @@ -70,7 +141,7 @@ Once you have clicked on activate the website will redirect you directly you the You have now activated the BTCP Pay for WooCommerce plugin! {% endhint %} -## Configure the plugin +### Configure the plugin {% hint style="danger" %} Create a BTCP Pay button now if you haven't already diff --git a/integrations/wordpress.md b/integrations/wordpress.md index 2a448e6..10a93cd 100644 --- a/integrations/wordpress.md +++ b/integrations/wordpress.md @@ -70,7 +70,7 @@ Firstly login to your target WordPress site and click on `Plugins` Next, look for a plugin called `Bitcoin Private for WordPress` and click on `Acitavte` -![](../.gitbook/assets/imagen.png) +![](../.gitbook/assets/imagen%20%283%29.png) {% hint style="success" %} You have now activated the BTCP Pay WordPress plugin. @@ -122,7 +122,7 @@ Once activated you will be directly taken to the configuation page. Please past Once entered, click on **Save Changes.** -![](../.gitbook/assets/imagen%20%281%29.png) +![](../.gitbook/assets/imagen%20%284%29.png) {% hint style="success" %} You have now configured the BTCP Pay for WordPress plugin.