
{"id":2560,"date":"2014-10-17T16:13:09","date_gmt":"2014-10-17T20:13:09","guid":{"rendered":"https:\/\/www.beprosoftware.com\/documentation\/?p=2560"},"modified":"2014-10-17T16:14:52","modified_gmt":"2014-10-17T20:14:52","slug":"bepro-cart-developers","status":"publish","type":"post","link":"https:\/\/beprosoftware.com\/documentation\/bepro-cart-developers\/","title":{"rendered":"BePro Cart for Developers"},"content":{"rendered":"<p>We encourage others to integrate their projects and plugins with BePro Cart. We make it really easy to send the user to BePro Cart for collection of payment for whatever product or service you have setup. The software will then update your application when a successful payment is received. This is an easy and FREE way to add payment solutions to your next wordpress project<\/p>\n<h2>INITIATE PAYMENT<\/h2>\n<p>In the simplest term, you need to generate a php $_POST with the &#8220;addcart&#8221; variable set. The most typical way of doing this is via a html form. The easiest way to do this is by implementing our &#8220;Add to Cart&#8221; shortcode. With its simple options outlined in our <a href=\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-shortcodes\/\" target=\"_blank\">BePro Cart shortcodes documentation<\/a>, you can let BePro Cart figure out the form fields<\/p>\n<p>You would manage the product details on your end. Simply send the item name, cost and hopefully the item number (aka ID). That way, when the order is done, you know exactly what the payment is actually for. <\/p>\n<h2>CONFIRM PAYMENT<\/h2>\n<p>As you would expect, we offer a wordpress hook that&#8217;s fired for each item in the successful purchase details. The name of the action hook is &#8220;bepro_cart_item_payment_complete&#8221;. Its function looks like this<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\ndo_action(&quot;bepro_cart_item_payment_complete&quot;, $current_item, $custom_values['bepro_cart_id'])\r\n<\/pre>\n<p>Note that you are sent the item returned form the payment processor. You are also provided with the id of the record stored in BePro Cart in case you need to reference it later. The information contained in the $current_item is outlined below<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n $current_item = array(\r\n                    'item_number' =&gt; $item_number,\r\n                    'item_name' =&gt; $item_name,\r\n                    'quantity' =&gt; $quantity,\r\n                    'mc_gross' =&gt; $mc_gross,\r\n                    'mc_currency' =&gt; $mc_currency,\r\n                );\r\n<\/pre>\n<h2>CONCLUSION<\/h2>\n<p>Hopefully at this point you are excited at the prospects of easily integrating payment features into your next custom wordpress solution. Its as easy as calling a shortcode and hooking into the wordpress action. We encourage you to take advantage of this easy and 100% FREE Shopping Cart solution<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We encourage others to integrate their projects and plugins with BePro Cart. We make it really easy to send the user to BePro Cart for collection of payment for whatever product or service you have setup. The software will then update your application when a successful payment is received. This is an easy and FREE&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[306],"tags":[158,307,144,305,32,309],"class_list":["post-2560","post","type-post","status-publish","format-standard","hentry","category-bepro-cart","tag-api","tag-bepro-cart-2","tag-developers","tag-integration","tag-plugin","tag-shopping-cart","category-306","description-off"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>BePro Cart for Developers - Documentation<\/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:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"BePro Cart for Developers - Documentation\" \/>\n<meta property=\"og:description\" content=\"We encourage others to integrate their projects and plugins with BePro Cart. We make it really easy to send the user to BePro Cart for collection of payment for whatever product or service you have setup. The software will then update your application when a successful payment is received. This is an easy and FREE&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-17T20:13:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-17T20:14:52+00:00\" \/>\n<meta name=\"author\" content=\"BePro Software Team\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"BePro Software Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/\",\"name\":\"BePro Cart for Developers - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\"},\"datePublished\":\"2014-10-17T20:13:09+00:00\",\"dateModified\":\"2014-10-17T20:14:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.beprosoftware.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"BePro Cart for Developers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#website\",\"url\":\"https:\/\/www.beprosoftware.com\/documentation\/\",\"name\":\"Documentation\",\"description\":\"BePro Software Product Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef\",\"name\":\"BePro Software Team\",\"description\":\"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware\",\"sameAs\":[\"http:\/\/beprosoftware.com\",\"https:\/\/x.com\/beprosoftware\"],\"url\":\"https:\/\/beprosoftware.com\/documentation\/author\/manager\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"BePro Cart for Developers - Documentation","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:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/","og_locale":"en_US","og_type":"article","og_title":"BePro Cart for Developers - Documentation","og_description":"We encourage others to integrate their projects and plugins with BePro Cart. We make it really easy to send the user to BePro Cart for collection of payment for whatever product or service you have setup. The software will then update your application when a successful payment is received. This is an easy and FREE&hellip;","og_url":"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/","og_site_name":"Documentation","article_published_time":"2014-10-17T20:13:09+00:00","article_modified_time":"2014-10-17T20:14:52+00:00","author":"BePro Software Team","twitter_misc":{"Written by":"BePro Software Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/","url":"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/","name":"BePro Cart for Developers - Documentation","isPartOf":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#website"},"datePublished":"2014-10-17T20:13:09+00:00","dateModified":"2014-10-17T20:14:52+00:00","author":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef"},"breadcrumb":{"@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.beprosoftware.com\/documentation\/bepro-cart-developers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.beprosoftware.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"BePro Cart for Developers"}]},{"@type":"WebSite","@id":"https:\/\/www.beprosoftware.com\/documentation\/#website","url":"https:\/\/www.beprosoftware.com\/documentation\/","name":"Documentation","description":"BePro Software Product Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.beprosoftware.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.beprosoftware.com\/documentation\/#\/schema\/person\/96560a18e84b6d1d52fd4b5439c3e0ef","name":"BePro Software Team","description":"BePro Software is a Canadian company providing managed hosting, operational support, and long-term stewardship for business-critical websites and digital systems. We specialize in maintaining and operating platforms built by others, focusing on stability, security, accessibility, and continuity rather than one-off development. BePro Software is owned and operated by Beyond Programs Ltd and is based in British Columbia, Canada. Contact us on FolioProjects @BeproSoftware","sameAs":["http:\/\/beprosoftware.com","https:\/\/x.com\/beprosoftware"],"url":"https:\/\/beprosoftware.com\/documentation\/author\/manager\/"}]}},"_links":{"self":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2560"}],"collection":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/comments?post=2560"}],"version-history":[{"count":1,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2560\/revisions"}],"predecessor-version":[{"id":2561,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/posts\/2560\/revisions\/2561"}],"wp:attachment":[{"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/media?parent=2560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/categories?post=2560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beprosoftware.com\/documentation\/wp-json\/wp\/v2\/tags?post=2560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}