WordPress.org

Plugin Directory

Changeset 612795


Ignore:
Timestamp:
10/15/12 15:01:55 (18 months ago)
Author:
kovshenin
Message:

Better logging for failed payment_result, and look for all post statuses when searching for attendees by payment token in payment_result.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • camptix/trunk/camptix.php

    r612792 r612795  
    54735473            'posts_per_page' => -1, 
    54745474            'post_type' => 'tix_attendee', 
    5475             'post_status' => 'any', 
     5475            'post_status' => array( 'draft', 'pending', 'publish', 'cancel', 'refund', 'failed' ), 
    54765476            'meta_query' => array( 
    54775477                array( 
     
    54845484        ) ); 
    54855485 
    5486         if ( ! $attendees ) 
    5487             die( 'the attendees have gone somewhere.' ); 
     5486        if ( ! $attendees ) { 
     5487            $this->log( 'Could not find attendees by payment token', null, $_POST ); 
     5488            die(); 
     5489        } 
    54885490 
    54895491        $transaction_id = null; 
Note: See TracChangeset for help on using the changeset viewer.