{"id":317,"date":"2017-05-24T13:03:57","date_gmt":"2017-05-24T18:03:57","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=317"},"modified":"2021-12-15T15:30:58","modified_gmt":"2021-12-15T21:30:58","slug":"stripe-gateway-2-6-beta-and-recurring-payments-adds-support-for-existing-cards","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2017\/05\/24\/stripe-gateway-2-6-beta-and-recurring-payments-adds-support-for-existing-cards\/","title":{"rendered":"Stripe Gateway 2.6 Beta and Recurring Payments adds support for existing cards"},"content":{"rendered":"<p>After nearly a month in development, the first beta of version Stripe Gateway 2.6 is available for testing. This upcoming release has quite a few significant improvements along with some bug fixes.<\/p>\n<h3>Existing Cards feature<\/h3>\n<p>Previously the Stripe Gateway has always required that a customer enter in their full card details in order to complete their purchase. In Stripe 2.6, logged in users will be presented with the ability to select a card they have used on a previous purchase or add a new card.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-329\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-existing-cards.png\" alt=\"\" width=\"747\" height=\"207\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-existing-cards.png 747w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-existing-cards-300x83.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>\n<p>Uses will also be able to manage their cards associated with their Stripe account, including adding new cards, setting a new default card, removing a card, or update a card&#8217;s billing details. This form is included by default with the <a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/233-eddprofileeditor\">edd_profile_editor<\/a> shortcode, but can also be included in a custom integration using the <code>edd_stripe_manage_cards()<\/code> function.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-330\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-manage-cards.png\" alt=\"\" width=\"755\" height=\"312\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-manage-cards.png 755w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-manage-cards-300x124.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/p>\n<p>Because it&#8217;s helpful to know if this feature is being used, payments that use an existing card will have a flag set in post meta. We&#8217;ve included the ability to see this flag within the View Order Details in the &#8216;Payment Meta&#8217; metabox, as well as a report in Downloads \u2192 Reports\u00a0\u2192 Stripe Reports. This provides a graph showing the number of times a new card or existing card was used along with the revenue generated by each, to give store owners some insight into how the feature is affecting purchase behavior.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-331\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-report-1024x268.png\" alt=\"\" width=\"722\" height=\"189\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-report-1024x268.png 1024w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-report-300x78.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-report-768x201.png 768w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-report.png 1086w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<div class=\"edd-alert edd-alert-info\">The existing card feature is only auto-enabled on new installations. When upgrading an existing site, it will need to enabled first. This is to prevent any unexpected display issues on checkout, giving store owners a chance to test it out before using it on their live sites.<\/div>\n<div class=\"edd-alert edd-alert-warn\">If you are using <strong>Recurring Payments<\/strong>, the Existing Cards feature requires you be using Recurring Payments <em>2.7.1 or later<\/em>.<\/div>\n<p><strong>How does this work?<\/strong><br \/>\nIt&#8217;s important to note that the Existing Cards feature in Stripe Gateway 2.6 does not keep\u00a0any credit card information on a store&#8217;s server or database. Stripe has an existing API that allows\u00a0us to request the payment methods of an existing Stripe customer record. Since\u00a0the Stripe and Recurring Payments extensions\u00a0for Easy Digital Downloads keep\u00a0this Stripe customer ID associated with the EDD Customer record, we can retrieve it for\u00a0users who are authenticated into their accounts. Full card details are not available via this API,\u00a0and neither the full card number nor verification code (CVC) can be accessed. This data is securely stored on the Stripe servers.<\/p>\n<h3>Statement Descriptor setting<\/h3>\n<p>Easy Digital Downloads has previously used a combination of the products purchased and\/or store name to determine what the statement descriptor, which is what charges from the store look like on a customer&#8217;s bank statements. In version 2.6, we&#8217;re adding the ability to define a Statement Descriptor to help customers easily identify charges from a store. This setting also comes with an email token so a customer can be informed of what the charges will look like in their purchase receipts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-332\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor-1024x75.png\" alt=\"\" width=\"722\" height=\"53\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor-1024x75.png 1024w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor-300x22.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor-768x56.png 768w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor-1120x82.png 1120w, https:\/\/easydigitaldownloads.com\/development\/files\/2017\/05\/edd-stripe-statement-descriptor.png 1122w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<h3>Auto-complete attributes<\/h3>\n<p>When inputting\u00a0card details into the checkout form, Stripe Gateway now fully supports the standard autocomplete attributes, allowing customers to use payment methods they have stored in their browser&#8217;s form fill tools, or other programs that securely store their card data.<\/p>\n<h3>Stripe Radar support<\/h3>\n<p>Radar is Stripe&#8217;s built in fraud prevention tool. It gives account owners the ability to define rules for payments that present risk to the store in the form of fraudulent purchases. If a payment via Stripe triggers a rule that allows the charge, but presents the store owner to review it, the Stripe Gateway extension will add a payment note stating that it was flagged for review. It will also add a payment note if a payment has been manually approved after it&#8217;s been reviewed.<\/p>\n<h3>Additional enhancements<\/h3>\n<ul>\n<li>Stripe Customer IDs migrated to customer meta, instead of user meta<\/li>\n<li>Refactored the Javascript for better abstraction and performance<\/li>\n<li>Improved flexibility of the card validation HTML5 attributes<\/li>\n<\/ul>\n<h3>Notable bug fixes<\/h3>\n<ul>\n<li>Duplicate customer records created during failed payments<\/li>\n<li>Remove WP Version from the loading of the Stripe.js<\/li>\n<li>Naming convention conflict with other projects using Stripe class<\/li>\n<\/ul>\n<h3>Upgrades needed<\/h3>\n<p>In order to facilitate migrating the Stripe Customer IDs to the customer meta table, we&#8217;ve included an upgrade routine that will handle this process. This can easily be run by clicking the link that will be presented to admins via a WordPress Admin Notice. We&#8217;ve also included the ability for this upgrade routine to be run via WPCLI. More instructions on that can be found by clicking the <em>&#8220;Learn more about this upgrade&#8221;<\/em> link in the notice.<\/p>\n<h3>Beta testing<\/h3>\n<p>The first beta of\u00a0Stripe Gateway version 2.6 is available to all valid license holders now, allowing store owners to try it out on their <a href=\"https:\/\/easydigitaldownloads.com\/blog\/staging-site-e-commerce\/\">staging environments<\/a> before going live with it. We\u2019ve been using it on our site prior to releasing this beta and are confident with this version, but we encourage testing first to be sure. To learn how to opt-in to beta versions of our extensions, you can use <a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/1807-how-do-i-get-beta-versions-of-extensions\">this guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After nearly a month in development, the first beta of version Stripe Gateway 2.6 is available for testing. This upcoming release has quite a few significant improvements along with some bug fixes. Existing Cards feature&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2017\/05\/24\/stripe-gateway-2-6-beta-and-recurring-payments-adds-support-for-existing-cards\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":650,"featured_media":323,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[15,9],"class_list":["post-317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-extensions","tag-recurring-payments","tag-stripe-payment-gateway"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/users\/650"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":10,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":345,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/317\/revisions\/345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media\/323"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}