X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FPayment.php;h=bf10d26f1546f9ea5684aede88cae3ca94b23fb1;hb=6183be9a60c961ce8604836a61c68659bd0d6146;hp=b601cd684f2acf4f98fa409f197aabdea291d656;hpb=089e2d1ef015013ca074c16921f86d6744f0618b;p=civicrm-core.git diff --git a/api/v3/Payment.php b/api/v3/Payment.php index b601cd684f..bf10d26f15 100644 --- a/api/v3/Payment.php +++ b/api/v3/Payment.php @@ -273,6 +273,22 @@ function _civicrm_api3_payment_create_spec(&$params) { 'type' => 'Text', ], ], + 'order_reference' => [ + 'name' => 'order_reference', + 'type' => CRM_Utils_Type::T_STRING, + 'title' => 'Order Reference', + 'description' => 'Payment Processor external order reference', + 'maxlength' => 255, + 'size' => 25, + 'where' => 'civicrm_financial_trxn.order_reference', + 'table_name' => 'civicrm_financial_trxn', + 'entity' => 'FinancialTrxn', + 'bao' => 'CRM_Financial_DAO_FinancialTrxn', + 'localizable' => 0, + 'html' => [ + 'type' => 'Text', + ], + ], 'check_number' => [ 'name' => 'check_number', 'type' => CRM_Utils_Type::T_STRING,