Author: lektran
Date: Mon Jan 18 18:12:50 2010
New Revision: 900490
URL: http://svn.apache.org/viewvc?rev=900490&view=rev
Log:
Applied patch from Aswath Satrasala, OFBIZ-3335. Added support for passing a
currency value to PayPal's Website Payments Standard interface.
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java?rev=900490&r1=900489&r2=900490&view=diff
==============================================================================
---
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
(original)
+++
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
Mon Jan 18 18:12:50 2010
@@ -85,6 +85,7 @@
// get the order total
String orderTotal =
orderHeader.getBigDecimal("grandTotal").toPlainString();
+ String currencyUom = orderHeader.getString("currencyUom");
// get the product store
GenericValue productStore =
ProductStoreWorker.getProductStore(request);
@@ -153,6 +154,7 @@
parameters.put("invoice", orderId);
parameters.put("custom", userLogin.getString("userLoginId"));
parameters.put("amount", orderTotal);
+ parameters.put("currency_code", currencyUom);
parameters.put("return", returnUrl);
if (UtilValidate.isNotEmpty(cancelReturnUrl))
parameters.put("cancel_return", cancelReturnUrl);
parameters.put("notify_url", notifyUrl);