...
 
Commits (5)
......@@ -34,6 +34,13 @@ class channel implements Interfaces\Api
$channel->fullExport = true; //get counts
$channel->exportCounts = true;
if (!$channel->isPro()) {
return Factory::response([
'status' => 'error',
'message' => 'E_NOT_PRO'
]);
}
/** @var Manager $manager */
$manager = Di::_()->get('Pro\Manager');
$manager->setUser($channel);
......
......@@ -51,10 +51,10 @@ class Manager
{
$dob = explode('-', $account->getDateOfBirth());
$data = [
'managed' => true,
'type' => 'custom',
'country' => $account->getCountry(),
'legal_entity' => [
'type' => 'individual',
'business_type' => 'individual',
'individual' => [
'first_name' => $account->getFirstName(),
'last_name' => $account->getLastName(),
'address' => [
......
......@@ -35,6 +35,10 @@ class Thresholds
$isPaywall = true;
}
if (!$user && $isPaywall) {
return false;
}
$threshold = $entity->getWireThreshold();
if (!$threshold && $isPaywall) {
......