Skip to content

Commit

Permalink
Updated for new location of WebUtilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesde committed Oct 31, 2016
1 parent d9eab0e commit c4d2d55
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion service/AuthorizeDotNet/AimPaymentServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ along with this software (see the LICENSE.md file). If not, see

<entity-find-one entity-name="AuthorizeDotNet.PaymentGatewayAuthorizeNet" value-field="pgan"/>

<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpMapRequest(pgan.transactionUrl, requestMap)"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpMapRequest(pgan.transactionUrl, requestMap)"/>

<if condition="!responseString">
<entity-find-one entity-name="mantle.account.payment.Payment" value-field="payment"/>
Expand Down
10 changes: 5 additions & 5 deletions service/AuthorizeDotNet/CimPaymentServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ along with this software (see the LICENSE.md file). If not, see
"""]]></script>

<!-- <log level="info" message="========== CimPaymentServices.authorize#Payment requestString: \n${requestString}"/> -->
<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<log level="info" message="CimPaymentServices.authorize#Payment responseString: \n${responseString}"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>

Expand Down Expand Up @@ -111,7 +111,7 @@ along with this software (see the LICENSE.md file). If not, see
"""]]></script>

<!-- <log level="info" message="========== CimPaymentServices.capture#Payment requestString: \n${requestString}"/> -->
<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<log level="info" message="CimPaymentServices.capture#Payment responseString: \n${responseString}"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>

Expand Down Expand Up @@ -171,7 +171,7 @@ along with this software (see the LICENSE.md file). If not, see
</createCustomerProfileTransactionRequest>
"""]]></script>

<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>
<if condition="responseNode.directResponse">
<service-call name="AuthorizeDotNet.AimPaymentServices.save#AimResponse" out-map="context"
Expand Down Expand Up @@ -219,7 +219,7 @@ along with this software (see the LICENSE.md file). If not, see
</createCustomerProfileTransactionRequest>
"""]]></script>

<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>
<if condition="responseNode.directResponse">
<service-call name="AuthorizeDotNet.AimPaymentServices.save#AimResponse" out-map="context"
Expand Down Expand Up @@ -270,7 +270,7 @@ along with this software (see the LICENSE.md file). If not, see
</createCustomerProfileTransactionRequest>
"""]]></script>

<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>
<if condition="responseNode.directResponse">
<service-call name="AuthorizeDotNet.AimPaymentServices.save#AimResponse" out-map="context"
Expand Down
4 changes: 2 additions & 2 deletions service/AuthorizeDotNet/CimServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ along with this software (see the LICENSE.md file). If not, see
</if>

<!-- <log level="info" message="========== store#CustomerPaymentMethod requestString: \n${requestString}"/> -->
<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<log level="info" message="store#CustomerPaymentMethod responseString: \n${responseString}"/>

<set field="responseNode" from="new XmlParser().parseText(responseString)"/>
Expand Down Expand Up @@ -185,7 +185,7 @@ along with this software (see the LICENSE.md file). If not, see
</deleteCustomerPaymentProfileRequest>
"""]]></script>

<set field="responseString" from="org.moqui.impl.StupidWebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseString" from="org.moqui.util.WebUtilities.simpleHttpStringRequest(pgan.transactionUrl, requestString, 'text/xml')"/>
<set field="responseNode" from="new XmlParser().parseText(responseString)"/>

<if condition="responseNode.messages.resultCode.text() != 'Ok'">
Expand Down

0 comments on commit c4d2d55

Please sign in to comment.