المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ووردبريس WordPress ووكومرس WooCommerce سترايب stripe hooks events



Rise Company
01-01-2022, 08:18
ووردبريس WordPress ووكومرس WooCommerce سترايب stripe hooks events
woocommerce stripe hooks events - Webhook End Point Events to Send

https://www.rise.company/upload/uploads/164101811484921.png

Webhooks

Webhooks are used by Stripe to communicate with your site. It provides information such as the status of the payment, and is used to update the order based on certain events from Stripe’s side of things.
In the settings, you’ll find a webhook endpoint URL ready for you to copy and paste into your Stripe dashboard:


Head to WooCommerce » Settings » Payments » Stripe. Under the Settings » Account details section, copy your webhook endpoint URL into your clipboard.


https://www.rise.company/forum/images/imported/2022/01/1.png




Next, in your Stripe Dashboard go to Developers » Webhooks (https://dashboard.stripe.com/webhooks) and select Add endpoint
(with “Test mode” enabled or disabled, depending on which mode is being configured).
Paste the webhook endpoint URL you copied earlier into the Endpoint URL field, and select the following events (at minimum):





source.chargeable
source.canceled
charge.succeeded
charge.failed
charge.captured
charge.dispute.created
charge.dispute.closed
charge.refunded
review.opened
review.closed
payment_intent.succeeded
payment_intent.payment_failed
payment_intent.amount_capturable_updated
setup_intent.succeeded
setup_intent.setup_failed




Select Latest API version from the Version section, if shown, and then “Add endpoint”.
Copy the Signing secret (after clicking Reveal).

https://www.rise.company/forum/images/imported/2022/01/2.png
Back in WooCommerce » Settings » Payments » Stripe, click Edit account keys (above the “Account details”), paste the secret into the Webhook secret field, and save the keys.

https://www.rise.company/forum/images/imported/2022/01/3.png
If this was done in test mode, repeat the process after switching Enable test mode off (or vice versa, if necessary).



المرجع:
https://wordpress.org/support/topic/webhook-end-point-events-to-send/
https://woocommerce.com/document/stripe/#section-3