Skip to content

qenta-cee/backend-example-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QENTA Backend Operations Example

License PHP v7.4

This example demonstrates the usage of the backend operations and provides a basis for integration into PHP-based systems.

Our Online Guides provide an in depth description of the backend operations for Qenta.

Installation

Copy the example code to a web server which supports PHP. Ensure that the web server is accessible from the Internet via port 80 (for http communication) or port 443 (for https communication). The web server needs a fully qualified domain name for receiving data from Qenta (e.g. payment confirmations).

Docker

Required: Docker and docker-compose

Recommended: ngrok

Demo Configuration

Run docker-compose up to start the backend-example-php Application locally with our demo configuration.

Test Configuration

The Repository features a .env.example File with our test configuration. The backend-example-php Application can be started with our test configuration by running docker-compose --env-file .env.example up.

Custom Configuration

In order to use the backend-example-php Application with your own Qenta Configuration you need to run cp .env.example .env and change the corresponding values in the .env File with the values representing your Qenta Configuration. Afterwards a simple docker-compose up will start the backend-example-php App with your Configuration.

The webserver is accessible at http://localhost:8002

To receive a payment confirmation you need a FQDN. We recommend to use ngrok. Run ngrok http http://localhost:8002 to get an externally reachable URL.

Support and additional information

If you have any questions or troubles to get this example up and running in your web server environment, please do not hesitate to contact our support teams.