{"id":197,"date":"2020-05-08T23:27:42","date_gmt":"2020-05-08T23:27:42","guid":{"rendered":"https:\/\/directorist.com\/docs\/?post_type=wpwax_directorist&#038;p=197"},"modified":"2021-07-26T00:01:26","modified_gmt":"2021-07-25T18:01:26","slug":"payments-management","status":"publish","type":"wpwax_directorist","link":"https:\/\/directorist.com\/documentation\/directorist\/shortcodes\/payments-management\/","title":{"rendered":"Payment &amp; Checkout Page"},"content":{"rendered":"<div id=\"eckb-article-content-header\">\n<h3 id=\"12187\" class=\"eckb-article-title kb-article-id\">Transaction Failure<\/h3>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>You can display a message to a user when a transaction fails using this shortcode. DIrectorist will redirect the user automatically to the page where this shortcode is used. However, you need to assign this page to the Transaction Failure Page option in the <strong>Directory Settings \u2192 Pages, Links, and Views.<\/strong><\/p>\n<p><strong>Transaction Failure Shortcode:<\/strong> <code>[directorist_transaction_failure]<\/code><\/p>\n<p>This shortcode does not have any attributes\/parameters<\/p>\n<div id=\"eckb-article-content-header\">\n<h3 id=\"12185\" class=\"eckb-article-title kb-article-id\">Payment Receipt<\/h3>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>You can show the complete details of the purchase to the customer after completing a purchase using this shortcode. However, If you visit the page directly, you will not see any content. Rather you may see an error message somewhat like this \u201cSorry! No order id has been provided.\u201c.<\/p>\n<p>It is because the directorist uses this page automatically when necessary. You need to add the shortcode in a page and assign the page to the <strong>payment\/order receipt page option<\/strong> in the <strong>Directory Settings \u2192 Pages, Links, and Views.<\/strong><\/p>\n<p><strong>Payment Receipt Shortcode:<\/strong> <code>[directorist_payment_receipt]<\/code><\/p>\n<p>This shortcode does not have any attributes\/parameters.<\/p>\n<h4 id=\"sample-screenshot\">Sample Screenshot<\/h4>\n<p>The shortcode output on your site may be a little different because new features are being added and modified with every update.<\/p>\n<figure id=\"attachment_2568\" class=\"wp-caption alignleft\" aria-describedby=\"caption-attachment-2568\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Purchase-Receipt.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Purchase-Receipt.png\" alt=\"Purchase Receipt\" width=\"1920\" height=\"1659\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Purchase-Receipt.png\" data-was-processed=\"true\" \/><\/a><figcaption id=\"caption-attachment-2568\" class=\"wp-caption-text\">\n<div id=\"eckb-article-content-header\"><\/div>\n<\/figcaption><\/figure>\n<h3 id=\"12183\">Checkout\/Cart<\/h3>\n<\/div>\n<div id=\"eckb-article-content-body\">\n<div id=\"kb-article-content\">\n<p>Use this shortcode\u00a0[directorist_checkout] to display the Directorist cart and checkout information on any page or post you like. This shortcode does not have any attributes\/parameters. If you visit the page directly, you will not see any content. Rather you may see an error message somewhat like this \u201cSorry, Something went wrong. The listing ID is missing. Please try again. \u201c. It is because Directorist uses this page automatically when necessary. You need to add the shortcode in a page and assign the page to the Checkout\/Cart option in the <strong>Directory Settings \u2192 Pages, Links, and Views.<\/strong><\/p>\n<p><strong>Checkout\/Cart Shortcode:<\/strong>\u00a0<code>[directorist_checkout]<\/code><\/p>\n<p>The\u00a0<code>[directorist_checkout]<\/code>\u00a0 shortcode will also output all payment gateways information so that the user can pay\/checkout using any gateway they like.<\/p>\n<h4 id=\"sample-screenshot\">Sample Screenshot<\/h4>\n<p>The shortcode output on your site may be a little different because new features are being added and modified with every update.<\/p>\n<figure id=\"attachment_2566\" class=\"wp-caption aligncenter\" aria-describedby=\"caption-attachment-2566\"><a href=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Checkout.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2566 lazyloaded\" src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Checkout.png\" alt=\"Checkout\/Cart Page\" width=\"1920\" height=\"1285\" data-lazy-src=\"https:\/\/directorist.com\/wp-content\/uploads\/2019\/05\/Checkout.png\" data-was-processed=\"true\" \/><\/a><\/figure>\n<p>That&#8217;s all about Payment &amp; Checkout Page shortcodes.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":2298,"parent":0,"menu_order":0,"template":"","class_list":["post-197","wpwax_directorist","type-wpwax_directorist","status-publish","hentry","wpwax_directorist_category-shortcodes"],"acf":[],"_links":{"self":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/wpwax_directorist"}],"about":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/types\/wpwax_directorist"}],"author":[{"embeddable":true,"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/users\/2298"}],"wp:attachment":[{"href":"https:\/\/directorist.com\/documentation\/wp-json\/wp\/v2\/media?parent=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}