Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions includes/API/Tip/Log/Request.php

This file was deleted.

13 changes: 0 additions & 13 deletions includes/API/Tip/Log/Response.php

This file was deleted.

21 changes: 0 additions & 21 deletions includes/API/Tip/Read/Request.php

This file was deleted.

46 changes: 0 additions & 46 deletions includes/API/Tip/Read/Response.php

This file was deleted.

23 changes: 0 additions & 23 deletions includes/fbutils.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,29 +453,6 @@ public static function fblog(
}
}

/**
* Utility function for development Tip Events logging.
*
* @param string $tip_id
* @param string $channel_id
* @param string $event
* @param string $ems
*/
public static function tip_events_log( $tip_id, $channel_id, $event, $ems = '' ) {
// phpcs:ignore Universal.Operators.DisallowShortTernary.Found
$ems = $ems ?: self::$ems;
if ( $ems ) {
try {
facebook_for_woocommerce()->get_api()->log_tip_event( $tip_id, $channel_id, $event );
} catch ( ApiException $e ) {
$message = sprintf( 'There was an error while logging tip events: %s', $e->getMessage() );
facebook_for_woocommerce()->log( $message );
}
} else {
error_log( 'external merchant setting is null' );
}
}

/**
* Returns whether the variation type is 'variation' or 'subscription_variation'.
*
Expand Down