BTCPay implements the same API as Bitpay for creating and managing invoices.
Migrating from BitPay to BTCPay normally is as easy as changing a URL.
While Bitpay only allows one account for one merchant, BTCPay allows a user to manage multiple stores.
If not using one of the libraries above, the REST API can be accessed manually.
The authentication mechanism is using
client of the API (like an e-commerce plugin) generates a private key, then inform the
server (BTCPay) about the
Every requests to the API sent by the client is signed with the client's
pairing the process to inform BTCPay about your
Your first need to create a new store:
Go to Stores menu
Create a new store
Enter a friendly name for the store, validate.
There is two method of
pairing, client side pairing and server side pairing.
With client side pairing, the
client generates a URL from his
public key which a human user can browse to validate the pairing.
Typically the URL looks like
You can find documentation about how to achieve this with this link.
The second way, is to generate your private key via some bitcoin library then:
Go to the store's settings
Create new Token
Select merchant's facade and enter your public key,
Click request pairing
Click on Approve
BTCPay Server has an API compatible with Bitpay; changing your e-commerce application from Bitpay to BTCPay should take minimal effort.
You can read the full API documentation on Bitpay's website.
There is only one difference: Bitpay only allows one account for one merchant, BTCPay allows a user to manage multiple stores.