N
N
ne_pes2019-11-17 21:10:52
PHP
ne_pes, 2019-11-17 21:10:52

Where can I get the product id for the Sberbank payment gateway?

Sberbank checkout requires an order ID in the store: $vars['orderNumber'] = $order_id;
Where to take it from? If manually entered, then the operation is performed only once and the next time it says "An order with this number has already been processed"
You need to somehow generate this ID, product data is taken from a JSON file (name, description, price)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2019-11-17
@ne_pes

If there is nowhere to take it from and you don’t need this id, then you can simply generate it
$vars['orderNumber'] = uniqid();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question