Server authentication
Create checkout
Subscription checkout
Payment link
Webhook verification
Verify the raw body before parsing it. The exact signing helper belongs in your server application; never verify a re-serialized JSON object.Refund
WooCommerce correlation
Pass the WooCommerce order ID as the merchant APIorderId and in metadata.
Persist the returned payment or checkout-session ID in order metadata. Mark the
order paid only after the signed event matches the order ID, amount, currency,
and merchant account.