Proceed to Payment 'Sample Item', 'amount' => 100, 'email' => 'client@example.com', 'phone' => '1234567890', 'client_name' => 'John Doe', 'success_url' => 'https://phpwallet.codesviral.com/success', 'failed_url' => 'https://phpwallet.codesviral.com/failed', 'api_key' => 'YOUR_API_KEY' ]; $options = [ 'http' => [ 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ], ]; $context = stream_context_create($options); $result = file_get_contents($endpoint, false, $context); if ($result === FALSE) { // Handle error } echo $result; ?>
المشاركات
عرض المشاركات من ديسمبر, 2024