This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
144 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Title: ING Kassa Compleet listener | ||
* Description: | ||
* Copyright: Copyright (c) 2005 - 2016 | ||
* Company: Pronamic | ||
* | ||
* @author Reüel van der Steege | ||
* @version 1.0.3 | ||
* @since 1.0.1 | ||
*/ | ||
class Pronamic_WP_Pay_Gateways_ING_KassaCompleet_Listener implements Pronamic_Pay_Gateways_ListenerInterface { | ||
/** | ||
* Listen to ING Kassa Compleet webhook requests. | ||
*/ | ||
public static function listen() { | ||
if ( filter_has_var( INPUT_GET, 'ing_kassa_compleet_webhook' ) ) { | ||
$data = json_decode( file_get_contents( 'php://input' ) ); | ||
|
||
if ( is_object( $data ) && isset( $data->order_id ) ) { | ||
$payment = get_pronamic_payment_by_transaction_id( $data->order_id ); | ||
|
||
Pronamic_WP_Pay_Plugin::update_payment( $payment, false ); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.