Jump to content

"Manual" Gateway Possible?


Guest Darkheart

Recommended Posts

Guest Darkheart

Hi there, I've been developing this software for a friend of mine who wanted to set up a simple webshop quickly and easily that he could manage simply. So far I'm finding Cubecart pretty good.

We do have one small issue however.

My friend has the ability to take credit-card payments via his own system in the office and can do this much more cheaply than any of the payment gateways (he is quite low volume on these products ATM). He would like to simply recieve the customers order via e-mail with the credit card details so he can simply debit the customers card and send a confirmation e-mail to the customer manually. This is similar to the way a lot of mail order companies work particularly those that work by phone.

Quiet simply, is this possible with Cubecart? If so how do I configure it? Or does he have to use one of the preselected gateways?

Thanks,

Darkheart

Link to comment
Share on other sites

You can setup a simple form mailer and link it to an order form on your site pretty much like this one : http://www.vitaminlink.net/order-form/info...84412133e5ce1b0

It shouldn't be too difficult to set this up.

// make sure this script was called via POST method, not GET

if ('POST' != $_SERVER['REQUEST_METHOD']) {

exit('Not a POST request.');

}

// make your changes here

$sender = 'their email';

$recipient = 'your email';

$subject = 'Submitted form contents from your website';

$body = "Input from submitted form:\n\n";

$redirect = 'thank you.html';

// loop through form input

foreach ($_POST as $key => $value) {

$body .= $key . ' = ' . $value . "\n";

}

// additional (client) information

$body .= "\n\nAdditional (client) information:\n\n"

. 'Date = ' . date('Y-m-d H:i') . "\n"

. 'Browser = ' . HTTP_USER_AGENT . "\n"

. 'IP Address = ' . $_SERVER['REMOTE_ADDR'] . "\n"

. 'Hostname = ' . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "\n";

// send email

mail($recipient, $subject, $body, 'From: ' . $sender);

// redirect to confirmation page

header('Location: ' . $redirect);

?>

Link to comment
Share on other sites

Guest gwizard

Roban, I think he meant getting credit cards manually and then proccessing them. Not order form.

Dark, I have built such mod.

Please visit cubeCart.org forum and look at Manual Credit Mod under Commercial Mods.

Btw, questions about mods, missing functionality and such are more appropriate and better answered in the cubecart.org forum.

;)

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.

×
×
  • Create New...