// Ви можете викликати наш API за прикладом curl post $url = "https://portal.paypound.ltd/api/transaction"; $key = "Ваш ключ API"; // Заповнити реальною інформацією про клієнта $дані = [ 'api_key' => $ключ, 'first_name' => 'Ім'я', 'last_name' => 'Прізвище', 'address' => 'Адреса', 'customer_order_id' => 'ORDER-78544646461235', 'country' => 'US', 'state' => 'NY', // якщо ваша країна США, використовуйте лише 2-літерний код штату. 'city' => 'Нью-Йорк', 'zip' => '38564', 'ip_address' => '192.168.168.4', 'email' => 'test@gmail.com', 'country_code' => '+91', 'phone_no' => '999999999', 'сума' => '10,00', 'currency' => 'USD', 'card_no' => '4242424242424242', 'ccExpiryMonth' => '02', 'ccExpiryYear' => '2026', 'cvvNumber' => '123', 'response_url' => 'https://yourdomain.com/callback.php', 'webhook_url' => 'https://yourdomain.com/notification.php', ]; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HTTPHEADER,[ "Content-Type: application/json" ]); $відповідь = curl_exec($curl); curl_close($curl); $responseData = json_decode($response); if(isset($responseData['status']) && $respsonseData['status'] == '3d_redirect') { header("Розташування: ".$responseData['redirect_3ds_url']); } elseif(isset($responseData['status']) && $respsonseData['status'] == 'успішно') { echo "вашу транзакцію схвалено."; print_r($responseData); } ще { echo "ваша транзакція була відхилена"; print_r($responseData); }
top of page
Магазин: Stores
Магазин: RestaurantsReservations_Widget

380937929653

  • Facebook
  • Twitter
  • LinkedIn

©2022 Shop 2. Сайт создан на Wix.com

bottom of page