{"id":1045116,"date":"2015-12-22T05:05:15","date_gmt":"2015-12-22T13:05:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/"},"modified":"2016-02-18T08:33:19","modified_gmt":"2016-02-18T16:33:19","slug":"what-happens-when-two-people-try-to-buy-the-last-ticket","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/","title":{"rendered":"What happens when two people try to buy the last ticket?"},"content":{"rendered":"<p>Hello everyone,<\/p>\n<p>i need to create a website for a company who organizes events. On such website the users must be able to buy tickets. During last year the company made a partnership with another website (which i will call TICKETSWEBSITE for privacy reasons) responsible of managing the ticket purchase, but starting from this year they want to manage tickets on their own.<\/p>\n<p>Problem: The company almost always sold out their tickets. So there&#8217;s one thing i must be sure that your plugin can do before buying.<\/p>\n<p>1: In TICKETSWEBSITE if two users log in at the same time and try to buy the ticket, the first one who clicks on &#8220;purchase&#8221; immediately locks the ticket and has 15 minutes to complete the purchase. So the second user will see this message: &#8220;some people is trying to buy the last tickets available. Try again later&#8221;. If the user doesn&#8217;t pay within 15 minutes, the ticket becomes free again. <strong>So, on your plugin what happens when two people try to buy the last ticket?<\/strong> This is really important, because often there are 50 people trying to buy the last available tickets and we don&#8217;t want to have troubles.<\/p>\n","protected":false},"template":"","class_list":["post-1045116","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What happens when two people try to buy the last ticket? -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What happens when two people try to buy the last ticket? -\" \/>\n<meta property=\"og:description\" content=\"Hello everyone, i need to create a website for a company who organizes events. On such website the users must be able to buy tickets. During last year the company made a partnership with another website (which i will call TICKETSWEBSITE for privacy reasons) responsible of managing the ticket purchase, but starting from this year [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-18T16:33:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/\",\"name\":\"What happens when two people try to buy the last ticket? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-12-22T13:05:15+00:00\",\"dateModified\":\"2016-02-18T16:33:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"What happens when two people try to buy the last ticket?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What happens when two people try to buy the last ticket? -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/","og_locale":"en_US","og_type":"article","og_title":"What happens when two people try to buy the last ticket? -","og_description":"Hello everyone, i need to create a website for a company who organizes events. On such website the users must be able to buy tickets. During last year the company made a partnership with another website (which i will call TICKETSWEBSITE for privacy reasons) responsible of managing the ticket purchase, but starting from this year [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/","article_modified_time":"2016-02-18T16:33:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/","name":"What happens when two people try to buy the last ticket? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-12-22T13:05:15+00:00","dateModified":"2016-02-18T16:33:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-happens-when-two-people-try-to-buy-the-last-ticket\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"What happens when two people try to buy the last ticket?"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1045116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1045116\/revisions"}],"predecessor-version":[{"id":1045127,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1045116\/revisions\/1045127"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1045116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}