New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
PHP Coding Help
peachstoli
Member
How can i get these values on that proccess.php
$code = '<form method="http://mydomain.com/paytm/process.php">
<input type="hidden" name="username" value="'.$gatewayusername.'" />
<input type="hidden" name="invoiceid" value="'.$invoiceid.'" />
<input type="hidden" name="amount" value="'.$amount.'" />
<input type="submit" value="Pay Now" />
</form>';
return $code;
Comments
Change:
<form method="http://mydomain.com/paytm/process.php">
To:
<form method="post" action="http://mydomain.com/paytm/process.php">
And in process.php process the $_POST array?
It won't work in whmcs. Its a custom payment gateway.
I have no knowledge of whmcs, but an html form's "method" must be either "get" or "post". Providing a URL is incorrect.
function template_link($params) {
';
}
Same as their dev kit.
I know a pretty good amount of PHP and I have to agree with @sleddog the method is either post or get. The action is the url for the processing. Am I right to assume you are creating a custom payment page?
@NickGH @sleddog
Its post. I figured it out. But they didn't included in devkit.
Now its working.
Thank you guys.
Your welcome. if you have any more road blocks pm me or email me at [email protected]