Jump to content
Sign in to follow this  
CubeCart Bot

Test Payment Gateway

Recommended Posts

This looks so much like Goober's plugin (Alex Goldberg, GWorks, ccmodder.com), albeit with a bit of enhancement.

Just sayin' to know what appears to be the plugin's provenance. I have been using this plugin since 2011 for CC5.

As such, there are two things that you need to be aware of:

First, in gateway.transfer.php:

Near line 19:

foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&');

Change to:

$fields_string = ''; foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
$fields_string = rtrim($fields_string,'&');

Initializing $fields_string to an empty string satisfies very strict programming protocols - but is not essential to PHP.

The rtrim() returns a value - and does not change the value by reference.

Second, I have tried many times in many ways, but I have never managed to get the CURL transfer to happen on a localhost development machine. However, the problem may be caused by using a web server that is not Apache, or a version of PHP where CURL doesn't work on localhost (127.0.0.1). But, on a computer that responds to a FQDN, I have good results.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...