> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coinstack.net/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The CoinStack API base URL is https://coinstack.net/api/v1. Authenticate with an API key sent as 'Authorization: Bearer sk_...' from a server, never from a browser. Every response is a JSON object with 'success' and 'response'. Amounts are strings; token amounts on quotes and payments are in the token's smallest unit. Fulfil an order when its checkout status is 'completed', not when the customer returns to success_url. Verify the CoinStack-Signature header on every webhook using the raw request body. The OpenAPI file is at https://docs.coinstack.net/openapi.json.

# PrestaShop

> Accept crypto payments in your PrestaShop store.

The CoinStack module adds crypto as a payment method at checkout. Customers pay on the CoinStack checkout page, and the order is marked paid once the payment completes, so it moves to Payment accepted as it does with any other payment method.

## Requirements

* PrestaShop 8 or 9
* The PHP cURL extension
* A shop address that starts with `https://`

## Install

**1. Create an API key**

In the [CoinStack dashboard](https://coinstack.net/dashboard), open **Developers** and create an API key with **Read and write** access.

**2. Upload the module**

[Download the module](https://coinstack.net/downloads/coinstack-prestashop.zip). In PrestaShop, go to **Modules > Module Manager**, select **Upload a module** and choose the zip file.

**3. Paste the key**

Open **Configure**, paste the API key and save.

The page shows **Connected** once CoinStack is set up. The module registers its own webhook, so there are no URLs or secrets to copy. If it cannot connect, the page shows why.

## How it works

* When a customer chooses **Pay with crypto** and places the order, the module creates a checkout for the cart total and sends the customer to it.
* When a payment is detected, the order is created with the status Awaiting crypto payment.
* When the checkout is completed, the payment is recorded on the order and it moves to Payment accepted.

No order exists until a payment is detected. A customer who leaves the checkout without paying keeps their cart and can choose another payment method. They get no order email, and no stock is held.

### Currencies

CoinStack accepts orders in [146 currencies](https://docs.coinstack.net/reference/currencies.md). You choose which of your shop's currencies it is offered for under **Payment > Preferences**. For a currency CoinStack does not accept, it is not shown at checkout.

### Partial payments

If a customer pays less than the order total, the order stays at Awaiting crypto payment and its page gives them a link to pay the rest. If the checkout expires before they do, the order moves to Payment error with a note in its messages. [Mark the checkout as resolved](https://docs.coinstack.net/guides/underpayments.md#resolving-an-underpaid-checkout) in your CoinStack dashboard to mark the order paid, or refund the customer.

### Orders that need a look

The module leaves a note in the order's messages instead of marking it paid when:

* The cart changed after the checkout was opened, so the amount paid does not match the order total. The order moves to Payment error.
* The customer paid with crypto after already placing the same order with another payment method. The note is left on that order.

### Refunds

Refunds are sent from your own wallet, not from PrestaShop.

## Troubleshooting

If orders are not being created or marked paid:

* Your shop address must start with `https://` and have a valid certificate. SSL is turned on under **Shop Parameters > General**.
* Your firewall or security module must allow `POST` requests from outside to `index.php?fc=module&module=coinstack&controller=webhook`, or to `module/coinstack/webhook` if friendly URLs are on.

Errors are recorded under **Advanced Parameters > Logs**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.