{"version":"1.0","provider_name":"My CMS","provider_url":"https:\/\/help.xodox.in\/pt","author_name":"help-xodox","author_url":"https:\/\/help.xodox.in\/pt\/author\/help-xodox\/","title":"Stripe Checkout - My CMS","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"d7RPiAbbtE\"><a href=\"https:\/\/help.xodox.in\/pt\/docs\/stripe-checkout\/\">Stripe Checkout<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/help.xodox.in\/pt\/docs\/stripe-checkout\/embed\/#?secret=d7RPiAbbtE\" width=\"600\" height=\"338\" title=\"&#8220;Stripe Checkout&#8221; &#8212; My CMS\" data-secret=\"d7RPiAbbtE\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n<\/script>","description":"Stripe Checkout requires your Xodox CRM installation to run on HTTPS url, read more here: https:\/\/stripe.com\/docs\/web\/setup#http-requirements If your Xodox CRM installation is not running on HTTPS Url and you recently activated your SSL certificate for your domain, you should consider changing your Xodox CRM base url to start with HTTPS as explained here: https:\/\/help.Xodoxcrm.com\/switch-to-https-after-installing-to-http\/ Configure API Keys Stripe Checkout can be configured in Setup-&gt;Settings-&gt;Payment Gateways-&gt;Stripe Checkout. To set up Stripe Checkout, you will need API Secret and Publishable key. To get these, please follow the steps below: Log in to your Stripe account Click \u201cDevelopers\u201d from the top left menu item of the page Click the \u201cAPI Keys\u201d submenu item If you toggled \u201cView test data\u201c, Stripe will show the test keys, otherwise, the live keys will be shown. For production, you will need the \u201cLive Secret Key\u201d and \u201cLive Publishable Key\u201c. For testing, you will need the \u201cTest Secret Key\u201d and \u201cTest Publishable Key\u201d Webhook Starting from Xodox CRM Latest Update, the Stripe checkout integration works with webhooks. After the Stripe API credentials are saved, Xodox CRM will show you a message that the webhook is not configured for the current mode (testing or live based on your API credentials) To spare you from manually configuring the webhook, we added functionality to automatically create the webhook in Stripe. Just click on the \u201chere\u201d link in the message text to create the webhook in Stripe. Keep in mind that at first if you added test Stripe API credentials, you will need to repeat this step again when you add your live API credentials. Mod Security In case you are getting Access to this resource on the server is denied or Not Acceptable mod_security errors when Stripe is redirecting back to Xodox CRM after payment, contact your hosting and ask them to disable mod_security for your Xodox CRM installation because in certain scenarios ModSecurity will interfere with Xodox CRM features. Testing After you entered the test Stripe API credentials and created the webhook, you can perform the following steps: Create a dummy customer. Create an invoice under the customer you created before and in the Allowed Payment Modes make sure that you select Stripe View the invoice as a customer, while previewing the invoice in the admin area click More-&gt;View Invoice as Customer. Scroll to the bottom and select Stripe and click Pay Now If you need test credit cards, you can read more in the Stripe testing guide page Notes (applicable only for Xodox CRM Latest Update\u00a0 below 2.4.0) Keep in mind that once you make the first payment with Stripe under your dummy customer (or any other customer), Xodox CRM will create a separate customer in Stripe dashboard and will store the customer id inside Xodox CRM database, this ID will be used for future payments and the credit card you entered the first time will be used as default source for this customer. After you disable testing mode and change the API keys to production, the customer you created for testing purposes won\u2019t work anymore with the production API keys, means that you won\u2019t be able to perform tests again with this customer with your production keys, you should delete this customer because the script won\u2019t be able to fetch this customer from Stripe because the customer ID is actually from the testing data not from production data. However, if you are familiar with working with phpmyadmin, you can easily set the field stripe_id in tbclients table to null."}