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

PayPal gateway should check for SuccessWithWarning

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.2, 2.1.4, 2.1.5, 2.1, 2.2.0, 2.2.1, 2.2.2
    • Fix Version/s: 2.2.4
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When paypal reports SuccessWithWarning, the transaction is completed, though it appears CiviCRM will record this as an error.

      In PayPalImpl.php:

      if ( strtolower( $result['ack'] ) != 'success' ) {
      $e =& CRM_Core_Error::singleton( );
      $e->push( $result['l_errorcode0'],
      0, null,
      "{$result['l_shortmessage0']} {$result['L_LONGMESSAGE0']}" );
      return $e;
      }

      The 'ACK' return code can also be SuccessWithWarning.
      See https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_NVPAPIBasics

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              djtack Dylan Tack
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified