M
M
MnemonicArt2021-09-29 14:14:26
PHP
MnemonicArt, 2021-09-29 14:14:26

How to add options using PHP CURL API QIWI?

Good afternoon!

Here is part of the code:

$data = array(
    'amount' => array(
        "currency" => 'RUB',
        "value" => '1.00'
    ),
    "comment" => "Подписка на услуги",
    "expirationDateTime" => "$date",
    "customer" => array(
        "phone" => "+7123456789",
        "email" => "[email protected]",
        "account" => "account-name"
    ),

   // ------ ТУТ НУЖНО ДОБАВИТЬ flags  (вопрос ниже)----- //
);
$data = json_encode($data);


How to write flags correctly? In the API documentation, this is indicated as follows:
"flags": ["CHECK_CARD","BIND_PAYMENT_TOKEN"]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alams Stoyne, 2021-09-29
@MnemonicArt

$data = array(
    'amount' => array(
        "currency" => 'RUB',
        "value" => '1.00'
    ),
    "comment" => "Подписка на услуги",
    "expirationDateTime" => "$date",
    "customer" => array(
        "phone" => "+7123456789",
        "email" => "[email protected]",
        "account" => "account-name"
    ),
    "flags" => array(
        "CHECK_CARD" ,
        "BIND_PAYMENT_TOKEN"
    ),
);
$data = json_encode($data);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question