Invozo My account
← Custom shop: for your developer

Invozo for your own shop

A few small files for a shop made to order. No other library is needed.

Download invozo-php.zip

Version 1.0.0 · 5 KB

Before you start

  • An Invozo account with your shop approved, under Shops.
  • PHP 8.1 or newer, with cURL. No other library is needed.
  • Your shop on a public address with https://, the same as the one in your Invozo account.

Steps

1

Put the folder on your server

  • Open the zip and upload the folder invozo next to your shop.
  • Copy config.sample.php as config.php.
2

Create the key in Invozo

  • Log in at invozo.eu/account and open Shops.
  • In the card of your shop, write a name for the key and your password.
  • Press Create a key and copy it. It is shown only once.
  • Paste it only in your own shop. Do not send it by e-mail or in a chat.
Creating a key in the Invozo account, Shops
3

Set the confirmations

  • Paste the key in config.php.
  • From the command line, in the folder:
  • php connect.php https://your-shop.com/invozo/webhook.php
  • Put the secret it shows in config.php, then run it again without the address. It has to say Webhook: works.
  • php connect.php
4

Tie it to your orders

  • In orders.php, replace the functions with your own database. The names and what they return stay the same.
  • Delete orders.json if it was created.
5

Put the button at checkout

  • The buyer presses it and lands on the Invozo page:
  • <form method="post" action="/invozo/pay.php">
      <input type="hidden" name="order" value="1042">
      <button>Pay by card</button>
    </form>
6

Check with a small order

  • Pay an order of your own. webhook.php has to mark it as paid.

What the buyer sees

The secure Invozo page, in the buyer’s language, with the web address of your shop and the amount. The payment is processed by RoxPay.

The Invozo payment page

Orders and refunds

  • Paid: webhook.php checks the signature, the amount and the currency, then calls mark_paid.
  • Different amount: it calls mark_for_review instead.
  • Another language than PHP: the page for your developer has Node and the calls for any language.
  • Refunds are made by Invozo. Write to us, and the refund appears on the order.

If something does not work

401 on the webhook

The secret in config.php is not the last one shown by connect.php, or the clock of your server is more than 5 minutes off.

The address was refused

The web address of your shop in Invozo has to be the same as the address of the webhook.

The payment page could not be opened

The reason is in the error log of your server, on the line that starts with Invozo.

Other platforms

WooCommercePrestaShopOpenCartShopifyCustom shop: for your developerWixMagentoShopwareSquarespaceGomagAnother platformNo online shop