Links

Wordpress

Official Repository
The plugin is still under heavy development. This guide will be updated make it easier to install in the future!

Downloading the plugin from GitHub

You should have registered in BTCP Pay before attempting to follow the steps.
Firstly, download the WordPress plugin from the official repo by clicking on 'Raw'.
Then right click and click on 'Save as...'.
Then click on 'Save'.
You have now downloaded the BTCP Pay WordPress plugin!

Uploading the plugin to WordPress

Next we will need to upload the plugin on WordPress.
You must have access to your website through FTP and should be confident in how to navigate directories.
Use an FTP client such as FileZilla or WinSCP
Firstly, login to your website and navigate to your WordPress home directory.
Next go to your plugin directory, this is normally /wp-content/plugins/
Drag the .PHP file to the directory to upload it.
You have now uploaded the plugin to WordPress!
You have now uploaded the BTCP Pay WordPress plugin!

Activate the plugin

You must access to you administrator account on WordPress in order to activate the plugin.
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
You have now activated the BTCP Pay WordPress plugin.

Configuring the plugin

Create a BTCP Pay button now if you haven't already
Once activated you will be directly taken to the configuation page. Please paste the widget code from your account on the btcppay.com site into the box, it should like something like this:
<!-- BTCP Pay Widget // -->
<!-- Set parameters and actions //-->
<script id="btcp_widget_data">
var btcpWidget = {};
btcpWidget.data = {
"id" : "btcp_widget",
"buttonData" : "buy_A1_0",
"merchantid" : "414",
"walletid" : "2",
"amount" : 123.45,
"itemid" : "0",
"description" : "Pepperoni Pizza",
"transactiondetails" :
{
"size" : "12 inch",
"crust" : "stuffed",
"pan" : "thin base"
}
};
btcpWidget.onPaymentSuccess = function(data) {
alert("Payment success! Data:\n\n" + JSON.stringify(data));
};
btcpWidget.onPaymentFail = function(data) {
alert("Payment failed! Reason: " + data.reason);
}
</script>
<!-- Load core functionality //-->
<script src="//btcppay.com/widget.js" id="btcp_widget"></script>'
Once entered, click on Save Changes.
You have now configured the BTCP Pay for WordPress plugin.

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.
Do not use this method unless you know how to.
  • Fixed value use: btcp_pay_widget();
  • Function argument value use: btcp_pay_widget(987.654);
You can now use te plugin pay with BTCP Pay