0

I am trying to include stripe-php files in my theme, i have included this in function where the web-hook is listening. Other actions performing without any error. But when i tried to call these files it throws me an error, Can anyone help me in this please.

add_action('wp_ajax_nopriv_multibanco_payment_webhook', 'multibanco_payment_webhook'); 

add_action('wp_ajax_multibanco_payment_webhook', 'multibanco_payment_webhook');

function multibanco_payment_webhook(){

    $wp_strip_path = dirname( __FILE__ )."/multibanco/stripe/init.php";
    require_once($wp_strip_path);    
    \Stripe\Stripe::setApiKey('sk_live_4zfLSISZXXjEqURCP0cbwRnT00d7pbro1X');
}
    ```
SREE NUNNA
  • 23
  • 4

0 Answers0