Here is the Webapplica contribution to OFBiz.
We write a Service to communicate with Monetra's Server site.
We put it in the org.ofbiz.accounting.thirdparty.monetra package.
The Monetra Class implements the 4 main methods for the Credit Card functions:
- public static Map ccProcessor(DispatchContext dctx, Map context)
- public static Map ccCapture(DispatchContext dctx, Map context)
- public static Map ccVoid(DispatchContext dctx, Map context)
- public static Map ccRefund(DispatchContext dctx, Map context)
You need to add this lines on the payment.properties file (applications/accounting/config/)
############################################
# Monetra Configuration
############################################
# Address and port of the payment processor
payment.monetra.url=https://testbox.monetra.com:8666/
# Account information
payment.monetra.vendor=Buy Cheap Software
payment.monetra.user=vitale
payment.monetra.pwd=test
payment.monetra.partner=Monetra
# Use Address Verification
payment.monetra.checkAvs=Y
# Require CVV2 Verification
payment.monetra.checkCvv2=N
# Pre-Authorize Payments (if set to N will auto-capture)
payment.monetra.preAuth=Y
############################################
Change these settings to communicate with you own monetra server.
You need to create a service_monetra.xml file (in the servicedef folder) to set the service names and add the following line in the ofbiz-component.xml file:
<service-resource type="model" loader="main" location="servicedef/services_monetra.xml"/>
To make these thing running you have to set on the Catalog Manager Application (see the png file)
On the Payment menu item of your default store you have to create/define new service names that match with the service names in the services_monetra.xml file.
All needed files were attached in this post
Best Regards
Jackson da Cruz
Webapplica Inc. Team
Zip File with needed files