{"id":27430,"date":"2020-01-01T12:48:33","date_gmt":"2020-01-01T12:48:33","guid":{"rendered":"http:\/\/localhost\/demo\/payment-checkout\/"},"modified":"2026-07-24T20:55:41","modified_gmt":"2026-07-24T20:55:41","slug":"payment-checkout","status":"publish","type":"page","link":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/?page_id=27430","title":{"rendered":"Payment Checkout"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column]<div class=\"page-container-four clearfix\"><div class=\"col-md-10 col-md-offset-1\"><div class=\"lp_payment_steps_area\">\r\n\t<!-- timeline on checkout page -->\r\n\t<ol class=\"lp-checkout-steps\">\r\n\t  <li class=\"firstStep\"><span class=\"number\">1<\/span><span class=\"description\">SELECT PAYMENT<\/span><\/li>\r\n\t  <li class=\"secondStep\"><span class=\"number\">2<\/span><span class=\"description\">REVIEW PAYMENT<\/span><\/li>\r\n\t  <li class=\"thirdStep\"><span class=\"number\">3<\/span><span class=\"description\">DONE<\/span><\/li>\r\n\t<\/ol>\r\n<\/div><form autocomplete=\"off\" id=\"listings_checkout_form\" class=\"lp-listing-form \" name =\"listings_checkout_form\" action=\"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/wp-content\/plugins\/listingpro-plugin\/inc\/paypal\/form-handler.php?func=addrow\" method=\"post\" data-recurring=\"no\" data-currencypos=\"left\" data-currencysymbol=\"$\"><div class=\"row\"><div class=\"col-md-8\"><p class=\"text-center\">Sorry! You have no paid listings yet!<\/p><div class=\"lp-checkout-coupon-outer\">\n                                <ul class=\"checkout-item-price-total\">\n                                    <li>\n                                        <span class=\"item-price-total-left\"><b>ITEM<\/b><\/span>\n                                        <span class=\"item-price-total-right\"><b>PRICE<\/b><\/span>\n\n                                    <\/li>\n                                    <li>\n                                        <span class=\"item-price-total-left lp-subtotal-plan\"><\/span>\n                                        <span class=\"item-price-total-right lp-subtotal-p-price\"><\/span>\n\n                                    <\/li>\n                                        <li>\n                                            <span class=\"item-price-total-left\">Tax(Value Added Tax)<\/span>\n                                            <span class=\"item-price-total-right lp-subtotal-taxamount\"><\/span>\n\n                                        <\/li>\n                                    <li>\n                                        <span class=\"item-price-total-left\"><b>Total<\/b><\/span>\n                                        <span class=\"item-price-total-right lp-subtotal-total-price\"><b><\/b><\/span>\n\n                                    <\/li>\n\n                                <\/ul>\n\n                        <\/div><\/div><div class=\"col-md-4 lp-col-outer\"><div class=\"lp-rightbnk-transfer-msg lp-rightbnk-transfer-msg-new\"><div class=\"lp-method-wrap\"><label><div class=\"radio radio-danger\">\n\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"plan\" id=\"rd3\" value=\"stripe\">\n\t\t\t\t\t\t\t\t<label for=\"rd3\">\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t<\/div><p>Stripe<\/p><div class=\"lp-checkout-payment-img\"><img decoding=\"async\" src=\"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/wp-content\/themes\/listingpro\/assets\/images\/stripe.png\"><\/div><\/label><\/div><\/div><div class=\"lp-recurring-button-wrap\"><\/div>\n                        <button type=\"button\" class=\"lp_payment_step_next firstStep\" disabled>PROCEED TO NEXT<\/button>\n                    <\/div><\/div><\/form><button id=\"stripe-submit\">Purchase<\/button><script>\n                                    var post_title = \"\";\n                                    listings_id = \"\";\n                                    listings_img = \"\";\n                                    plan_price = \"\";\n                                    currency = \"\";\n                                    plan_id = \"\";\n                                    listing_img = \"\";\n                                    taxrate = \"\";\n\n                                    coupon = \"\";\n                                    jQuery(\"button.lp_payment_step_next\").click(function(){\n                                        listings_id = \"\";\n                                        listings_id = jQuery(\"#listings_checkout_form input[name=listing_id]:checked\").val();\n                                        plan_id = \"\";\n                                        plan_id = jQuery(\"#listings_checkout_form input[name=listing_id]:checked\").data(\"planid\");\n                                        taxrate = jQuery(\"#listings_checkout_form input[name=listing_id]:checked\").data(\"taxrate\");\n                                        coupon = jQuery(\"#listings_checkout_form input[name=coupon-text-field]\").val();\n                                        \n                                    });\n                                    var recurringtext =\"\";\n                                    jQuery(\"#listings_checkout_form\").submit(function(){\n                                        recurringtext = jQuery(\"input[name=lp-recurring-option]:checked\").val();\n                                    });\n                                    \n                                    var token_email, token_id;\n                                    var handler = StripeCheckout.configure({\n                                      key: \"pk_test_CWzoQxGab6gCbqVnipQNY3xb\",\n                                      image: \"https:\/\/stripe.com\/img\/documentation\/checkout\/marketplace.png\",\n                                      locale: \"auto\",\n                                      token: function(token) {\n                                        console.log(token);\n                                        token_id = token.id;\n                                        token_email = token.email;\n                                        jQuery(\"body\").addClass(\"listingpro-loading\");\n                                        jQuery.ajax({\n                                            type: \"POST\",\n                                            dataType: \"json\",\n                                            url: \"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/wp-admin\/admin-ajax.php\",\n                                            data: { \n                                                \"action\": \"listingpro_save_stripe\", \n                                                \"token\": token_id, \n                                                \"email\": token_email, \n                                                \"listing\": listings_id, \n                                                \"plan\": plan_id,\n\n                                                \"plan_price\": jQuery(\"#listings_checkout_form input[name=plan_price]\").val(),\n                                                \"taxrate\": jQuery(\"#listings_checkout_form input[name=listings_tax_price]\").val(),                  \n                                                \"coupon\": coupon,                   \n                                                \"recurring\" : recurringtext,                        \n                                            },   \n                                            success: function(res){\n                                                if(res.status==\"success\"){\n                                                    redURL = res.redirect;\n                                                    if(res.status==\"success\"){\n                                                        window.location.href = redURL;\n                                                        jQuery(\"body\").removeClass(\"listingpro-loading\");\n                                                    }\n                                                }\n                                                if(res.status==\"fail\"){\n                                                    alert(res.redirect);\n                                                    jQuery(\"body\").removeClass(\"listingpro-loading\");\n                                                }\n                                                \n                                            },\n                                            error: function(errorThrown){\n                                                alert(errorThrown);\n                                                jQuery(\"body\").removeClass(\"listingpro-loading\");\n                                            } \n                                        });\n                                        \n    \n                                      }\n                                    });\n    \n                                    \/\/ Close Checkout on page navigation:\n                                    window.addEventListener(\"popstate\", function() {\n                                      handler.close();\n                                    });\n                                    <\/script>[\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][\/vc_column][\/vc_row]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-page-full-width.php","meta":{"_srk_meta_title":"","_srk_meta_description":"","_srk_robots_meta":[],"_srk_canonical_url":"","_srk_advanced_settings":{"use_default_settings":true,"show_meta_box":true},"_srk_last_sync":1784926511,"footnotes":""},"class_list":["post-27430","page","type-page","status-publish","hentry"],"cubewp_post_meta":[],"taxonomies":[],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/pages\/27430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27430"}],"version-history":[{"count":4,"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/pages\/27430\/revisions"}],"predecessor-version":[{"id":27450,"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=\/wp\/v2\/pages\/27430\/revisions\/27450"}],"wp:attachment":[{"href":"https:\/\/affectionate-lalande.172-241-140-246.plesk.page\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}