dev/core#3413 Remove handling of total_amount form propertyBag
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 25 Apr 2022 20:35:05 +0000 (08:35 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 25 Apr 2022 20:37:30 +0000 (08:37 +1200)
This appears to have caused a regression per
https://lab.civicrm.org/dev/core/-/issues/3413

In addition I don't think we should have a 'sloppy alternative'
to  being called with the correct documented
amount property

https://docs.civicrm.org/dev/en/latest/extensions/payment-processors/create/#available-parameters

Civi/Payment/PropertyBag.php

index 4e76c5aedf5d186951485e4795ca12e0692c933f..b524dc51362405f59c9d70f17d1659e35a179169 100644 (file)
@@ -26,7 +26,6 @@ class PropertyBag implements \ArrayAccess {
 
   protected static $propMap = [
     'amount'                      => TRUE,
-    'total_amount'                => 'amount',
     'billingStreetAddress'        => TRUE,
     'billing_street_address'      => 'billingStreetAddress',
     'street_address'              => 'billingStreetAddress',