{"id":20112,"date":"2024-12-06T10:48:23","date_gmt":"2024-12-06T07:48:23","guid":{"rendered":"http:\/\/posentegrator.com\/?p=20112"},"modified":"2024-12-25T13:53:41","modified_gmt":"2024-12-25T10:53:41","slug":"how-to-set-up-a-collection-system","status":"publish","type":"post","link":"https:\/\/posentegrator.com\/en\/general\/how-to-set-up-a-collection-system\/","title":{"rendered":"How to set up an Online Collection system with WordPress?"},"content":{"rendered":"<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#pos-entegrator-ile-odeme-formlari-nasil-yapilir\">How to Set Up a Collection System with POS Integrator?<\/a><ul><li><a href=\"#adim-adim-odeme-formu-kurulumu\">Step-by-Step Payment Form Setup:<\/a><\/li><\/ul><\/li><li><a href=\"#ninja-forms-ile-tahsilat-yapmanin-avantajlari\">Advantages of Collecting with Ninja Forms<\/a><\/li><li><a href=\"#uyelik-ve-misafir-odeme-formlari-olusturma\">Creating Membership and Guest Payment Forms<\/a><\/li><li><a href=\"#uyelik-ve-misafir-odeme-formlari-nasil-olusturulur\">How to Create Membership and Guest Payment Forms?<\/a><ul><li><a href=\"#1-uyelik-girisi-gerektiren-odeme-formu-olusturma\">1. Creating a Payment Form Requiring Membership Login<\/a><\/li><li><a href=\"#2-uyelik-giris-formu-olusturma\">2. Creating a Membership Login Form<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<p>How to set up an online collection system? is a digital infrastructure that allows you to receive payments from product or service sales over the internet. These systems integrate credit cards, debit cards and various digital payment methods, allowing you to receive fast and secure payments from customers. They usually connect with banks or payment institutions using a payment interface or API (application programming interface). This allows users to securely enter their details when paying for online purchases or services and the transaction is processed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pos-entegrator-ile-odeme-formlari-nasil-yapilir\">How to Set Up a Collection System with POS Integrator?<\/h2>\n\n\n\n<p>Using POS Integrator on WordPress infrastructure, you can easily create online collection forms with form plugins such as Elementor, WPForms or Ninja Forms. Thanks to these plugins, it is quite simple to create customized payment forms. You can manage your collection processes by getting the necessary information from customers in the forms.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"adim-adim-odeme-formu-kurulumu\"><strong>Step-by-Step Payment Form Setup:<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"http:\/\/posentegrator.com\/en\/elementor-virtual-pos-integration\/\">With Elementor<\/a><\/strong>: In Elementor, you can design a payment form thanks to its drag-and-drop structure, then integrate the POS Integrator and receive payments securely from the forms.<\/li>\n\n\n\n<li><strong><a href=\"http:\/\/posentegrator.com\/en\/wpform-pro-payment-integration\/\">With WPForms<\/a><\/strong>: After creating the form fields, you can connect your form to a payment system with the POS Integrator plugin.<\/li>\n\n\n\n<li><strong><a href=\"http:\/\/posentegrator.com\/en\/ninjaforms-sanal-pos-entegrasyonu\/\">With Ninja Forms<\/a><\/strong>: Using the flexible structure of Ninja Forms, it is possible to collect payment information and receive payments through the POS Integrator.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ninja-forms-ile-tahsilat-yapmanin-avantajlari\">Advantages of Collecting with Ninja Forms<\/h2>\n\n\n\n<p>Ninja Forms stands out for its user-friendly interface and wide integration options. Here are the advantages of creating a payment form using this plugin:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Flexibility and Customization<\/strong>: You can customize the different payment options and fields as you like.<\/li>\n\n\n\n<li><strong>Easy Integration<\/strong>: Integrates seamlessly with POS Integrator and supports various payment organizations.<\/li>\n\n\n\n<li><strong>Security<\/strong>: Payment transactions are protected by security measures, which ensures that user data is handled securely.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"uyelik-ve-misafir-odeme-formlari-olusturma\">Creating Membership and Guest Payment Forms<\/h2>\n\n\n\n<p>How to set up a collection system? With Ninja Forms, you can design two different forms: One for guest payments and one for logged-in users to make payments.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Form for Guest Payments<\/strong>: Guests can pay without creating any membership. Only the necessary payment information is requested in this form.<\/li>\n\n\n\n<li><strong>Form for Logged In Users<\/strong>: Users with a membership account can view their payment history when making payments and have their information saved for future convenience.<\/li>\n<\/ul>\n\n\n\n<p>This way, you can improve the user experience and manage different payment methods with ease.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"uyelik-ve-misafir-odeme-formlari-nasil-olusturulur\">How to Create Membership and Guest Payment Forms?<\/h2>\n\n\n\n<p>Creating membership and guest checkout forms on a WordPress-based site is a great way to improve the user experience and personalize the checkout process. In this article, we'll show you step-by-step how to create the necessary structure for a membership checkout form and how to activate the checkout page for guests.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-uyelik-girisi-gerektiren-odeme-formu-olusturma\">1. Creating a Payment Form Requiring Membership Login<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1268\" height=\"665\" src=\"http:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-kredi-karti-tahsilat.png.webp\" alt=\"\" class=\"wp-image-20742\" title=\"\" srcset=\"https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-kredi-karti-tahsilat.png.webp 1268w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-kredi-karti-tahsilat.png-400x210.webp 400w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-kredi-karti-tahsilat.png-768x403.webp 768w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-kredi-karti-tahsilat.png-18x9.webp 18w\" sizes=\"(max-width: 1268px) 100vw, 1268px\" \/><figcaption class=\"wp-element-caption\">how to set up a collection system<\/figcaption><\/figure>\n\n\n\n<p>First, we want to restrict access to certain pages without a login. In this case, we will write a function to allow only logged in users to access certain pages. If the user is not logged in, we will redirect them to the member login page. This will ensure that payment transactions can only be done by members.<\/p>\n\n\n\n<p>With the following code, only certain pages are allowed access unless the user is logged in. Access to all other pages is redirected to the member login page:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function custom_entry_control() {\n    1TP4Permitted_pages = array('satellite-entry', 'guest-payment-page', 'password-forgotten', 'personal-data-disclosure-and-open-consent-text', 'terms-of-use');\n\n    $current_page = trim(parse_url(add_query_arg(array()), PHP_URL_PATH), '\/');\n    $redirect_url = \"\/uye-girisi\/\";\n    \n    if (!is_user_logged_in() &amp;&amp; !in_array($current_page, 1TP4Listed_pages) &amp;&amp; 0 !== strpos($current_page, 'gpos')) {\n        $redirect_url = empty($current_page) ? '\/hos-welcome\/' : $redirect_url;\n        wp_redirect(site_url($redirect_url));\n        exit;\n    }\n}\nadd_action('template_redirect', 'custom_entry_controllu');\n<\/code><\/pre>\n\n\n\n<p>This code redirects the user to the \"Member Login\" page on non-logged in pages. The guest payment page is exempted from this redirection.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-uyelik-giris-formu-olusturma\">2. Creating a Membership Login Form<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1451\" height=\"426\" src=\"http:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png.webp\" alt=\"\" class=\"wp-image-20744\" title=\"\" srcset=\"https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png.webp 1451w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png-400x117.webp 400w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png-1300x382.webp 1300w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png-768x225.webp 768w, https:\/\/posentegrator.com\/wp-content\/uploads\/2024\/09\/wordpress-online-tahsilat-sistemi.png-18x5.webp 18w\" sizes=\"(max-width: 1451px) 100vw, 1451px\" \/><figcaption class=\"wp-element-caption\">How to Set Up a Collection System?<\/figcaption><\/figure>\n\n\n\n<p>Users who log in can access their personal information and payment history. The login form allows login with username and password. After successful login, the user is directed to the home page. If the login fails, an error message is displayed.<\/p>\n\n\n\n<p>You can use the following shortcode to do this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function custom_login() {\n    if (!empty($_POST[&#039;custom_login&#039;]) &amp;amp;&amp;amp; (isset($_POST[&#039;username&#039;]) &amp;amp;&amp;amp; isset($_POST[&#039;password&#039;]))) {\n        $user_data = array(\n            &#039;user_login&#039; =&amp;gt; $_POST[&#039;username&#039;],\n            &#039;user_password&#039; =&amp;gt; $_POST[&#039;password&#039;],\n            &#039;remember&#039; =&amp;gt; true\n        );\n\n        $user = wp_signon($user_data, false);\n\n        if (is_wp_error($user)) {\n            $GLOBALS[&#039;login_error&#039;] = true;\n        } else {\n            wp_redirect(home_url());\n            exit;\n        }\n    }\n}\nadd_action(&#039;init&#039;, &#039;custom_login&#039;);\nfunction handle_custom_password_reset() {\n    if (isset($_POST[&#039;custom_password_reset&#039;]) &amp;amp;&amp;amp; isset($_POST[&#039;user_login&#039;])) {\n        $user_login = sanitize_text_field($_POST[&#039;user_login&#039;]);\n        \n        \/\/ Check username or email\n        if (is_email($user_login)) {\n            $user = get_user_by(&#039;email&#039;, $user_login);\n        } else {\n            $user = get_user_by(&#039;login&#039;, $user_login);\n        }\n        \n        if ($user) {\n            \/\/ Generate password reset key\n            $reset_key = get_password_reset_key($user);\n            if (is_wp_error($reset_key)) {\n                return; \/\/ No action if an error occurred\n            }\n            \n            \/\/ Send password reset email\n            $reset_url = site_url(&quot;wp-login.php?action=rp&amp;amp;key=$reset_key&amp;amp;login=&quot; . rawurlencode($user-&amp;gt;user_login), &#039;login&#039;);\n            $message = &#039;To reset your password, please click on this link: &#039; . $reset_url;\n            $message .= &quot;\\n\\nPlease ignore this email if you did not make this request.&quot;;\n            \n            wp_mail($user-&amp;gt;user_email, &#039;Password Reset Request&#039;, $message);\n            $GLOBALS[&#039;send_password&#039;]=true;\n            \n        } else {\n            $GLOBALS[&#039;password_error&#039;]=true;\n        }\n    }\n}\nadd_action(&#039;wp&#039;, &#039;handle_custom_password_reset&#039;);\n\/\/ User Login Shortcode\nfunction custom_login_form_shortcode() {\n    \/\/ Check error message\n    $login_error_display = (isset($GLOBALS[&#039;login_error&#039;]) &amp;amp;&amp;amp; $GLOBALS[&#039;login_error&#039;]) ? &#039;display:block;&#039; : &#039;display:none;&#039;;\n    \n    \/\/ Form HTML output\n    ob_start();\n    ?&amp;gt;\n    &lt;form action=&quot;&quot; method=&quot;POST&quot; data-trp-original-action=&quot;&quot;&gt;\n        &lt;div class=&quot;user-warning&quot; style=&quot;&lt;?php echo $login_error_display; ?&gt;&quot;&gt;\n            &lt;h2&gt;Login failed: Your username or password is incorrect.&lt;\/h2&gt;\n        &lt;\/div&gt;\n        &lt;h2&gt;Member Login&lt;\/h2&gt;\n        &lt;div class=&quot;input-group&quot;&gt;                    \n            &lt;label for=&quot;username&quot;&gt;Username&lt;\/label&gt;\n            &lt;input type=&quot;text&quot; id=&quot;username&quot; name=&quot;username&quot; required&gt;\n            &lt;input type=&quot;hidden&quot; id=&quot;custom_login&quot; name=&quot;custom_login&quot; value=&quot;1&quot;&gt;\n        &lt;\/div&gt;\n        &lt;div class=&quot;input-group&quot;&gt;\n            &lt;label for=&quot;password&quot;&gt;Password:&lt;\/label&gt;\n            &lt;input type=&quot;password&quot; id=&quot;password&quot; name=&quot;password&quot; required&gt;\n            &lt;div class=&quot;bot-text&quot;&gt;\n                &lt;p class=&quot;lost-password&quot;&gt;\n                    &lt;a href=&quot;\/en\/sifremi-unuttum\/&quot;&gt;Forgot password&lt;\/a&gt;\n                &lt;\/p&gt;\n            &lt;\/div&gt;                   \n        &lt;\/div&gt;\n        &lt;button type=&quot;submit&quot;&gt;Sign in&lt;\/button&gt;\n    &lt;input type=&quot;hidden&quot; name=&quot;trp-form-language&quot; value=&quot;en&quot;\/&gt;&lt;\/form&gt;\n    &lt;?php\n    return ob_get_clean();\n}\nadd_shortcode(&#039;custom_login_form&#039;, &#039;custom_login_form_shortcode&#039;);\n\nfunction custom_password_reset_form_shortcode() {\n    \/\/ Form HTML &ccedil;\u0131kt\u0131s\u0131\n    $forget_password_error_display = (isset($GLOBALS[&#039;password_error&#039;]) &amp;&amp; $GLOBALS[&#039;password_error&#039;]) ? &#039;display:block;&#039; : &#039;display:none;&#039;;\n    $send_password_display = (isset($GLOBALS[&#039;send_password&#039;]) &amp;&amp; $GLOBALS[&#039;send_password&#039;]) ? &#039;display:block;&#039; : &#039;display:none;&#039;;\n    ob_start();\n    ?&gt;\n    &lt;form action=&quot;&quot; method=&quot;POST&quot; data-trp-original-action=&quot;&quot;&gt;\n        &lt;div class=&quot;user-warning&quot; style=&quot;&lt;?php echo $forget_password_error_display; ?&gt;&quot;&gt;\n            &lt;h2&gt;No user was found for this email address.&lt;\/h2&gt;\n        &lt;\/div&gt;N\n        &lt;div class=&quot;user-warning&quot; style=&quot;&lt;?php echo $send_password_display; ?&gt;&quot;&gt;\n            &lt;h2&gt;Your password reset link has been sent to your e-mail address.&lt;\/h2&gt;\n        &lt;\/div&gt;\n        &lt;h2&gt;Forgot Password&lt;\/h2&gt;\n        &lt;div class=&quot;input-group&quot;&gt;                    \n            &lt;label for=&quot;user_login&quot;&gt;Email Address:&lt;\/label&gt;\n            &lt;input type=&quot;text&quot; id=&quot;user_login&quot; name=&quot;user_login&quot; required&gt;\n        &lt;\/div&gt;\n        &lt;button type=&quot;submit&quot; name=&quot;custom_password_reset&quot;&gt;Send Password Reset Email&lt;\/button&gt;\n    &lt;input type=&quot;hidden&quot; name=&quot;trp-form-language&quot; value=&quot;en&quot;\/&gt;&lt;\/form&gt;\n    &lt;?php\n    return ob_get_clean();\n}\nadd_shortcode(&#039;custom_password_reset_form&#039;, &#039;custom_password_reset_form_shortcode&#039;);\n\nfunction custom_image_sizes() {\n    add_image_size( &#039;small&#039;, 100, 100, true ); \/\/ 100x100 boyutunda, k\u0131rpma aktif\n}\nadd_action( &#039;after_setup_theme&#039;, &#039;custom_image_sizes&#039; );\n<\/code><\/pre>\n\n\n\n<p>With this shortcode, you can add a simple membership login form to your site. How to set up a collection system after these processes? You can find an answer to the question.<\/p>\n\n\n\n<p>To obtain POS Integrator Business <a href=\"https:\/\/gurmehub.com\/urun\/pos-entegrator-bussines\/\" target=\"_blank\" rel=\"noopener\">Click here.<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>How to set up an online collection system? is a digital infrastructure that enables receiving payments from product or service sales over the internet. These systems, credit<\/p>","protected":false},"author":1,"featured_media":21285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_edit_lock":["1735124038:8"],"rank_math_internal_links_processed":["1"],"rank_math_seo_score":["83"],"rank_math_focus_keyword":["tahsilat sistemi nas\u0131l kurulur"],"_edit_last":["8"],"_woodmart_mobile_content":[""],"_woodmart_open_categories":[""],"_woodmart_whb_header":["none"],"_woodmart_title_off":[""],"_woodmart_page-title-size":["inherit"],"_woodmart_title_image":["a:2:{s:3:\"url\";s:0:\"\";s:2:\"id\";s:0:\"\";}"],"_woodmart_title_bg_color":[""],"_woodmart_title_color":["default"],"_woodmart_main_layout":["default"],"_woodmart_sidebar_width":["default"],"_woodmart_custom_sidebar":["none"],"_woodmart_footer_off":[""],"_woodmart_prefooter_off":[""],"_woodmart_copyrights_off":[""],"rank_math_primary_category":["80"],"rank_math_description":["Online tahsilat sistemi nas\u0131l kurulur? \u0130nternet \u00fczerinden \u00fcr\u00fcn veya hizmet sat\u0131\u015flar\u0131ndan \u00f6deme almay\u0131 sa\u011flayan bir dijital altyap\u0131d\u0131r. Bu sistemler, kredi kart\u0131, banka kart\u0131 ve \u00e7e\u015fitli dijital \u00f6deme y\u00f6ntemlerini entegre ederek m\u00fc\u015fterilerden h\u0131zl\u0131 ve g\u00fcvenli \u00f6deme alman\u0131z\u0131 sa\u011flar"],"rank_math_title":["Tahsilat Sistemi Nas\u0131l Kurulur? 2 Ad\u0131mda Tahsilat Sistemi"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"8d74a9c5cff2c4f449f7680b36e30e5e\";s:6:\"images\";a:1:{i:0;i:20742;}}"],"_wp_old_date":["2024-09-20"],"_thumbnail_id":["21285"],"_elementor_page_assets":["a:0:{}"],"wd_page_css_files":["a:23:{i:0;s:16:\"helpers-wpb-elem\";i:1;s:22:\"widget-wd-recent-posts\";i:2;s:10:\"widget-nav\";i:3;s:16:\"blog-single-base\";i:4;s:9:\"blog-base\";i:5;s:14:\"elementor-base\";i:6;s:20:\"opt-carousel-disable\";i:7;s:11:\"header-base\";i:8;s:9:\"mod-tools\";i:9;s:18:\"mod-nav-menu-label\";i:10;s:20:\"header-elements-base\";i:11;s:6:\"button\";i:12;s:27:\"header-mobile-nav-drilldown\";i:13;s:33:\"header-mobile-nav-drilldown-slide\";i:14;s:12:\"social-icons\";i:15;s:19:\"social-icons-styles\";i:16;s:15:\"page-navigation\";i:17;s:18:\"blog-loop-base-old\";i:18;s:24:\"blog-loop-design-masonry\";i:19;s:6:\"swiper\";i:20;s:12:\"mod-comments\";i:21;s:11:\"footer-base\";i:22;s:10:\"text-block\";}"]},"categories":[80],"tags":[],"class_list":["post-20112","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odeme-dunyasi"],"_links":{"self":[{"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/posts\/20112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/comments?post=20112"}],"version-history":[{"count":0,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/posts\/20112\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/media\/21285"}],"wp:attachment":[{"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/media?parent=20112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/categories?post=20112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/posentegrator.com\/en\/wp-json\/wp\/v2\/tags?post=20112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}