Step 1: Download the sdk from here: 
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_Java_NVP_SDK.zip
Step 2: Grab the lib/paypal_base.jar and drop it into 
applications/accounting/lib/  (You will need some of the other jars from the 
download but I can't remember which ones, once you get up and running you'll 
soon see what is missing)
Step 3: Comment or delete the following line from 
applications/accounting/build.xml
<exclude name="org/ofbiz/accounting/thirdparty/paypal/PayPalServices.java"/>
Step 4: Make sure the following entity-xml data is being loaded (out of the box 
this data resides in specialpurpose/ecommerce/data/DemoProduct.xml and is 
commented out):
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_AUTH" 
paymentService="" paymentCustomMethodId="PAYPAL_AUTH" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_REAUTH" 
paymentService="" paymentCustomMethodId="PAYPAL_AUTH" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_CAPTURE" 
paymentService="" paymentCustomMethodId="PAYPAL_CAPTURE" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_REFUND" 
paymentService="" paymentCustomMethodId="PAYPAL_REFUND" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_RELEASE" 
paymentService="" paymentCustomMethodId="PAYPAL_CAPTURE" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>

Step 5: Comment or delete the following line if your deployment is loading it 
(same OOTB location as above):
    <ProductStorePaymentSetting productStoreId="9000" 
paymentMethodTypeId="EXT_PAYPAL" paymentServiceTypeEnumId="PRDS_PAY_EXTERNAL" 
paymentService="" paymentCustomMethodId="" 
paymentGatewayConfigId="PAYPAL_CONFIG"/>

Step 6: Modify the following line from 
applications/accounting/data/AccountingTypeData.xml:
    <PaymentGatewayPayPal paymentGatewayConfigId="PAYPAL_CONFIG" 
businessEmail="" apiUserName="" apiPassword="" apiSignature="" 
apiEnvironment="" notifyUrl="" returnUrl="" cancelReturnUrl="" imageUrl="" 
confirmTemplate="/order/emailconfirmation.ftl" 
redirectUrl="https://www.sandbox.paypal.com/webscr"; 
confirmUrl="https://www.sandbox.paypal.com/us/cgi-bin/webscr"; 
shippingCallbackUrl="" requireConfirmedShipping="N"/>
Make it look like this, filling in the <INFO> pieces with your information:
    <PaymentGatewayPayPal paymentGatewayConfigId="PAYPAL_CONFIG" 
apiUserName="<YOUR API USER NAME>" apiPassword="<YOUR API PASSWORD>" 
apiSignature="<YOUR API SIGNATURE>" apiEnvironment="sandbox" 
returnUrl="https://<YOUR OFBIZ SERVER 
URL>/ecommerce/control/payPalCheckoutReturn" cancelReturnUrl="https://<YOUR 
OFBIZ SERVER URL>/ecommerce/control/payPalCheckoutCancel" 
confirmTemplate="/order/emailconfirmation.ftl" 
redirectUrl="https://www.sandbox.paypal.com/webscr"; 
confirmUrl="https://www.sandbox.paypal.com/us/cgi-bin/webscr"; 
shippingCallbackUrl="https://<YOUR OFBIZ SERVER 
URL>/ecommerce/control/payPalCheckoutUpdate" requireConfirmedShipping="N"/>

I think that's it, I haven't worked with it for a while.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 30/01/2010, at 10:32 AM, rohit wrote:

> 
> yes, i too intend to use the NVP API.
> 
> Rohit
> 
> 
> -- 
> View this message in context: 
> http://n4.nabble.com/Paypal-Payment-via-PayFlow-Pro-tp1288675p1457539.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to