- var_dump: documentation ( source)
- sprintf: documentation ( source)
<?php
$ENDPOINT_DEPOSIT_STATUS = 'transactions/%s';
$endpoint = sprintf($ENDPOINT_DEPOSIT_STATUS, '123sdsfs-dsfsdf-d=dsfsdf=sdf');
var_dump($endpoint);
$url = 'https://api.paymentsgate.pro/api/v1/' . $endpoint;
$body = 'transaction_id=123sdsfs-dsfsdf-d=dsfsdf=sdf';
var_dump($url);
$url .= '?' . $body;
var_dump($url);