Support payment related fields on Payment.Create
authoreileen <emcnaughton@wikimedia.org>
Fri, 18 Oct 2019 04:20:40 +0000 (17:20 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 21 Oct 2019 21:44:05 +0000 (10:44 +1300)
commita494d7a37e60424e3a2b09b28b3cb3bb3687a307
tree86ab3c05ed8fd592cae12f366f58b338c294284b
parent9aef96d165f8012e103624a9e7b3133d77e8e69e
Support payment related fields on Payment.Create

On some digging I found that various payment related fields like pan_truncation & card_type_id were
being quietly ignored rather than saved by Payment.create

The additional payment form now uses this api so it is a regression on that form.

This fixes the metadata, tests & support for payment-related trxn fields
CRM/Core/BAO/FinancialTrxn.php
CRM/Core/DAO.php
CRM/Financial/BAO/Payment.php
api/v3/Payment.php
api/v3/utils.php
tests/phpunit/api/v3/PaymentTest.php
tests/phpunit/api/v3/SyntaxConformanceTest.php