Skip to content

Plisio/invoice_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP example

This is a simple example of making crypto payments with Plisio.

Installation

To control payments you will need to have MySQL like database.

  • Create a database and add an user:
CREATE DATABASE `demo` DEFAULT CHARACTER SET = `utf8` DEFAULT COLLATE = `utf8_general_ci`;
CREATE USER 'demo'@'%' IDENTIFIED BY 'demoPass';
GRANT DELETE, UPDATE, SHOW VIEW, INSERT, LOCK TABLES, ALTER, SELECT, CREATE ON `demo`.* TO 'demo'@'%';
FLUSH PRIVILEGES;
  • Create a table to store invoices data from SQL

  • Install dependencies with composer

composer install

To handle invoices on your side, please do not forget to enable "White-label payment processing".

  • Put your "Secret key" and database connection settings into settings.php
'secret_key' => 'Your secret key',
php -S localhost:8000

This is simple example that should help you to create your custom solutions!

Please do not forget to validate user input and securely save data into the database.

About

Custom invoice PHP example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published