E
E
evgenin2018-12-18 16:46:59
PHP
evgenin, 2018-12-18 16:46:59

How to pass multiple values ​​through Yandex Money LABEL?

I want to pass several parameters, but Yandex Money only Label can be used for its values.

$tariff_1 = '{"user_id":"'.$current_user['user_id'].'","tariff":"10","publications":"90"}';
$this->data['label_tariff_1'] = urlencode($tariff_1);

<input type="hidden" name="label" value="<?php echo $label_tariff_1; ?>">

The result is an error
5c18fa5015891225363681.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alams Stoyne, 2018-12-18
@evgenin

evgenin ,
maybe
Eventually:
only 11 characters
and then

$label_arr = explode(";", $label);
echo $label_arr[0]; // uid - 99999
echo $label_arr[1]; // tariff - 10
echo $label_arr[1]; // publications - 90

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question