Skip to content
Snippets Groups Projects
Commit f815b988 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

refactored IPN to use base IPN class from civicrm

This allows use of webhook in format /civicrm/payment/ipn/N

https://github.com/drastik/com.drastikbydesign.stripe/issues/221
parent fce5f136
No related branches found
No related tags found
No related merge requests found
......@@ -912,4 +912,15 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
}
/**
* Process incoming notification.
*/
static public function handlePaymentNotification() {
$data_raw = file_get_contents("php://input");
$data = json_decode($data_raw);
$ipnClass = new CRM_Core_Payment_StripeIPN($data);
$ipnClass->main();
}
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment