PHP code example of chiarillomassimo / satispay-php-sdk
1. Go to this page and download the library: Download chiarillomassimo/satispay-php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chiarillomassimo / satispay-php-sdk example snippets
use ChiarilloMassimo\Satispay\Authorization\Bearer;
use ChiarilloMassimo\Satispay\Satispay;
$satispay = new Satispay(
new Bearer('osh_...'),
'sandbox'
);
if ($satispay->getBearerHandler()->isAuthorized()) {
....
};
$satispay->getUserHandler()->createByPhoneNumber('+39 yourphone')
$user = new User(null, '+39 yourphone');
$satispay->getUserHandler()->persist($user)