{"id":47,"date":"2026-07-24T21:27:33","date_gmt":"2026-07-24T15:57:33","guid":{"rendered":"https:\/\/kcdev.qzz.io\/?p=47"},"modified":"2026-07-24T21:27:33","modified_gmt":"2026-07-24T15:57:33","slug":"introducing-razorpay-integration-for-wordpress","status":"publish","type":"post","link":"https:\/\/wp-dev.kcnet.in\/?p=47","title":{"rendered":"Introducing Razorpay Integration for WordPress"},"content":{"rendered":"<p>Razorpay Integration brings a full payment gateway into the KC-Dev suite, sharing its SDK with the rest of the workshop via KC Shared Library.<\/p>\n<h2>Features<\/h2>\n<ul>\n<li><code><div class=\"kcd_wp-razorpay-integration kcd_wp-razorpay-integration_shortcode\"><button class=\"kcd_wp-razorpay-integration_button button\" data-amount=\"100\" data-purpose=\"Payment\">Pay Now<\/button><\/div><\/code> shortcode: a configurable payment button (amount, label, purpose) that opens the Razorpay checkout modal.<\/li>\n<li>Order creation and payment capture handled server-side, with a webhook endpoint (HMAC-signature verified) as a reliable fallback if the customer closes the tab before the checkout callback fires.<\/li>\n<li>Dashboard tab: total revenue, transaction count, success rate, and a 7-day revenue trend chart.<\/li>\n<li>Transactions tab: a sortable, paginated history of every payment attempt, auto-synced against the live Razorpay API.<\/li>\n<li>Transaction Logs tab: a full history of status changes (e.g. created &rarr; captured) per order, plus CSV export.<\/li>\n<li>Settings panel with usage guide under the KC-Dev admin menu.<\/li>\n<li>Uses the Razorpay PHP SDK from <strong>KC Shared Library<\/strong> rather than bundling its own copy &mdash; the same dependency-sharing convention every other KC-Dev plugin follows.<\/li>\n<\/ul>\n<p>Try it: <div class=\"kcd_wp-razorpay-integration kcd_wp-razorpay-integration_shortcode\"><button class=\"kcd_wp-razorpay-integration_button button\" data-amount=\"500\" data-purpose=\"Donation\">Support This Workshop<\/button><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Razorpay Integration adds a payment-button shortcode backed by the Razorpay gateway, with order creation, webhook-verified payment capture, and a dashboard showing revenue trends, a searchable transaction history, and a status-change log.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","wpai_meta_description":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-plugin-releases"],"_links":{"self":[{"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":1,"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp-dev.kcnet.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}