\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
try {
\Satispay\Bearer:check();
echo 'OK';
} catch(\Exception $ex) {
echo 'Invalid Security Bearer';
}
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$user = \Satispay\User::create([
'phone_number' => '+390000000000'
]);
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$users = \Satispay\User::all();
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$user = \Satispay\User::get('userid');
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$charge = \Satispay\Charge::create([
'user_id' => 'userid',
'currency' => 'EUR',
'amount' => 1000
]);
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$charges = \Satispay\Charge::all();
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$charge = \Satispay\Charge::get('chargeid');
Example:
\Satispay\Satispay::setSecurityBearer('yoursecuritybearer');
$charge = \Satispay\Charge::update('chargeid', [
'description' => 'newdescription'
]);