Skip to content

Commit

Permalink
Improved non CC error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesde committed Jul 11, 2017
1 parent a8775b8 commit 8eb6d87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions service/AuthorizeDotNet/CimPaymentServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with this software (see the LICENSE.md file). If not, see
<if condition="payment == null"><return message="Payment ${paymentId} not found"/></if>
<set field="paymentMethod" from="payment.'mantle.account.method.PaymentMethod'"/>
<if condition="paymentMethod?.paymentMethodTypeEnumId != 'PmtCreditCard'">
<return error="true" message="Cannot not process payment [${paymentId}], not a Credit Card payment."/></if>
<return error="true" message="Cannot authorize payment ${paymentId}, not a Credit Card payment."/></if>

<!-- get creditCard for cardSecurityCode before CIM check as that will remove it -->
<if condition="!cardSecurityCode">
Expand Down Expand Up @@ -74,7 +74,7 @@ along with this software (see the LICENSE.md file). If not, see
<if condition="payment == null"><return message="Payment ${paymentId} not found"/></if>
<set field="paymentMethod" from="payment.'mantle.account.method.PaymentMethod'"/>
<if condition="paymentMethod?.paymentMethodTypeEnumId != 'PmtCreditCard'">
<return error="true" message="Cannot not process payment [${paymentId}], not a Credit Card payment."/></if>
<return error="true" message="Cannot capture payment ${paymentId}, not a Credit Card payment."/></if>

<!-- if no gatewayCimId, store the PaymentMethod on CIM -->
<if condition="!paymentMethod.gatewayCimId">
Expand Down Expand Up @@ -125,7 +125,7 @@ along with this software (see the LICENSE.md file). If not, see
<if condition="payment == null"><return message="Payment ${paymentId} not found"/></if>
<set field="paymentMethod" from="payment.'mantle.account.method.PaymentMethod'"/>
<if condition="paymentMethod?.paymentMethodTypeEnumId != 'PmtCreditCard'">
<return error="true" message="Cannot not process payment [${paymentId}], not a Credit Card payment."/></if>
<return error="true" message="Cannot authorize and capture payment ${paymentId}, not a Credit Card payment."/></if>

<!-- get creditCard for cardSecurityCode before CIM check as that will remove it -->
<if condition="!cardSecurityCode">
Expand Down Expand Up @@ -175,7 +175,7 @@ along with this software (see the LICENSE.md file). If not, see
<if condition="payment == null"><return message="Payment ${paymentId} not found"/></if>
<set field="paymentMethod" from="payment.'mantle.account.method.PaymentMethod'"/>
<if condition="paymentMethod?.paymentMethodTypeEnumId != 'PmtCreditCard'">
<return error="true" message="Cannot not process payment [${paymentId}], not a Credit Card payment."/></if>
<return error="true" message="Cannot release authorization for payment ${paymentId}, not a Credit Card payment."/></if>

<!-- if no gatewayCimId, store the PaymentMethod on CIM -->
<if condition="!paymentMethod.gatewayCimId">
Expand Down Expand Up @@ -222,7 +222,7 @@ along with this software (see the LICENSE.md file). If not, see
<if condition="payment == null"><return message="Payment ${paymentId} not found"/></if>
<set field="paymentMethod" from="payment.'mantle.account.method.PaymentMethod'"/>
<if condition="paymentMethod?.paymentMethodTypeEnumId != 'PmtCreditCard'">
<return error="true" message="Cannot not process payment [${paymentId}], not a Credit Card payment."/></if>
<return error="true" message="Cannot refund payment ${paymentId}, not a Credit Card payment."/></if>

<!-- if no gatewayCimId, store the PaymentMethod on CIM -->
<if condition="!paymentMethod.gatewayCimId">
Expand Down

0 comments on commit 8eb6d87

Please sign in to comment.