Support » Plugin: WooCommerce » WC + Stripe simple API-connection

  • Resolved sheldon66

    (@sheldon66)


    Hey there!

    I have the following issue:

    WC does provide the possibility to create webhooks. I created one (when a order is created) and the URL points to my php-file that I created. The php file contains the following code:

    
    <?php
    \Stripe\Stripe::setApiKey("MYKEY");
    \Stripe\Charge::retrieve([
    "mandate" => [
    "notification_method" => "none"
    ]
    ]);
    ?>

    What I wanna do is to disable the notification that Stripe sends when a customer pays via SEPA Direct Debit because I have my own email system.

    With that being said I created on Stripe the webhook to connect them to eachother. I chose “source.mandate_notififcation” and put in the URL to that php-file (like in WC).

    When I place a test order the webhook is called but gives me an error. The connection is established apparently but I guess the error is in the php-file.

    Can somebody please help me? I highly appreciate your help ..

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WC + Stripe simple API-connection’ is closed to new replies.