{"id":2162,"date":"2023-12-10T15:05:26","date_gmt":"2023-12-10T15:05:26","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=2162"},"modified":"2023-12-10T15:05:26","modified_gmt":"2023-12-10T15:05:26","slug":"razorpay-quick-payments","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/razorpay-quick-payments\/","title":{"rendered":"Razorpay Quick Payments Shortcode"},"content":{"rendered":"\n        \n        <p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Razorpay Quick Payments Shortcode<\/strong> to your WordPress website, including its <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the Razorpay Quick Payments Plugin shortcode not to show or not to work correctly.<\/p>\n        \n\n        \n        <p class=\"wp-block-paragraph\">Before starting, here is an overview of the Razorpay Quick Payments Plugin and the shortcodes it provides:<\/p>\n        \n        \n        <p>            <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/razorpay-quick-payments\/assets\/icon-128x128.png?rev=1650905\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/razorpay-quick-payments\" target=\"_blank\" rel=\"noopener\">\n                        Razorpay Quick Payments                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Razorpay Quick Payments is a seamless WordPress plugin enabling quick, secure transactions. This tool integrates Razorpay payment gateway into your site, simplifying online payments.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2606\u2729\u2729<\/span> (5)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 3000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.1.4            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: false            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[RZP]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n            <div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n            \n            \n            \n            <h2 class=\"wp-block-heading\">Razorpay Quick Payments [RZP] Shortcode<\/h2>\n            \n            \n            \n            <p class=\"wp-block-paragraph\">The Razorpay Quick Payments plugin shortcode, &#8216;RZP&#8217;, initiates the checkout process. It generates the Razorpay order form, enabling seamless transactions.<\/p>\n            \n\n            \n            <p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[RZP]<\/code><\/p>\n            \n            \n            \n            <div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n            \n                <h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n                \n \n            <p><strong>Basic example<\/strong> &#8211; The shortcode is utilized to checkout with Razorpay. It generates the Razorpay order form without any additional parameters.<\/p>\n\n<pre class=\"wp-block-code\"><code>[RZP \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n\n<p>Additional parameters can be used with the shortcode to customize the Razorpay checkout process. Here are a few examples:<\/p>\n\n<p>Using the shortcode to checkout with a specific order ID. This will generate a Razorpay order form for the specified order.<\/p>\n\n<pre class=\"wp-block-code\"><code>[RZP order_id=\"1234\" \/]<\/code><\/pre>\n\n\n<p>Using the shortcode to checkout with a specific product. This will generate a Razorpay order form for the specified product.<\/p>\n\n<pre class=\"wp-block-code\"><code>[RZP product_id=\"5678\" \/]<\/code><\/pre>\n\n\n<p>Using the shortcode to checkout with a specific product and a specific order. This will generate a Razorpay order form for the specified product and order.<\/p>\n\n<pre class=\"wp-block-code\"><code>[RZP product_id=\"5678\" order_id=\"1234\" \/]<\/code><\/pre>\n\n\n            \n            <div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n            \n            <h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n            \n            \n            \n            <p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[RZP]<\/code> shortcode, check below the related PHP functions code.<\/p>\n            \n                    \n                    <p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n                    \n        \n                    \n                    <pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode('RZP', array($this, 'checkout'));<\/code><\/pre>\n                    \n                    \n                    <p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n                    \n            \n                    <div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\n                    function checkout()\n        {\n            $html = $this-&gt;generateRazorpayOrderForm();\n            return $html;\n        }\n                    <\/pre><\/div>\n                    \n                    <p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n                    \n                    \n                    \n                    <pre class=\"wp-block-code\"><code>razorpay-quick-payments\/razorpay-quick-payments\/razorpay-quick-payments.php<\/code><\/pre>\n                    \n        <div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n        \n        \n        \n        <h2 class=\"wp-block-heading\">Conclusion<\/h2>\n        \n        \n        \n        <p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>Razorpay Quick Payments Plugin shortcode<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n        ","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the Razorpay Quick Payments Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Razorpay Quick Payments Plugin shortcode not to show or not to work correctly. Before starting, here is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Razorpay Quick Payments","slug":"","version":"1.2.8","author":"<a href=\"https:\/\/razorpay.com\/about\/\">Team Razorpay<\/a>","icons":"https:\/\/ps.w.org\/razorpay-quick-payments\/assets\/icon-128x128.png?rev=1650905","plugin_tags":"{\"india\":\"india\",\"payments\":\"payments\",\"quick\":\"quick\",\"razorpay\":\"razorpay\",\"simple\":\"simple\"}","author_profile":"https:\/\/profiles.wordpress.org\/razorpay\/","requires":"3.0.1","tested":"6.1.4","requires_php":"false","rating":56,"num_ratings":5,"active_installs":3000,"downloaded":51256,"last_updated":"2023-05-24 11:57am GMT","added":"2017-05-03","homepage":"https:\/\/github.com\/razorpay\/razorpay-quick-payments","short_description":"Allows you to easily sell things using Razorpay on your WordPress website.","description":"\"Razorpay Quick Payments is a seamless WordPress plugin enabling quick, secure transactions. This tool integrates Razorpay payment gateway into your site, simplifying online payments.\"","shortcodes":"[\"RZP\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2162","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/2162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=2162"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/2162\/revisions"}],"predecessor-version":[{"id":2671,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/2162\/revisions\/2671"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=2162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=2162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=2162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}