# MakePay Invision Community Gateway

Official MakePay payment gateway application for Invision Community 5 Commerce.

## Requirements

- Invision Community 5.0+
- Commerce application installed
- PHP 8.1+
- HTTPS community URL
- A MakePay company with permission to manage payment settings

## Install

Download the latest package:

```text
https://plugins.makecrypto.io/downloads/invision-community/latest.tar
```

Install the tar package from the Invision AdminCP application manager, then open
Commerce payment settings and add MakePay as a payment method.

The application also includes a MakePay AdminCP settings controller with
connection status, webhook URL, Connect MakePay, and Disconnect actions.

## Connect

Use **Connect MakePay** from the application settings. The application connects
this community to the MakeCrypto company you choose and saves the webhook
details needed for Commerce transaction updates.

Manual API-key credentials remain available as a fallback for communities that
cannot complete the guided connection during initial setup.

## Runtime behavior

- Commerce creates an invoice and transaction.
- MakePay creates a hosted payment link with Invision invoice metadata.
- The member is redirected to hosted MakePay checkout.
- Signed MakePay webhooks update the transaction/invoice state.

No built tar artifacts should be committed to this repository.
