$data = array(
'amount' => array(
"currency" => 'RUB',
"value" => '1.00'
),
"comment" => "Подписка на услуги",
"expirationDateTime" => "$date",
"customer" => array(
"phone" => "+7123456789",
"email" => "mail@yandex.ru",
"account" => "account-name"
),
// ------ ТУТ НУЖНО ДОБАВИТЬ flags (вопрос ниже)----- //
);
$data = json_encode($data);
$data = array(
'amount' => array(
"currency" => 'RUB',
"value" => '1.00'
),
"comment" => "Подписка на услуги",
"expirationDateTime" => "$date",
"customer" => array(
"phone" => "+7123456789",
"email" => "mail@yandex.ru",
"account" => "account-name"
),
"flags" => array(
"CHECK_CARD" ,
"BIND_PAYMENT_TOKEN"
),
);
$data = json_encode($data);