digital-pros / commerce-authorize

Authorize.net - Craft Commerce 2 Plugin
Other
3 stars 9 forks source link

Error when capturing in admin #11

Closed keyurshah closed 4 years ago

keyurshah commented 4 years ago

Describe the bug I placed an order with paymen type AUTHORIZE.

I tried to capture the payment in the admin but got the error:

image

(USD) (1 USD = 1 USD)"},{"label":"Gateway Response","type":"response","value":"{\"messages\":{\"resultCode\":\"Error\",\"message\":{\"code\":\"E00003\",\"text\":\"The element 'transactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'payment' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'userFields, surcharge, merchantDescriptor, subMerchant, tip, processingOptions, subsequentAuthInformation, otherTax, shipFrom' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.\"}}}"}]'> |  
-- | --

This does not seem to happen with other gateways.

To Reproduce Steps to reproduce the behavior:

  1. Place order on site with AUTHORIZE
  2. Go to admin
  3. Capture payment.

This is on the latest Craft 3.0.11 and commerce-authorize 1.0.10 versions

Thanks.

benlobach commented 4 years ago

@keyurshah, 1.0.11 has been released which fixes this bug. Let me know if you have any questions!

keyurshah commented 4 years ago

thanks so much for the quick fix!