Skip to content
Snippets Groups Projects
Commit 0a60c5ea authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Fix missing class in webhook code

parent d3f6c83d
Branches
Tags
1 merge request!44Automatically create/update webhooks
<?php
/*
* Payment Processor class for Stripe
/**
* https://civicrm.org/licensing
*/
/**
* Class CRM_Core_Payment_Stripe
*/
class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
use CRM_Core_Payment_StripeTrait;
......
......@@ -22,7 +22,7 @@ class CRM_Stripe_Webhook {
foreach ($result['values'] as $paymentProcessor) {
$webhook_path = self::getWebhookPath($paymentProcessor['id']);
\Stripe::setApiKey(CRM_Core_Payment_Stripe::getSecretKey($paymentProcessor));
\Stripe\Stripe::setApiKey(CRM_Core_Payment_Stripe::getSecretKey($paymentProcessor));
try {
$webhooks = \Stripe\WebhookEndpoint::all(["limit" => 100]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment