Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19597

Allow the receive_date to be passed in when replaying Authorize.net transactions

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Sprint:
      4.7.14 Financial
    • Funding Source:
      Needs Funding

      Description

      Pretty much a case of

      Index: CRM/Core/Payment/AuthorizeNetIPN.php
      IDEA additional info:
      Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
      <+>UTF-8
      ===================================================================
      — CRM/Core/Payment/AuthorizeNetIPN.php (date 1477868586000)
      +++ CRM/Core/Payment/AuthorizeNetIPN.php (revision )
      @@ -121,7 +121,7 @@

      $transaction = new CRM_Core_Transaction();

      • $now = date('YmdHis');
        + $receive_date = date('YmdHis', strtotime($input['receive_date']));

      // fix dates that already exist
      $dates = array('create_date', 'start_date', 'end_date', 'cancel_date', 'modified_date');
      @@ -139,7 +139,7 @@
      $contribution->financial_type_id = $objects['contributionType']->id;
      $contribution->contribution_page_id = $ids['contributionPage'];
      $contribution->contribution_recur_id = $ids['contributionRecur'];

      • $contribution->receive_date = $now;
        + $contribution->receive_date = $receive_date;
        $contribution->currency = $objects['contribution']->currency;
        $contribution->payment_instrument_id = $objects['contribution']->payment_instrument_id;
        $contribution->amount_level = $objects['contribution']->amount_level;
        @@ -159,7 +159,7 @@
        if ($input['response_code'] == 1) {
        // Approved
        if ($first) { - $recur->start_date = $now; + $recur->start_date = $receive_date; $recur->trxn_id = $recur->processor_id; $this->_isFirstOrLastRecurringPayment = CRM_Core_Payment::RECURRING_PAYMENT_START; }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: