• 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 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WC + Stripe simple API-connection’ is closed to new replies.