Jump to content

offline payment


RuFiK

Recommended Posts

Heloo please fill the Attachment

 

http://img268.imageshack.us/img268/4953/smsoffline.png

 

and here is my source code of Payment (Offline)

 

<?php

if(isset($_POST['account']) AND is_numeric($_POST['account']) AND isset($_POST['invoice']) AND isset($_POST['client']))

{

require("../../dbconnect.php");

 

// Check the logged in user with the posted user

if($_SESSION['uid'] == $_POST['client'])

{

// Check if the invoice is from the user

$result = mysql_query("SELECT id FROM tblinvoices WHERE userid='".$_POST['client']."' AND id = '".$_POST['invoice']."';");

 

if(mysql_numrows($result) == 1)

{

/*

Put in a script like updating the invoice description with the details, or just a PHP-mail script.

*/

echo "<script type=\"text/javascript\">

<!--

alert('Bank account number saved (or something)...');

window.location = \"../../clientarea.php\"

//-->

</script>";

}

}

die();

}

 

function vssmsoffline_config()

{

$configarray = array(

"FriendlyName" => array("Type" => "System", "Value"=>"Payment (offline)"),

"testmode" => array("FriendlyName" => "Test Mode", "Type" => "yesno", "Description" => "Tick this to test", ),

"instructions" => array("FriendlyName" => "Payment Instructions", "Type" => "textarea", "Rows" => "5", "Description" => "Do this then do that etc...", ),

);

return $configarray;

}

 

function vssmsoffline_link($params)

{

$code = '<form method="post"" action="/modules/gateways/vssmsoffline.php">

<input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" />

<input type="hidden" name="invoice" value="'.$params['invoiceid'].'" />

<input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" />

<input type="fieldarea" />

<textarea name="field[instructions]" cols="60" rows=""> </textarea>

<input type="submit" value="Request payment" />

</form>';

 

return $code;

}

?>

 

 

What is wrong, i want to look that like as "Przelew bankowy"

 

Thank you

Link to comment
Share on other sites

Hey,

 

See

 

function vssmsoffline_link($params)
{
$code = '<form method="post"" action="/modules/gateways/vssmsoffline.php">
<input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" />
<input type="hidden" name="invoice" value="'.$params['invoiceid'].'" />
<input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" />
<input type="fieldarea" />
<textarea name="field[instructions]" cols="60" rows=""> </textarea>
<input type="submit" value="Request payment" />
</form>';

 

<input type="submit" value="Request payment" />

 

You need to set this section to what you want:

 

Try

 

function vssmsoffline_link($params)
{
$code = '<form method="post"" action="/modules/gateways/vssmsoffline.php">
<input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" />
<input type="hidden" name="invoice" value="'.$params['invoiceid'].'" />
<input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" />
<input type="fieldarea" />
<textarea name="field[instructions]" cols="60" rows=""> </textarea>
<input type="submit" value="Przelew bankowy" />
</form>';

 

Cant promise, but it looks right here :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated