Get API key

WooCommerce

Accept Bitcoin, stablecoin and Cash App payments in a WooCommerce store with the Amboss Payments plugin.

The Amboss Payments for WooCommerce plugin adds Amboss to the checkout of your WooCommerce store. You do not write code.

At checkout, the customer goes to the Amboss checkout page and pays. Then the customer goes back to your store. A signed webhook tells your store that the order is paid, and the plugin changes the order status.

What you get

  • Pay with Bitcoin / Crypto. The customer pays with Bitcoin over Lightning, or with other crypto.
  • Pay with Cash App. The checkout page opens with Cash App selected. The customer pays with the bitcoin in their Cash App.
  • An optional discount. Customers who pay with Amboss get a percentage off the products. The checkout shows the discount in the payment method title, for example "Pay with Bitcoin / Crypto (2% off)". Shipping is not discounted.
  • Your branding. Select a checkout style to show your logo and colours on the checkout page.

You can turn on one payment method or both. Each one is a separate payment method at checkout.

Requirements

  • WordPress 6.4 or later, WooCommerce 8.3 or later, PHP 7.4 or later.
  • The store currency is USD.
  • The store uses HTTPS and Amboss can reach it from the internet. Amboss sends webhooks to your store, and the API does not accept return URLs without HTTPS.
  • A BTC wallet or a USD stablecoin wallet in a live environment.

With a USD stablecoin wallet, you receive the exact order total in USD. With a BTC wallet, Amboss changes the order total to sats at the current price.

Set up the plugin

You need three values from the dashboard: a wallet ID, an API key and a webhook signing secret.

Install the plugin

  1. Download amboss-payments.zip from the latest release.
  2. In WordPress, go to Plugins → Add New Plugin → Upload Plugin.
  3. Select the zip file, click Install Now, then click Activate Plugin.
  4. Go to WooCommerce → Settings → Payments → Bitcoin Lightning. Keep this page open.

Open your environment

  1. Go to app.amboss.tech/pay and log in.
  2. Under Environments, click the environment for your store.

The next steps use the sidebar of this environment.

Copy the wallet ID

  1. In the sidebar, click Wallets.
  2. Click the wallet that receives the payments.
  3. At the top right, click the WALLET ID chip. This copies the ID.
  4. In WooCommerce, paste the ID into Wallet ID.

Create an API key

  1. In the sidebar, click API Keys, then click New API key.

  2. In Key Name, type a name, for example WooCommerce store.

  3. Optional: in Scope to Wallet, select the wallet from the previous step.

  4. In Expiration, keep Never. If you set a date, your store stops taking payments on that date.

  5. Do not click Read Only or Full Access. Set each permission:

    ResourceAccess
    EnvironmentsRead
    WalletsRead
    Wallet CredentialsNo access
    PaymentsRead + Write
    WebhooksNo access
  6. Click Create API Key.

  7. Click the copy icon next to the key.

  8. In WooCommerce, paste the key into API key.

  9. In the dashboard, select I've saved my API key somewhere safe, then click Done.

The dashboard shows the key only one time. If you lose it, create a new key.

Create a webhook endpoint

  1. In WooCommerce, copy the webhook URL from the help text under Webhook secret. It ends in /wp-json/amboss/v1/webhook.
  2. In the dashboard sidebar, click Webhooks, then click New endpoint.
  3. In URL, paste the webhook URL.
  4. Under Event Types, click Select all. The plugin needs payment.pending, payment.completed, payment.failed and payment.expired.
  5. Click Create Endpoint.
  6. Click the copy icon next to Signing secret.
  7. In WooCommerce, paste the secret into Webhook secret.
  8. In the dashboard, select I've saved my signing secret somewhere safe, then click Done.

The dashboard shows the signing secret only one time. If you lose it, open the endpoint and rotate the secret.

Finish the settings

  1. In WooCommerce, select Enable Amboss Payments.
  2. Select Pay with Bitcoin / Crypto, Pay with Cash App, or both.
  3. Optional: in Discount (%), type a discount.
  4. Click Save changes. The plugin loads your wallet. If you see an error, check the API key and the wallet ID.
  5. Optional: in Checkout style, select a style, then click Save changes again.

Test an order

Place an order in your store and pay it. After the payment, the order status changes to Processing, or to Completed for downloadable products.

Troubleshooting

ProblemWhat to do
The payment methods do not show at checkoutMake sure that the store currency is USD and the wallet is BTC or a USD stablecoin. Save the settings again and read the error at the top of the page.
"Cannot load the checkout styles"Give the API key Environments: Read, or create a new key with the permissions above.
The order stays in Pending payment after the customer paysMake sure that the webhook URL is correct, that all four events are selected, and that the signing secret in WooCommerce matches the endpoint. Your store must be reachable over HTTPS.
"The payment could not be started"Check the API key permissions and the expiration date of the key.

For more help, email [email protected].