blackseabreathe
@blackseabreathe
brackets

Не передается email покупателя в Юкассу платежную форму?

Здравствуйте, вот запрос к юкассе.

spoiler
$client = new Client();
$client->setAuth('xxxx', 'test_xxxxxxxxxxxxx');



$payment = $client->createPayment(
array(
'amount' => array(
'value' => $price,
'currency' => 'RUB',
),
'receipt' => array(
'email' => $email,  // пробую так
'cps_email' => $email,  // пробую так
'customer' => array(
'full_name' => $fio,
'email' => $email,  // пробую так
'cps_email' => $email  // пробую так
),
'items' => array(
array(
'description' => $description,
'quantity' => '1.00',
'amount' => array(
'value' => $price,
'currency' => 'RUB'
),
'vat_code' => 1
)
)
),
'confirmation' => array(
'type' => 'redirect',
'return_url' => 'https://xxxxxxxxxxxx',
),
'capture' => true,
'description' => $description
),
uniqid('', true)
);


В итоге поле "получить квитанцию" пустое.

6221c0d85d295357837878.png
  • Вопрос задан
  • 112 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы