array (
[ 'idReservation' ] = '' ; // R2.ID_R2
[ 'idSeller' ] = '' ; // payments proxy userId ( idSeller )
[ 'shopName' ] = '' ; // payments proxy shopName ( code )
[ 'returnUrl' ] = '' ; // here client will back after payment
[ 'secondaryCallbackUrl' ] = '' ;// payment callback URL
[ 'extra' ] = '' ; // (optional) any extra parameters will be passed to callback
)
OR
array (
[ 'webId' ] = '' ; // R2.WEB_ID
[ 'idSeller' ] = '' ; // payments proxy userId ( idSeller )
[ 'shopName' ] = '' ; // payments proxy shopName ( code )
[ 'returnUrl' ] = '' ; // here client will back after payment
[ 'secondaryCallbackUrl' ] = '' ;// payment callback URL
[ 'extra' ] = '' ; // (optional) any extra parameters will be passed to callback
)
require_once ( 'classUddsOx.php' ) ; $udds = new classUddsOx ; $udds->customerCode = [your_customerCode] ; $udds->login = [your_login] ; $udds->password = [your_password] ; $udds->serverUrl = 'http://api.dlaoperatora.pl/udds/' ; $yourParams = array(); $yourParams [ 'idReservation' ] = 4 ; $yourParams [ 'idSeller' ] = 1 ; $yourParams [ 'shopName' ] = 'KSITEST' ; $yourParams [ 'returnUrl' ] = 'https://mydomain.pl/reservation_XXXXXX.html' ; $yourParams [ 'secondaryCallbackUrl' ] = 'https://mydomain.pl/callback_XXXXXX.html' ; $ret = $udds->getReservationOnlinePayments ( $yourParams ) ;
Returns $ret =
( ... )