Stripe – change Description passed from WooCommerce
-
I’m using WooCommerce with the Stripe plugin but the description that gets passed to Stripe is just eg.
Music Ministry – Order 14240
I’ve been searching for a way to change that so that we can see the Product Name / SKU in Stripe to help us reconcile payments but I can’t work it out. I’ve found various bits of code to add to functions.php but they all generate errors (probably because I don’t really know what I’m doing!).
Can anyone help?
-
Hello,
Which Stripe plugin are you using? Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
Thanks, I’m using ‘WooCommerce Stripe Payment Gateway’ from WooCommerce. Here’s my system report…
### WordPress Environment ### WordPress address (URL): https://www.music-ministry.org Site address (URL): https://www.music-ministry.org WC Version: 6.0.0 REST API Version: ? 6.0.0 WC Blocks Version: ? 6.3.3 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.9.4 Log Directory Writable: ? WP Version: 5.8.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.27 PHP Post Max Size: 128 MB PHP Time Limit: 300 PHP Max Input Vars: 3000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 10.3.32-MariaDB-log-cll-lve Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.0.0 WC Database Prefix: 18ghk_ Total Database Size: 134.96MB Database Data Size: 96.13MB Database Index Size: 38.83MB 18ghk_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 18ghk_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB 18ghk_woocommerce_order_itemmeta: Data: 0.47MB + Index: 0.31MB + Engine InnoDB 18ghk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 18ghk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 18ghk_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 18ghk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_actionscheduler_actions: Data: 0.30MB + Index: 0.09MB + Engine MyISAM 18ghk_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_actionscheduler_logs: Data: 0.14MB + Index: 0.10MB + Engine MyISAM 18ghk_as3cf_items: Data: 0.13MB + Index: 0.17MB + Engine InnoDB 18ghk_commentmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB 18ghk_comments: Data: 0.23MB + Index: 0.16MB + Engine InnoDB 18ghk_defender_audit_log: Data: 1.43MB + Index: 0.42MB + Engine MyISAM 18ghk_defender_email_log: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_defender_lockout: Data: 13.66MB + Index: 22.72MB + Engine MyISAM 18ghk_defender_lockout_log: Data: 1.70MB + Index: 0.26MB + Engine MyISAM 18ghk_defender_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_defender_scan_item: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_e_submissions: Data: 0.03MB + Index: 0.06MB + Engine MyISAM 18ghk_e_submissions_actions_log: Data: 0.01MB + Index: 0.02MB + Engine MyISAM 18ghk_e_submissions_values: Data: 0.10MB + Index: 0.01MB + Engine MyISAM 18ghk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_litespeed_img_optm: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_litespeed_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_litespeed_url_file: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_options: Data: 14.28MB + Index: 3.06MB + Engine InnoDB 18ghk_postmeta: Data: 44.47MB + Index: 5.97MB + Engine InnoDB 18ghk_posts: Data: 12.52MB + Index: 0.78MB + Engine InnoDB 18ghk_ppress_forms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_ppress_formsmeta: Data: 0.03MB + Index: 0.02MB + Engine MyISAM 18ghk_ppress_meta_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_redirection_404: Data: 1.02MB + Index: 0.08MB + Engine InnoDB 18ghk_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_redirection_items: Data: 0.02MB + Index: 0.08MB + Engine InnoDB 18ghk_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 18ghk_sib_model_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_sib_model_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB 18ghk_term_relationships: Data: 0.14MB + Index: 0.11MB + Engine InnoDB 18ghk_term_taxonomy: Data: 0.06MB + Index: 0.06MB + Engine InnoDB 18ghk_um_metadata: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_usermeta: Data: 2.52MB + Index: 2.92MB + Engine InnoDB 18ghk_users: Data: 0.11MB + Index: 0.08MB + Engine InnoDB 18ghk_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB 18ghk_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 18ghk_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 18ghk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB 18ghk_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB 18ghk_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 18ghk_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB 18ghk_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 18ghk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 18ghk_yoast_indexable: Data: 1.44MB + Index: 0.24MB + Engine MyISAM 18ghk_yoast_indexable_hierarchy: Data: 0.04MB + Index: 0.08MB + Engine MyISAM 18ghk_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_yoast_primary_term: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 18ghk_yoast_seo_links: Data: 0.11MB + Index: 0.03MB + Engine InnoDB 18ghk_yoast_seo_meta: Data: 0.30MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 7 acf-field-group: 2 amn_exact-metrics: 1 attachment: 579 custom_css: 1 downloads: 613 elementor_cf_db: 376 elementor_font: 7 elementor_icons: 1 elementor_library: 35 hymns: 283 nav_menu_item: 52 nfo_sermon: 37 oceanwp_library: 1 oembed_cache: 14 page: 58 post: 151 product: 16 revision: 1207 shop_coupon: 5 shop_order: 518 shop_order_refund: 2 ticket-meta-fieldset: 3 tribe_wooticket: 795 um_directory: 2 um_form: 6 um_mailchimp: 1 wphb_minify_group: 5 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (51) ### 404page - your smart custom 404 error page: by Peter Raschendorfer – 11.3.0 Advanced Custom Fields PRO: by Delicious Brains – 5.11.4 WP Offload Media Lite: by Delicious Brains – 2.5.5 Better archives widget: by Paul de Wouters – 2.2.1 Better Search Replace: by Delicious Brains – 1.3.4 cookie-cat: by bobbingwide – 1.4.5 Custom Post Type UI: by WebDevStudios – 1.10.1 Default featured image: by Jan Willem Oostendorp – 1.7.1 Donorbox Donation Form: by rebelidealist – 7.1.6 Extras for Elementor: by Namogo – 2.2.51 Elementor Pro: by Elementor.com – 3.5.2 Elementor: by Elementor.com – 3.5.3 Event Tickets Plus: by The Events Calendar – 5.3.2 Event Tickets: by The Events Calendar – 5.2.2 Favorites: by Kyle Phillips – 2.3.2 Beehive Pro: by WPMU DEV – 3.3.12 Health Check & Troubleshooting: by The www.remarpro.com community – 1.4.5 JetBlog For Elementor: by Crocoblock – 2.2.15 Current Year and Copyright Shortcodes: by David Gewirtz – 1.0.2 LiteSpeed Cache: by LiteSpeed Technologies – 4.4.6 Loco Translate: by Tim Whitlock – 2.5.5 Mailgun: by Mailgun – 1.7.9 Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: by Sendinblue – 3.1.25 ninefootone - talks: by ninefootone – 0.6.7 Ocean Custom Sidebar: by OceanWP – 1.0.7 Ocean Extra: by OceanWP – 1.9.2 Ocean Social Sharing: by OceanWP – 2.0.0 Ocean Sticky Header: by OceanWP – 2.0.3 oik: by bobbingwide – 4.5.0 Blubrry PowerPress: by Blubrry – 8.7.8 Redirection: by John Godley – 5.1.3 Elementor Contact Form DB: by Sean Barton - Tortoise IT – 1.7 Search Everything: by Sovrn zemanta – 8.1.9 Snapshot Pro: by WPMU DEV – 4.6.0 Termly | GDPR/CCPA Cookie Consent Banner: by Termly – 3.0.2 Ultimate Member: by Ultimate Member – 2.3.0 Ultimate Member - MailChimp: by Ultimate Member – 2.3.1 Ultimate Member - Notices: by Ultimate Member – 2.1.0 Ultimate Member - Profile Completeness: by Ultimate Member – 2.2.3 Ultimate Member - reCAPTCHA: by Ultimate Member – 2.2.1 Ultimate Member - WooCommerce: by Ultimate Member – 2.2.8 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.5.2 WooCommerce Product Image Gallery Options: by Create and Code – 1.1.0 WooCommerce Extended Coupon Features FREE: by Soft79 – 3.2.8 WooCommerce Stripe Gateway: by WooCommerce – 6.0.0 WooCommerce: by Automattic – 6.0.0 Defender Pro: by WPMU DEV – 2.6.5 WP HTML Author Bio: by TheDevCouple(Awais & Maedah) – 1.2.0 Block Uploading Images for WP Offload Media: by Sébastien Dumont – 1.0.1 ProfilePress: by ProfilePress Team – 3.2.6 WPMU DEV Dashboard: by WPMU DEV – 4.11.8 ### Inactive Plugins (3) ### Smush Pro: by WPMU DEV – 3.9.4 WooCommerce Admin: by WooCommerce – 3.0.3 Yoast SEO: by Team Yoast – 17.8 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### Health Check Troubleshooting Mode: by – 1.7.2 ### Settings ### API Enabled: ? Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #3626 - /shop/ Basket: #3627 - /basket/ Checkout: #3628 - /checkout/ My account: #3629 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: OceanWP Child Version: 1.0 Author URL: https://oceanwp.org/ Child Theme: ? Parent Theme Name: OceanWP Parent Theme Version: 3.1.2 Parent Theme Author URL: https://oceanwp.org/about-me/ WooCommerce Support: ? ### Templates ### Overrides: oceanwp/woocommerce/cart/mini-cart.php oceanwp/woocommerce/content-single-product.php oceanwp/woocommerce/loop/loop-start.php oceanwp/woocommerce/single-product/title.php ### Action Scheduler ### Complete: 763 Oldest: 2021-12-10 14:48:30 +0000 Newest: 2022-01-10 14:07:13 +0000 Pending: 2 Oldest: 2022-01-10 15:07:13 +0000 Newest: 2022-01-11 12:32:01 +0000 ### Status report information ### Generated at: 2022-01-10 14:45:40 +00:00
I found a guide that could help here: https://zeropointdevelopment.com/how-to-add-custom-metadata-to-woocommerce-stripe-purchase/
@oaoyadeyi thank you! That did just what I needed. Just checking with the client but I’ve managed to get the full item name in the meta data on Stripe now.
Hello,
That sounds great, let us know if there are any questions.
We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.
- The topic ‘Stripe – change Description passed from WooCommerce’ is closed to new replies.