Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PayPal Payment Setup
Anchor
payPalPaymentSetup
payPalPaymentSetup
  1. Go to Accounting - Payment Gateway Config and select "PayPal Payment Gateway" from the list
  1. Please fill all those fields to made working correctly to work with PayPal:

Business Email : Email address of your business
Notify URL : PayPal Notify URL (example (http://yourServerName/ecommerce/control/payPalNotify)
Return URL : PayPal Return URL (example (http://yourServerName/ecommerce/control/orderhistory)
Cancel Return URL : PayPal Return On Cancel URL (example http://yourServerName/ecommerce/control/payPalCancel/main)
Image URL : Image To Use On PayPal (example (http://yourServerName/images/ofbiz_logo.gif)
Confirm Template : Thank-You / Confirm Order Template (example /order/emailconfirmation.ftl)
Redirect URL : PayPal Redirect URL (Sandbox http://www.sandbox.paypal.com/us/cgi-bin/webscr Production https://www.paypal.com/cgi-bin/webscr)
Confirm URL : PayPal Confirm URL (Sandbox https://www.sandbox.paypal.com/us/cgi-bin/webscr Production http://www.paypal.com/cgi-bin/webscr)

  1. Once PayPal Payment Gateway has been configurated you have to go to Catalog - Stores - select your Store - Payments tab

  1. Edit the Payment Method Type Paypal and choose as Payment Gateway Config Id "PayPal Config".
    Image Modified
  1. As deprecated use you can alternatively change the configuration parameters into
    No Format
    
    ${ofbiz install dir}/applications/accounting/config/payment.properties
    
    The ones that always need to be changed for use of PayPal are:
    1. payment.paypal.business - set to an email address on your PayPal account
    2. payment.paypal.notify - just change domain name and port to the production values you are using
    3. payment.paypal.return - set to the URL where you want PayPal to send customers once payment is complete, typically back to your ecommerce web site
    4. payment.paypal.cancelReturn - set to the URL where you want PayPal to send customers when they cancel their payment
    5. payment.paypal.image - set to the URL of the image or logo you want PayPal to display to help customers know that the payment is being received on your behalf

The other properties beginning with "payment.paypal." can be set, but unless you know what you are doing we recommending leaving them as-is.

In addition to the settings in the payment.properties file, there is also a setting that you must change on the PayPal web site in your account so that notifications will be sent back to OFBiz to verify payment:

    1. Login to your account at PayPal.com
    2. Click on the "Profile" link in the header, near the top-right of the page
    3. In the "Selling Preferences" column click on the "Instance Payment Notification Preferences"
    4. It will show you the current settings. To chance click on the "Edit" button.
    5. Check the check box near the top of this page, just under the "Instant Payment Notification (IPN)" heading.
    6. Enter the notification URL in the text box. This should be the same as the value of the payment.paypal.notify property in the payment.properties file.
    7. Click on the "Save" button.
Payflow Pro Payment Setup
Anchor
payflowProPaymentSetup
payflowProPaymentSetup
  1. Put payflow.jar from Payflow Pro's Java SDK in the directory in
    No Format
    
    ${ofbiz install dir}applications/accounting/lib.
    
  2. Changed the accounting build.xml and comments to not exclude verisign sources like here :
    <target name="classes" depends="prepare">
    <javac15>
    <!-

...

  1. exclude the payment processor packages; comment this out to not exclude if you have libs

...

  1. ->
    <!

...

  1. - <exclude name="org/ofbiz/accounting/thirdparty/verisign/**"/>

...

  1. ->
    <exclude name="org/ofbiz/accounting/thirdparty/cybersource/**"/>
    <exclude name="org/ofbiz/accounting/thirdparty/worldpay/**"/>
    </javac15>
    </target>
  1. Confirm that applications/accounting/build/classes/org/ofbiz/accounting/thirdparty/verisign/PayflowPro.class was built and exists
  1. The installation of certificate is now no more necessary
  1. Go to Accounting - Payment Gateway Config and select "Payflow Pro Payment Gateway" from the list
  1. Please fill all those fields to made working correctly to work with Payflow Pro:

Certs Path : Path the the VeriSign Certificate (No more used from version v4)
Host Address : Address of the payment processor (example (Test test-payflow.verisign.com or Production payflow.verisign.com)
Host Port : Port of the payment processor (default is 443)
Timeout : Timeout (default is 80 seconds)
Proxy Address : Proxy Address
Proxy Port : Proxy Port (default is 80)
Proxy Logon : Proxy Logon
Proxy Password : Proxy Password
Vendor : Vendor of account information
User Id : PayFlow UserID of account information
Pwd : PayFlow Password of account information
Partner : PayFlow Partner of account information
Check Avs : Use Address Verification
Check Cvv2 : Require CVV2 Verification
Pre Auth : Pre-Authorize Payments (if set to N will auto-capture)
Enable Transmit : Set to false to not transmit anything
Log File Name : Log file name
Logging Level : Logging level
Max Log File Size : Max log file size
Stack Trace On : Stack trace on/off

  1. Once Payflow Pro Payment Gateway has been configurated you have to go to Catalog - Stores - select your Store - Payments tab

  1. Edit the Payment Method Type Paypal and choose as Payment Gateway Config Id "Payflow Pro Config".
    Image Modified

As deprecated use you can alternatively change the configuration parameters into

...