{"id":1835,"date":"2023-11-23T20:01:02","date_gmt":"2023-11-23T20:01:02","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=1835"},"modified":"2023-11-23T20:06:39","modified_gmt":"2023-11-23T20:06:39","slug":"pronamic-ideal","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/pronamic-ideal\/","title":{"rendered":"Pronamic Pay Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Pronamic Pay 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 Pronamic Pay 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 Pronamic Pay 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\/pronamic-ideal\/assets\/icon.svg?rev=2813508\" 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\/pronamic-ideal\" target=\"_blank\" rel=\"noopener\">\n                        Pronamic Pay                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Pronamic Pay is a powerful WordPress plugin that facilitates seamless online payments. With its user-friendly interface, it simplifies transactions, making it ideal for e-commerce sites.&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\u2605\u2605\u2606<\/span> (83)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 4000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.3.2            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: 7.4            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[pronamic_payment_form]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Pronamic Pay [pronamic_payment_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Pronamic Pay plugin shortcode is designed to generate a specific payment form on your WordPress site. \n\n\n\nThis shortcode takes an &#8216;id&#8217; as its attribute, which corresponds to the unique ID of the payment form you wish to display. If the &#8216;id&#8217; is not provided or is invalid, it will return an empty string. Otherwise, it will return the HTML output of the specified payment form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[pronamic_payment_form]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a list of all possible pronamic_payment_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>id<\/code> &#8211; It&#8217;s the unique identifier of the payment form.<\/li>\n<\/ul>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic Example<\/strong> &#8211; This shortcode is used to render a payment form with the specified ID.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pronamic_payment_form id=1 \/]<\/code><\/pre>\n\n\n<p><strong>Advanced Examples<\/strong><\/p>\n<p>Here, we are using the shortcode to display a payment form by referencing the ID. If the ID is not found, the shortcode will return an empty string.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pronamic_payment_form id=2 \/]<\/code><\/pre>\n\n\n<p>In the following example, we are passing an invalid ID to the shortcode. In this case, the shortcode will return an empty string because the payment form with the specified ID does not exist.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[pronamic_payment_form id=999 \/]<\/code><\/pre>\n\n\n<p>Please note that the ID you pass to the shortcode should correspond to an existing payment form in your Pronamic Pay plugin. If you pass an ID that does not correspond to an existing form, the shortcode will not be able to render the form.<\/p>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\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>[pronamic_payment_form]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\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( 'pronamic_payment_form', [ $this, 'shortcode_form' ] );<\/code><\/pre>\n\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=\"\">\nfunction shortcode_form( $atts ) {\n\t\t$atts = shortcode_atts(\n\t\t\t&#91;\n\t\t\t\t&#039;id&#039; =&gt; null,\n\t\t\t],\n\t\t\t$atts,\n\t\t\t&#039;pronamic_payment_form&#039;\n\t\t);\n\n\t\tif ( empty( $atts&#91;&#039;id&#039;] ) ) {\n\t\t\treturn &#039;&#039;;\n\t\t}\n\n\t\treturn $this-&gt;integration-&gt;get_form_output_by_id( (int) $atts&#91;&#039;id&#039;] );\n\t}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">pronamic-ideal\/pronamic-ideal\/packages\/pronamic\/wp-pronamic-pay-forms\/src\/FormShortcode.php<\/code><\/pre>\n\n\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>Pronamic Pay 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 Pronamic Pay 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 Pronamic Pay Plugin shortcode not to show or not to work correctly. Before starting, here is an overview [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Pronamic Pay","slug":"","version":"9.5.1","author":"<a href=\"https:\/\/www.pronamic.eu\/\">Pronamic<\/a>","icons":"https:\/\/ps.w.org\/pronamic-ideal\/assets\/icon.svg?rev=2813508","plugin_tags":"{\"bank\":\"bank\",\"forms\":\"forms\",\"gravity-forms\":\"gravity forms\",\"ideal\":\"ideal\",\"payment\":\"payment\"}","author_profile":"https:\/\/profiles.wordpress.org\/pronamic\/","requires":"5.9","tested":"6.3.2","requires_php":"7.4","rating":96,"num_ratings":83,"active_installs":4000,"downloaded":374317,"last_updated":"2023-09-29 9:08am GMT","added":"2011-08-20","homepage":"https:\/\/www.pronamic.eu\/plugins\/pronamic-pay\/","short_description":"The Pronamic Pay plugin adds payment methods like iDEAL, Bancontact, credit card and more to your WordPress site for a variety of payment providers.","description":"\"Pronamic Pay is a powerful WordPress plugin that facilitates seamless online payments. With its user-friendly interface, it simplifies transactions, making it ideal for e-commerce sites.\"","shortcodes":"[\"pronamic_payment_form\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1835","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1835","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=1835"}],"version-history":[{"count":2,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1835\/revisions"}],"predecessor-version":[{"id":2423,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/1835\/revisions\/2423"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}