ProcessNet
Interchange's support for the ProcessNet
Payment Services Provider.
Synopsis
or
|
[charge route="processnet" param1="value1" param2="value2"]
|
Prerequisites
or
|
LWP::UserAgent and Crypt::SSLeay
|
Only one of the above options needs be present and working.
Description
The Vend::Payment::ProcessNet module implements the
processnet() subroutine for use with Interchange.
It is compatible on a call level with the other Interchange payment modules.
In theory (and even usually in practise) you could switch from another payment
module to ProcessNet with a few configuration file changes.
To enable this module, place this directive in your "interchange.cfg" file:
|
Require module Vend::Payment::ProcessNet
|
This must be in interchange.cfg or a file included from it.
Make sure CreditCardAuto is off, which is the default in
the Standard ecommerce demo.
The "mode" can be named anything, but the "gateway" parameter
must be set to "processnet".
To make it the default payment gateway for all credit card transactions in a
specific website, you can set the following in catalog.cfg:
|
Variable MV_PAYMENT_MODE processnet
|
It uses several of the standard settings from Interchange payment.
Any time we speak of a setting, it is obtained either first from the tag/call
options, then from an Interchange order Route named after
the mode, then finally a default global payment Variable.
For example, the id parameter would be specified by:
|
[charge route=processnet id=YourProcessNetID]
|
or
|
Route processnet id YourProcessNetID
|
or
|
Variable MV_PAYMENT_ID YourProcessNetID
|
Settings
| Name
|
Description
|
| id
|
Your ProcessNet account ID, supplied by ProcessNet when you sign up.
The variable is MV_PAYMENT_ID. |
| home_page
|
The URI of the web page you are posting from.
This is required by ProcessNet and defaults to
"http://__SERVER_NAME__" if not defined.
The variable is MV_PAYMENT_REFERER. |
| remap
|
This remaps the form variable names to the ones needed by ProcessNet. |
Troubleshooting
If nothing works:
Make sure you Required the module in
interchange.cfg:
|
Require module Vend::Payment::ProcessNet
|
Make sure either Net::SSLeay, or Crypt::SSLeay and
LWP::UserAgent are installed and working.
You can test to see whether your Perl thinks they are:
|
perl -MNet::SSLeay -le 'print "Available"'
|
or
|
perl -MLWP::UserAgent -MCrypt::SSLeay -le 'print "Available"'
|
If either of the above prints "Available", and returns to the shell prompt,
then you should be OK (presuming they are in working order otherwise).
- Check the local and global error log files.
- Make sure you set your payment parameters properly.
Try an order, then put this code in a page:
<pre>
[calcn]
my $string = $Tag->uneval({ ref => $Session->{payment_result} });
$string =~ s/{/{\n/;
$string =~ s/,/,\n/g;
return $string;
[/calcn]
</pre>
|
That should show what happened.
- If all else fails, consultants are available to help with integration for a fee.
Notes
There is actually nothing in Vend::Payment::ProcessNet;
This module changes its package name to Vend::Payment and
places things there.
Authors