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