Skip to content

Commit

Permalink
Make sure to get valid payments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Mar 5, 2019
1 parent c328338 commit 56aa679
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public static function listen() {

$payment = get_pronamic_payment( $payment_id );

if ( null === $payment ) {
return;
}

// Add note.
$payment->add_note( __( 'Webhook requested.', 'pronamic_ideal' ) );

Expand Down

0 comments on commit 56aa679

Please sign in to comment.