"createUpdateBillingAddressAndPaymentMethod" service called from one page checkout throws Exception due to incorrect field name
------------------------------------------------------------------------------------------------------------------------------- Key: OFBIZ-3887 URL: https://issues.apache.org/jira/browse/OFBIZ-3887 Project: OFBiz Issue Type: Bug Components: specialpurpose/ecommerce Affects Versions: Release Branch 10.04, SVN trunk Reporter: Rene Scheibe See the exception below: [java] ---- runtime exception report -------------------------------------------------- [java] Error evaluating Groovy scriptlet [${groovy: org.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo cpi = shoppingCart.getPaymentInfo(paymentMethodId, null, null, null, true); cpi.securityCode = cardSecurityCode; return cpi;}], inserting nothing; error was: groovy.lang.MissingPropertyException: No such property: cardSecurityCode for class: script1281373491954804188587 [java] Exception: groovy.lang.MissingPropertyException [java] Message: No such property: cardSecurityCode for class: script1281373491954804188587 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rene Scheibe updated OFBIZ-3887: -------------------------------- Attachment: OFBIZ-3887.patch Problem: The method "createUpdateBillingAddressAndPaymentMethod" in CheckoutServices.xml refers to a "billToCardSecurityCode" parameter, which is not existing. Instead OnePageCheckoutProcess.ftl defines this field with id="CVV2" and name="cardSecurityCode". Solution: 1. Change the "id" and "name" in OnePageCheckoutProcess.ftl to meet the attribute name of "createUpdateBillingAddressAndPaymentMethod". 2. Extend the attribute mapping line in CheckoutServices.xml so that in case the CVV2 is not entered by the user, the field is defined anyway. (otherwise groovy.lang.MissingPropertyException is still thrown as the field is always accessed) > "createUpdateBillingAddressAndPaymentMethod" service called from one page checkout throws Exception due to incorrect field name > ------------------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-3887 > URL: https://issues.apache.org/jira/browse/OFBIZ-3887 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Rene Scheibe > Attachments: OFBIZ-3887.patch > > > See the exception below: > [java] ---- runtime exception report -------------------------------------------------- > [java] Error evaluating Groovy scriptlet [${groovy: org.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo cpi = shoppingCart.getPaymentInfo(paymentMethodId, null, null, null, true); cpi.securityCode = cardSecurityCode; return cpi;}], inserting nothing; error was: groovy.lang.MissingPropertyException: No such property: cardSecurityCode for class: script1281373491954804188587 > [java] Exception: groovy.lang.MissingPropertyException > [java] Message: No such property: cardSecurityCode for class: script1281373491954804188587 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3887. ---------------------------------- Fix Version/s: Release Branch 10.04 SVN trunk Resolution: Fixed Thanks René, Your patch is in trunk at r983930, R10.04 at r983936 > "createUpdateBillingAddressAndPaymentMethod" service called from one page checkout throws Exception due to incorrect field name > ------------------------------------------------------------------------------------------------------------------------------- > > Key: OFBIZ-3887 > URL: https://issues.apache.org/jira/browse/OFBIZ-3887 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Affects Versions: Release Branch 10.04, SVN trunk > Reporter: Rene Scheibe > Fix For: Release Branch 10.04, SVN trunk > > Attachments: OFBIZ-3887.patch > > > See the exception below: > [java] ---- runtime exception report -------------------------------------------------- > [java] Error evaluating Groovy scriptlet [${groovy: org.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo cpi = shoppingCart.getPaymentInfo(paymentMethodId, null, null, null, true); cpi.securityCode = cardSecurityCode; return cpi;}], inserting nothing; error was: groovy.lang.MissingPropertyException: No such property: cardSecurityCode for class: script1281373491954804188587 > [java] Exception: groovy.lang.MissingPropertyException > [java] Message: No such property: cardSecurityCode for class: script1281373491954804188587 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |