...
In
...
order
...
to
...
configure
...
Authorize.net
...
payment
...
gate
...
way
...
to
...
any
...
ofbiz
...
application
...
we
...
need
...
to
...
do
...
the
...
following
...
three
...
things.
...
1.
...
Change
...
payment.properties
...
2.
...
Import
...
SSL
...
certificate
...
3.
...
Configure
...
Product
...
Store
...
Settings.
...
1. Change payment.properties
payment.properties file location : ofizroot/applications/accounting/config
...
change the properties as mentioned
# For Test Auth.net Server
payment.authorizedotnet.url=
...
https://certification.authorize.net/gateway/transact.dll
...
payment.authorizedotnet.version=3.1
...
payment.authorizedotnet.login=
...
****
...
*
...
payment.authorizedotnet.trankey=*****
...
# For Live Server
payment.authorizedotnet.url=
...
https://secure.authorize.net/gateway/transact.dll
...
#if need to use version 3.0
...
in
...
live
...
need
...
to
...
use
...
login
...
and
...
password
...
#if
...
need
...
to
...
user
...
version
...
3.1
...
in
...
live
...
need
...
to
...
use
...
login
...
and
...
trankey
...
payment.authorizedotnet.version=3.1
...
#
...
TRUE
...
for
...
testing
...
live
...
server
...
FALSE
...
for
...
production
...
usage
...
payment.authorizedotnet.test=TRUE
...
payment.authorizedotnet.login=
...
*******
...
*
...
payment.authorizedotnet.trankey=********
...
*
...
payment.authorizedotnet.password=****
...
*
2. Import SSL Certificate:
Import the Authorize.net SSL Certificate into Ofbiz keystore named ofbizssl.jks
The test server certificate for authorize.net is downloaded from the url : https://test.authorize.net/
...
To
...
download
...
click
...
on
...
Lock
...
Image
...
beside
...
URL.
...
Use the following command in command prompt to import the certificate:
keytool -import -trustcacerts -file (path to certificate) -alias AUTHORIZE_NET -keystore ./ofbizssl.jks
Eg in LINUX:
keytool -import -trustcacerts -file /home/AuthorizeCertificate/TestAuth.cer
...
-alias
...
AUTHORIZE_NET
...
-keystore
...
./ofbizssl.
...
jks
3.
...
Configure
...
Product
...
Store
...
Settings.
...
Go
...
to
...
the
...
following
...
URL:
...
https://localhost:8443/catalog/control/EditProductStorePaySetup?productStoreId=9000
...
Use Admin Credentials login id/password
...
as:
...
admin/ofbiz.
...
Configure as per requirement:
- Select Payment Method Type as Credit Card
- Select Service Type as either (Payment Authorization Service/Payment Capture Service etc)
- Select Custom method as AIMCCAuth/AIMCCCapture and others as per requirement
Reference Files for debugging:
Services_authorizedotnet.xml
PaymentGatewayServices.java
AIMPaymentServices.java
payment.properties
DB Tables:
Product_Store_Payment_Setting
...
Payment_Custom_Method_
...
Id
For transaction details we can see all the Payment related tables.
Ofbiz Reference File:
http://docs.ofbiz.org/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide
...
k.hemanthkumar@gmail.
...
com
www.mindtree.com
...