Post by peteVA » Fri Jul 09, 2010 5:01 am

Just looking around last night through the files and came upon this one - malse.php_

Thought to myself "could that be Mal's Ecommerce?" I've mentioned a couple of times how nice it would be to have Mal'sE as part of the options. It's a truly secure, compliant offline payment system PLUS it has it's own Affiliate Program. What's not to like?

I Have always used it as a offline option with my CubeCart sites. It's a really nice option to offer, if you have a virtual terminal, which I do.

What's the story on this? Was it operational an now gone? Is it almost ready for release? Is it simply taking up space on the server?

A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!


User avatar
Active Member

Posts

Joined
Mon Jul 20, 2009 8:25 am

Post by Razgr1z912 » Fri Jul 09, 2010 7:23 am

Its an empty php file.

New member

Posts

Joined
Fri Jul 02, 2010 11:35 pm

Post by peteVA » Fri Jul 09, 2010 9:45 am

Actually, in 1.4.7 under admin/controller/payments it reads -

Code: Select all

<?php 
class ControllerPaymentMalsE extends Controller {
	private $error = array(); 

	public function index() {
		$this->load->language('payment/malse');

		$this->document->title = $this->language->get('heading_title');
		
		$this->load->model('setting/setting');
			
		if (($this->request->server['REQUEST_METHOD'] == 'POST') && ($this->validate())) {
			$this->load->model('setting/setting');
			
			$this->model_setting_setting->editSetting('malse', $this->request->post);				
			
			$this->session->data['success'] = $this->language->get('text_success');

			$this->redirect($this->url->https('extension/payment'));
		}

		$this->data['heading_title'] = $this->language->get('heading_title');

		$this->data['text_enabled'] = $this->language->get('text_enabled');
		$this->data['text_disabled'] = $this->language->get('text_disabled');
		$this->data['text_all_zones'] = $this->language->get('text_all_zones');
				
		$this->data['entry_account'] = $this->language->get('entry_account');
		$this->data['entry_domain'] = $this->language->get('entry_domain');
		$this->data['entry_order_status'] = $this->language->get('entry_order_status');		
		$this->data['entry_geo_zone'] = $this->language->get('entry_geo_zone');
		$this->data['entry_status'] = $this->language->get('entry_status');
		$this->data['entry_sort_order'] = $this->language->get('entry_sort_order');
		
		$this->data['button_save'] = $this->language->get('button_save');
		$this->data['button_cancel'] = $this->language->get('button_cancel');

		$this->data['tab_general'] = $this->language->get('tab_general');

		$this->data['error_warning'] = @$this->error['warning'];
		$this->data['error_account'] = @$this->error['account'];
		$this->data['error_domain'] = @$this->error['domain'];

  		$this->document->breadcrumbs = array();

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('common/home'),
       		'text'      => $this->language->get('text_home'),
      		'separator' => FALSE
   		);

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('extension/payment'),
       		'text'      => $this->language->get('text_payment'),
      		'separator' => ' :: '
   		);

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('payment/malse'),
       		'text'      => $this->language->get('heading_title'),
      		'separator' => ' :: '
   		);
				
		$this->data['action'] = $this->url->https('payment/malse');
		
		$this->data['cancel'] = $this->url->https('extension/payment');
		
		

		

		
		
		if (isset($this->request->post['malse_account'])) {
			$this->data['malse_account'] = $this->request->post['malse_account'];
		} else {
			$this->data['malse_account'] = $this->config->get('malse_account');
		}

		if (isset($this->request->post['malse_account'])) {
			$this->data['malse_domain'] = $this->request->post['malse_domain'];
		} else {
			$this->data['malse_domain'] = $this->config->get('malse_domain');
		}
		
		if (isset($this->request->post['malse_order_status_id'])) {
			$this->data['malse_order_status_id'] = $this->request->post['malse_order_status_id'];
		} else {
			$this->data['malse_order_status_id'] = $this->config->get('malse_order_status_id'); 
		} 
		
		$this->load->model('localisation/order_status');
		
		$this->data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses();
		
		if (isset($this->request->post['malse_geo_zone_id'])) {
			$this->data['malse_geo_zone_id'] = $this->request->post['malse_geo_zone_id'];
		} else {
			$this->data['malse_geo_zone_id'] = $this->config->get('malse_geo_zone_id'); 
		} 	
		
		$this->load->model('localisation/geo_zone');
										
		$this->data['geo_zones'] = $this->model_localisation_geo_zone->getGeoZones();
		
		if (isset($this->request->post['malse_status'])) {
			$this->data['malse_status'] = $this->request->post['malse_status'];
		} else {
			$this->data['malse_status'] = $this->config->get('malse_status');
		}
		
		if (isset($this->request->post['malse_sort_order'])) {
			$this->data['malse_sort_order'] = $this->request->post['malse_sort_order'];
		} else {
			$this->data['malse_sort_order'] = $this->config->get('malse_sort_order');
		}

		$this->id       = 'content';
		$this->template = 'payment/malse.tpl';
		$this->layout   = 'common/layout';
		
 		$this->render();
	}

	private function validate() {
		if (!$this->user->hasPermission('modify', 'payment/malse')) {
			$this->error['warning'] = $this->language->get('error_permission');
		}
		
		if (!@$this->request->post['malse_account']) {
			$this->error['account'] = $this->language->get('error_account');
		}

		if (!@$this->request->post['malse_domain']) {
			$this->error['domain'] = $this->language->get('error_domain');
		}
		
		if (!$this->error) {
			return TRUE;
		} else {
			return FALSE;
		}	
	}
}
?>
Someone put it there, it was definitely not me. I wish it were there and working and was one of the options under Payments. But the file is definitely there.

Free competition for Q's mod maybe? It's free, it's totally compliant (at least Mals is, don't know about this file) and it also has a free affiliate option.

It should be there.
Last edited by i2Paq on Fri Jul 09, 2010 1:48 pm, edited 3 times in total.
Reason: Code-tags added

A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!


User avatar
Active Member

Posts

Joined
Mon Jul 20, 2009 8:25 am

Post by Xsecrets » Fri Jul 09, 2010 10:59 am

strange in my 1.4.7 it's an empty file just like in 1.4.8, but there is a malse.php in the language folder with a title of Mal's e-commerce. When you mentioned it before I took a quick look, and all I saw was a complete shopping cart an no info what soever on an api or any way to use it as a payment gateway.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by peteVA » Fri Jul 09, 2010 11:50 am

In the 1.4.7 I have it is in the admin/controller/payments, but the catalog/controller/payments has the empty file.

There are dozens of carts that offer it, and I know there is some information on how to do it on Mal's site. It is not so friendly in that respect, you have to search it out, but it is there.

It looks like at one time it was in OC, but I can't say for sure.

I've been using it for years, the actual card info is double passworded, you have to get into your specific admin, then a second password to get the card info.

And it sends an email, just like PayPal. so you know there is money waiting.

People talk about a compliant offline method and it's right there.

A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!


User avatar
Active Member

Posts

Joined
Mon Jul 20, 2009 8:25 am

Post by Xsecrets » Fri Jul 09, 2010 11:57 am

yeah I thought it sounded like a good thing when you were talking about it last time so I spent about 20-30 min digging through the site/forums anything I could find for an api or any type of info that might help writing a module and finally gave up cause I couldn't find anything. Seems like they really want to push people to just use their cart.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by peteVA » Fri Jul 09, 2010 10:35 pm

Maybe you have to have an account. It's right there -

In some cases you may need to pass back data about an order to a script on your own server. This could be so that you can record orders to your own database or simply to send the customer an email.

It is assumed that the remote call will point to a some sort of CGI, ASP, Cold Fusion or PHP script. Anything returned by your server is ignored, it isn't displayed to the customer. No payment information is sent as the link does not use SSL.

Click here for a list of the fields passed in the remote call.

You can set-up the link by entering the URL below. Do not place http:// at the beginning.

The method used to call your script. GET or POST

You can get a free account. Get that then go to Cart Setup / Advanced settings / Remote call

A Trusted Wholesale Dropshipper
Web Hosting Under $ 5.00 Month! FREE Shopping Carts!
25,000+ Real Wholesale & Dropship Sources!


User avatar
Active Member

Posts

Joined
Mon Jul 20, 2009 8:25 am

Post by Qphoria » Fri Jul 09, 2010 11:01 pm

There were a lot of "partially started" payment modules when opencart was a bit younger and overzealous. Anything with a _ at the end of the name can be anywhere between closed to finished but untested, Or copies of another payment's code and just had the name changed, but still completely wrong. I have no idea how far daniel got with masle.php_

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Sun Jul 25, 2010 3:59 pm

peteVA wrote:It's a truly secure, compliant offline payment system PLUS it has it's own Affiliate Program. What's not to like?
Not as nice an interface. You lose your template.
Unless you want to pay for a Premium account which is something like $80+ per annum (and worth it). A tad more than Q's Offline Credit Card mod, wouldn't you say ?
I seem to recall iframes could be used to keep the template but then https breaks out of the iframe, at least that's what I experienced when I was testing it.
Last edited by jty on Fri Nov 19, 2010 6:26 pm, edited 3 times in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by jty » Wed Jul 28, 2010 1:50 am

*** deleted ***
Last edited by jty on Fri Jul 30, 2010 1:56 am, edited 5 times in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Xsecrets » Wed Jul 28, 2010 2:48 am

if mals doesn't allow parameters in their return url then that certainly throws a kink into things. About the only thing you could do is create an htacces rule and rewrite the url that you give to mals.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by jty » Fri Jul 30, 2010 2:19 am

I got Mals Remote Call to accept a URL with a parameter.
use '%3F'

http://www.yoursite.com/index.php%3Frou ... e/callback
note the '%3F' It has to be %3F instead of '?'
Last edited by jty on Fri Nov 19, 2010 6:30 pm, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Wed Aug 04, 2010 1:47 am

Xsecrets wrote:if mals doesn't allow parameters in their return url then that certainly throws a kink into things. About the only thing you could do is create an htacces rule and rewrite the url that you give to mals.
Yea there are a few payment gateways out there that do this and they need to be slapped. There are even ones like realex that don't allow you to redirect once you've processed the order information. Much hackery must be done and I've had to make standalone redirect pages for them. Good to hear mals allows %3F

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by fido-x » Tue Nov 23, 2010 4:27 pm

I've been doing some work on this lately, and can report that I've had some success.

It's been mentioned in previous posts in this thread that you can use "%3F" in place of a "?" in the Mals remote call function. In my own testing I found that, while using %3F allowed me to save the url of the callback to OC in the Mals setup, the debug emails sent by Mals (and my server log files) were reporting a 404 not found error. So I decided to ignore the remote call and make use of the return link instead.

How it Works
The customer adds items to their shopping cart on your OC site, then proceeds to the checkout. Upon clicking the "Confirm" button, they are sent to Mals where they are presented with an itemized list of the products they have selected, including quantities, unit price, total amount, subtotal, shipping and taxes (if applicable). Clicking the "Continue" button will present them with a page where they can securely enter their credit card details. After clicking the "Continue" button on this page, they are presented with a "Payment successfully processed" page. On this page, an "exit message" (and appropriate wording on the return button) is used to "encourage" the customer to return to your site to finalize the transaction.

Upon clicking that return button, they are returned to your site, where the order is updated, the shopping cart is cleared and an order confirmation email is sent to the customer from your site. If the customer is/was an account customer, they will still be logged in to their account.

I have a test environment set up at http://mals.fido-x.net for demonstration purposes. If you want to try it out, use a credit card number of 4111 1111 1111 1111. This number is not a "real" credit card number, and should work with any name and expiry date.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 9 guests