Shopify Plugin
Shopify does not allow custom payment plugins on its standard plans. The integration with B4bit Pay is done via a manual payment method + an order creation webhook handled by the B4bit infrastructure.
1. Create a private app in Shopify
Section titled “1. Create a private app in Shopify”- Go to Settings → Apps and sales channels → Develop apps → Create an app.
- Name the app: B4bit Pay.
- Enable the following permissions:
write_ordersread_orderswrite_draft_ordersread_draft_orders
- Take note of the API access token from the dashboard. It cannot be retrieved later — if you lose it, you will need to regenerate the app.
2. Configure the manual payment method
Section titled “2. Configure the manual payment method”- Go to Settings → Payments → Add manual payment method.
- Exact name required:
B4BiT Pay - Pago con Criptomonedas
- In Additional details, set:
IMPORTANTE: Introduzca su correo electrónico en los datos de su pago.Recibirá un email para completar el proceso de pago.
- In Payment instructions:
Le hemos enviado un email a su dirección de correo electrónicopara que pueda completar el pago de este pedido.
3. Configure the webhook in Shopify
Section titled “3. Configure the webhook in Shopify”Point Shopify to the B4bit service that receives the orders.
- Go to Settings → Notifications → Webhooks.
- Create a new webhook with:
- Event: Order creation
- Format: JSON
- Version: 2024-10 (or the most recent compatible)
- URL:
https://shopify.b4bit.com/order/create
- Save the secret key generated by Shopify (you will need it in the next step).
4. Provide credentials to B4bit Pay
Section titled “4. Provide credentials to B4bit Pay”Open Settings → Merchant → Devices → Edit device and enter:
- Domain of your Shopify store (for example
mystore.myshopify.com). - Webhook signing key (the one generated in step 3).
- API access token (from step 1).
- Default fiat currency (if it is not available in B4bit Pay).
- Option for customer data storage.
Payment flow
Section titled “Payment flow”- The customer chooses B4bit Pay at the Shopify checkout.
- Shopify creates the order and notifies
shopify.b4bit.com. - B4bit Pay sends the customer an email with a link to the payment.
- The customer pays on the B4bit Pay gateway.
- Once the payment is confirmed, B4bit Pay marks the Shopify order as paid automatically.
- The customer returns to the store.