Closed mahdimomeni closed 4 years ago
I want to send invoice to user but my code doesn't work.
$prices = array( array('label' => 'Order', 'amount' => $total_price) ); $content = array('chat_id' => $chat_id, 'title' => $title, 'description' => $desc, 'payload' => $payload, 'provider_token' => $pay_token, 'start_parameter' => "pay", 'currency' => "UZS", 'prices' => $prices); $telegram->sendInvoice($content);
I solved it. The problem was from 'prices' parameter. it needs to be JSON object.
I want to send invoice to user but my code doesn't work.