- Beg link will only work in NONE pay mode! (unfinished, sleepy here...)
[mailer.git] / inc / libs / wernis_functions.php
index 2308b81fa50a1cd37d1c2b2a40a3274e4117b1d1..fed9c42c5c05e704e185de1526c5e65f38364a78 100644 (file)
@@ -262,7 +262,7 @@ function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
 
 
 // Payout this amount
-function WERNIS_EXECUTE_PAYOUT ($wdsId, $userMd5, $amount) {
+function WERNIS_EXECUTE_PAYOUT ($wdsId, $amount) {
        global $_CONFIG;
 
        // Default is failed attempt
@@ -275,9 +275,9 @@ function WERNIS_EXECUTE_PAYOUT ($wdsId, $userMd5, $amount) {
        // Prepare the request data
        $requestData = array(
                'sub_request'   => "send",
-               't_uid'                 => bigintval($wdsId),
-               't_md5'                 => $userMd5,
-               'r_uid'                 => $_CONFIG['wernis_refid'],
+               't_uid'                 => $_CONFIG['wernis_refid'],
+               't_md5'                 => $_CONFIG['wernis_pass_md5'],
+               'r_uid'                 => bigintval($wdsId),
                'amount'                => bigintval($amount),
                'purpose'               => urlencode(base64_encode($purpose))
        );