{"id":770,"date":"2026-11-25T12:00:00","date_gmt":"2026-11-25T12:00:00","guid":{"rendered":"https:\/\/paymentsetu.com\/blog\/?p=770"},"modified":"2026-11-25T12:00:00","modified_gmt":"2026-11-25T12:00:00","slug":"callback-url-vs-webhook-vs-return-url","status":"publish","type":"post","link":"https:\/\/paymentsetu.com\/blog\/callback-url-vs-webhook-vs-return-url\/","title":{"rendered":"Callback URL vs Webhook vs Return URL in Payments"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Callback URL vs webhook is a common payment-integration question because the names overlap, but the jobs are different. A return URL takes the customer back to a page in their browser; a webhook tells your server what happened, and the signed webhook should be the authority for changing an order to paid.<\/p>\n\n\n\n<aside class=\"ap-card\" aria-label=\"PaymentSetu Pro\">\n<span class=\"ap-card__badge\">Best for integrations<\/span>\n<div class=\"ap-card__body\"><p class=\"ap-card__name\">PaymentSetu Pro<\/p><p class=\"ap-card__best\">Best for growing WooCommerce \/ WHMCS stores and service businesses with up to 1,000 UPI payments a month (most popular)<\/p><ul class=\"ap-card__features\"><li>1,000 credits (1 credit = 1 successful payment verified)<\/li><li>0% commission, direct-to-bank UPI settlement<\/li><li>Dynamic QR, webhooks and API access<\/li><li>WooCommerce and WHMCS plugins<\/li><li>Priority support<\/li><\/ul><\/div>\n<div class=\"ap-card__side\"><p class=\"ap-card__price\">\u20b9999 <small>Most popular \u00b7 \u20b9999 \/ 30 days \u00b7 1,000 verified payments<\/small><\/p><a class=\"ap-card__btn\" href=\"https:\/\/paymentsetu.com\/auth\/register\">Get Pro \u2192<\/a><\/div>\n<\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">Three URLs, three jobs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way to separate them is to ask who makes the request and what the request is allowed to do.<\/p>\n\n\n\n<figure class=\"wp-block-table ap-table\"><table><thead><tr><th>URL<\/th><th>Caller<\/th><th>Typical method<\/th><th>Main job<\/th><th>Should it mark an order paid?<\/th><\/tr><\/thead><tbody><tr><td>Return URL<\/td><td>Customer\u2019s browser<\/td><td>Usually <code>GET<\/code><\/td><td>Show the next page after checkout<\/td><td>No, not by itself<\/td><\/tr><tr><td>Webhook URL<\/td><td>Payment service<\/td><td>Usually <code>POST<\/code><\/td><td>Deliver a payment event to your backend<\/td><td>Yes, after signature and order checks<\/td><\/tr><tr><td>Callback URL<\/td><td>Depends on the documentation<\/td><td>Often <code>POST<\/code>, sometimes a browser redirect<\/td><td>Generic name for a receiving endpoint<\/td><td>Only if it is a verified server callback<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cCallback URL\u201d is not a universal fourth type of URL. Some payment documentation uses callback to mean a webhook endpoint. Other documentation uses callback for a browser response or for a local file that receives a provider response. Do not rely on the label: confirm whether the caller is the browser or the payment service, whether the request is signed, and whether the endpoint is intended for fulfilment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Return URL: the customer experience<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A return URL is where the customer\u2019s browser goes after the payment page or UPI flow finishes. It can display \u201cPayment received\u201d, \u201cWe are checking your payment\u201d, or \u201cPayment cancelled\u201d, along with a link back to the order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The browser is not a trusted payment channel. A customer can close the tab, revisit the URL, change query parameters, use an old bookmarked URL, or reach the page without completing payment. Even a page that says \u201csuccess\u201d may only mean that the browser was redirected with a success-looking value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In HTTP, a redirect is a response that points the user agent to another URL through a <code>3xx<\/code> status and <code>Location<\/code> header. The <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Guides\/Redirections\" target=\"_blank\" rel=\"noopener\">MDN guide to HTTP redirections<\/a> explains this browser-navigation behaviour; it does not turn the browser into a payment-verification service.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Webhook URL: the payment event<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A webhook URL is a public HTTPS endpoint on your server. The payment service sends an HTTP request to it when an event occurs, such as a payment being matched to an order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your webhook handler should authenticate the request, validate the event, match the order reference and amount, save the transaction reference, and perform the business action once. It should then return a successful HTTP response after accepting the event.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/docs.payments.service.gov.uk\/webhooks\/\" target=\"_blank\" rel=\"noopener\">GOV.UK Pay webhook documentation<\/a> is a useful independent example of this pattern: the service sends <code>POST<\/code> requests after payment events and expects the receiving endpoint to acknowledge them. The exact headers, payload and retry rules differ by service, so always follow PaymentSetu\u2019s integration contract for a PaymentSetu webhook.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Callback URL: read the contract, not the name<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You may see all of these phrases in documentation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li>\u201cSet the callback URL\u201d for a server endpoint that receives payment notifications.<\/li>\n\n\n<li>\u201cReturn to the callback URL\u201d for a browser redirect after checkout.<\/li>\n\n\n<li>\u201cAdd the callback file\u201d for a platform module that processes a server notification.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Treat the phrase as a configuration label. The security question is more important: does this request come from an authenticated payment service, or is it just a navigation performed by a browser?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sequence of a UPI payment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For a PaymentSetu custom integration, a safe high-level sequence looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Customer browser       Your server                 PaymentSetu                 Your webhook\n       |                    |                           |                           |\n       |-- create order ---&gt;|-- API request ------------&gt;|                           |\n       |&lt;-- QR\/payment -----|&lt;-- order reference --------|                           |\n       |                    |                           |                           |\n       |-- pays by UPI directly into your connected merchant account              |\n       |                    |                           |                           |\n       |                    |                           |-- signed payment event --&gt;|\n       |                    |                           |                           |\n       |&lt;-- return URL -----|                           |                           |\n       |                    |&lt;-- browser status page ---|                           |\n       |                    |                           |                           |\n       |                    |&lt;-- verified order update from webhook ----------------|<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The arrows are conceptual rather than a promise about exact timing. The return can happen before or after your server receives the webhook. Your status page should therefore read your own order state, not decide the state from a query parameter in the browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a custom flow, the relevant PaymentSetu API surface includes <code>POST \/api\/create_order<\/code>, <code>GET \/api\/order_status\/{client_txn_id}<\/code> and <code>GET \/api\/check_credits<\/code>. Keep the API key on your server. The customer sees the QR or payment instructions, but the server owns the order reference and the final state.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A useful state model is:<\/p>\n\n\n\n<figure class=\"wp-block-table ap-table\"><table><thead><tr><th>State<\/th><th>Meaning<\/th><th>Safe customer-facing message<\/th><\/tr><\/thead><tbody><tr><td><code>created<\/code><\/td><td>Your server created the order<\/td><td>\u201cContinue to payment\u201d<\/td><\/tr><tr><td><code>pending<\/code><\/td><td>The payment is not yet confirmed in your order record<\/td><td>\u201cWe are checking your payment\u201d<\/td><\/tr><tr><td><code>paid<\/code><\/td><td>A valid event matched the expected order and amount<\/td><td>\u201cPayment confirmed\u201d<\/td><\/tr><tr><td><code>failed<\/code> or <code>expired<\/code><\/td><td>The payment did not become a successful match<\/td><td>\u201cPayment was not confirmed\u201d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Use the names supported by your application. The key point is that the transition to <code>paid<\/code> happens in backend logic after verification, not because a browser returned to <code>\/success<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why the return URL is not proof<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The return URL is useful, but it is a presentation step. It helps you restore the customer journey after they leave a hosted page or finish a UPI action. It is not a reliable notification mechanism because the browser is outside your control and can make a request without a completed payment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A weak implementation looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GET \/payment\/return?status=success&amp;order=ORD-1042\n  -&gt; find ORD-1042\n  -&gt; mark it paid\n  -&gt; release the product<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The problem is not the route itself. The problem is granting a browser-controlled request the authority to create a financial state change.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A safer implementation looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GET \/payment\/return?order=ORD-1042\n  -&gt; show \u201cWe are checking your payment\u201d\n  -&gt; read the current state from your database\n\nPOST \/webhooks\/paymentsetu\n  -&gt; verify the signed raw request\n  -&gt; match order, amount and successful event\n  -&gt; update the order once\n  -&gt; return 2xx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the customer reaches the return page first, show a pending state and let the page poll your own backend if appropriate. Your backend can use the PaymentSetu order-status endpoint for a server-side check when you need reconciliation or a status refresh. Do not expose the API key in browser JavaScript.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This separation also prevents double fulfilment. The browser may refresh the return page several times, while a webhook may be delivered again after a timeout. Neither should create a second shipment, account activation, download grant or invoice update.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Secure the webhook before changing order status<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An HTTPS URL alone does not prove who sent a request. A secure webhook flow has several checks:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Read the exact raw request body before parsing or re-encoding JSON.<\/li>\n\n\n<li>Read the signature and timestamp fields required by the PaymentSetu webhook contract.<\/li>\n\n\n<li>Calculate the expected HMAC using the server-side secret and the exact signed message.<\/li>\n\n\n<li>Compare signatures with a timing-safe comparison function.<\/li>\n\n\n<li>Reject missing, malformed, expired or invalid signatures without changing an order.<\/li>\n\n\n<li>Parse the JSON only after authentication succeeds.<\/li>\n\n\n<li>Check the event type, client transaction ID, expected amount and successful payment state.<\/li>\n\n\n<li>Store a unique event or transaction reference before applying a one-time side effect.<\/li>\n\n\n<li>Return a successful response when the event is accepted, including when it is a verified duplicate.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">PaymentSetu\u2019s <a href=\"https:\/\/paymentsetu.com\/blog\/verify-hmac-webhook-signature-php-python-node\/\">HMAC webhook signature guide<\/a> covers raw-body handling, SHA-256 HMAC and constant-time comparison in PHP, Python and Node.js. Its examples also show why parsing JSON first can break signature verification. For the exact PaymentSetu header names and signed message, use the current integration documentation configured for your account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The general security principle is also reflected in <a href=\"https:\/\/docs.github.com\/en\/webhooks\/using-webhooks\/validating-webhook-deliveries\" target=\"_blank\" rel=\"noopener\">GitHub\u2019s webhook delivery validation guidance<\/a>: keep the secret server-side, calculate a signature over the request body, and use a timing-safe comparison. This is a pattern, not a reason to copy another provider\u2019s header names or algorithm into your PaymentSetu handler.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Idempotency belongs in the webhook handler<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A webhook can be retried, and your application can also receive a duplicate after a network timeout. Make the handler idempotent:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>begin database transaction\n  verify signature and payload\n  insert event_id with a unique constraint\n  if event_id already exists:\n      commit and return 2xx\n  update the matching order from pending to paid\n  record UTR\/transaction reference\n  enqueue fulfilment once\ncommit\nreturn 2xx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not use the return URL as a second fulfilment path. It can display the latest order state, but the webhook path should own the transition and any one-time action.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to set each URL in PaymentSetu, WooCommerce and WHMCS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The right setting depends on whether you are building a custom integration or using a ready module.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PaymentSetu custom API integration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Your server needs two distinct concepts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Webhook URL:<\/strong> a public HTTPS endpoint such as <code>https:\/\/store.example.com\/webhooks\/paymentsetu<\/code>. Register this as the endpoint that receives PaymentSetu\u2019s signed payment event. It performs verification and updates your database.<\/li>\n\n\n<li><strong>Return URL:<\/strong> a browser-facing route such as <code>https:\/\/store.example.com\/payment\/return<\/code>. Use it to show the customer the current order state. It may accept an order reference, but it must not trust a <code>success<\/code> query parameter as proof.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If your configuration screen calls the webhook a \u201ccallback URL\u201d, use that field for the server endpoint and document the meaning in your own code. Do not put the browser return page into the webhook field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The API flow is:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Your server calls <code>POST \/api\/create_order<\/code> with the order reference and amount.<\/li>\n\n\n<li>Your checkout displays the returned dynamic QR or payment instructions.<\/li>\n\n\n<li>Your server receives and verifies the signed webhook.<\/li>\n\n\n<li>Your return page reads your database and displays the current state.<\/li>\n\n\n<li>Your reconciliation code can call <code>GET \/api\/order_status\/{client_txn_id}<\/code> from the server when needed.<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">WooCommerce<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With the <a href=\"https:\/\/paymentsetu.com\/woocommerce-plugin\">PaymentSetu WooCommerce plugin<\/a>, the plugin handles the WooCommerce order connection and webhook-driven update. Install the provided <code>paymentsetu-gateway.zip<\/code>, enable it under <strong>WooCommerce &gt; Settings &gt; Payments<\/strong>, and follow the plugin\u2019s configuration for the webhook and API credentials.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not replace the plugin\u2019s webhook setting with the checkout\u2019s thank-you-page URL. WooCommerce\u2019s thank-you page is a customer-facing return experience; the verified notification is what should move the order from pending to paid. If you are diagnosing a pending order, see the <a href=\"https:\/\/paymentsetu.com\/blog\/woocommerce-orders-stuck-pending-payment\/\">WooCommerce pending payment troubleshooting guide<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WHMCS<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For hosting businesses, the <a href=\"https:\/\/paymentsetu.com\/whmcs-plugin\">PaymentSetu WHMCS module<\/a> uses <code>paymentsetu.php<\/code> in <code>modules\/gateways\/<\/code> together with its callback file. The callback file is backend plumbing for the module; it is not the same thing as a customer return page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Configure the module\u2019s callback URL and API key exactly as its setup instructions specify. Let WHMCS show the invoice result to the customer, while the verified server callback marks the invoice paid. Keep the callback endpoint public over HTTPS, but keep the API key and webhook secret out of templates and browser code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Putting the success page in the webhook field<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A success page is designed for a browser and often accepts <code>GET<\/code>. A webhook sender needs a backend endpoint that can receive the documented server request, verify its signature and return a prompt acknowledgement. Give each one a separate route.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Marking an order paid from <code>?status=success<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Treat URL parameters as display hints until your backend confirms the event. Match the verified event to the order reference and expected amount, then update the order once.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parsing the body before HMAC verification<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">JSON with different whitespace or key order can represent the same object but produce different bytes. Capture the raw body first, calculate the signature over those bytes, and parse only after the comparison passes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Returning an error after a successfully saved event<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your handler commits the update and then returns a server error, the sender may retry the same event. Save a unique event ID or transaction reference and handle that repeat safely before returning a successful response.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Confusing a callback filename with a callback protocol<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A WHMCS callback file is an implementation detail of the module. The important questions remain: who calls it, what it receives, how it is authenticated, and which business state it is allowed to change.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to choose the right URL<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use this checklist before you configure an integration:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>If the customer needs to see a page, use a return URL.<\/li>\n\n\n<li>If your backend needs an event, use a webhook URL or a documented server callback.<\/li>\n\n\n<li>If the provider says \u201ccallback URL\u201d, read the request method, payload and authentication section before choosing a route.<\/li>\n\n\n<li>Keep return and webhook URLs separate, even if they are handled by the same application.<\/li>\n\n\n<li>Only a verified, server-to-server event should change an order, invoice or account entitlement to paid.<\/li>\n\n\n<li>Make the webhook idempotent and keep a server-side status-check path for reconciliation.<\/li>\n\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That model works for a custom UPI checkout, WooCommerce orders and WHMCS invoices. PaymentSetu adds the dynamic QR, payment matching and signed webhook event while the customer pays directly into your connected merchant account; it is a payment verification service, not a payment gateway.<\/p>\n\n\n\n<aside class=\"ap-cta\" aria-label=\"Verify UPI payments safely\"><div class=\"ap-cta__content\"><p class=\"ap-cta__eyebrow\">Secure your webhook<\/p><p class=\"ap-cta__title\">Verify UPI payments safely<\/p><p class=\"ap-cta__text\">Connect your own merchant account, receive signed events and keep return-page logic separate from order fulfilment.<\/p><\/div><a class=\"ap-cta__btn\" href=\"https:\/\/paymentsetu.com\/auth\/register\">Start with PaymentSetu<\/a><\/aside>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Is a callback URL the same as a webhook URL?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not always. \u201cCallback URL\u201d is a broad label that some providers use for a server-to-server webhook and others use for a browser response. Check the method, caller, payload and signature requirements before treating it as a webhook.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can a return URL mark a payment as successful?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No, not by itself. A return URL is controlled by the customer\u2019s browser and should show the order state from your backend; a verified webhook should provide the evidence for changing the order to paid.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What should my payment webhook verify?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the exact raw body with the HMAC method and secret required by the provider, then check the event type, order reference, amount and successful state. Store a unique event or transaction reference so retries do not repeat fulfilment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should the webhook and return URL be the same endpoint?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Keep them separate even when both routes live in the same application. The webhook needs machine-facing authentication and a concise acknowledgement, while the return URL needs a customer-facing page and must tolerate refreshes and missing browser sessions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How does this work with WooCommerce or WHMCS?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the PaymentSetu plugin or module\u2019s documented webhook\/callback configuration for the backend update, and let the platform handle the customer-facing order or invoice page. Do not substitute a WooCommerce thank-you page or WHMCS customer return page for the verified server callback.<\/p>\n\n\n\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Is a callback URL the same as a webhook URL?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Not always. \u201cCallback URL\u201d is a broad label that some providers use for a server-to-server webhook and others use for a browser response. Check the method, caller, payload and signature requirements before treating it as a webhook.\"}}, {\"@type\": \"Question\", \"name\": \"Can a return URL mark a payment as successful?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No, not by itself. A return URL is controlled by the customer\u2019s browser and should show the order state from your backend; a verified webhook should provide the evidence for changing the order to paid.\"}}, {\"@type\": \"Question\", \"name\": \"What should my payment webhook verify?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Verify the exact raw body with the HMAC method and secret required by the provider, then check the event type, order reference, amount and successful state. Store a unique event or transaction reference so retries do not repeat fulfilment.\"}}, {\"@type\": \"Question\", \"name\": \"Should the webhook and return URL be the same endpoint?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Keep them separate even when both routes live in the same application. The webhook needs machine-facing authentication and a concise acknowledgement, while the return URL needs a customer-facing page and must tolerate refreshes and missing browser sessions.\"}}, {\"@type\": \"Question\", \"name\": \"How does this work with WooCommerce or WHMCS?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Use the PaymentSetu plugin or module\u2019s documented webhook\/callback configuration for the backend update, and let the platform handle the customer-facing order or invoice page. Do not substitute a WooCommerce thank-you page or WHMCS customer return page for the verified server callback.\"}}]}<\/script>\n\n","protected":false},"excerpt":{"rendered":"Callback URL vs webhook explained with return URL examples, payment sequences, HMAC checks, and PaymentSetu setup for WooCommerce and WHMCS.","protected":false},"author":1,"featured_media":769,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_singular_sidebar":"","csco_page_header_type":"","csco_page_load_nextpost":"","footnotes":""},"categories":[29],"tags":[267,269,268,30,28],"class_list":["post-770","post","type-post","status-publish","format-standard","has-post-thumbnail","category-upi-payment-verification","tag-callback-url","tag-payment-integration-2","tag-return-url","tag-upi","tag-webhooks","cs-entry"],"_links":{"self":[{"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/posts\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/comments?post=770"}],"version-history":[{"count":1,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions"}],"predecessor-version":[{"id":978,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/posts\/770\/revisions\/978"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/media\/769"}],"wp:attachment":[{"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/media?parent=770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/categories?post=770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paymentsetu.com\/blog\/wp-json\/wp\/v2\/tags?post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}