Title: davidr2021's Replies | WordPress.org

---

# davidr2021

  [  ](https://wordpress.org/support/users/davidr2021/)

 *   [Profile](https://wordpress.org/support/users/davidr2021/)
 *   [Topics Started](https://wordpress.org/support/users/davidr2021/topics/)
 *   [Replies Created](https://wordpress.org/support/users/davidr2021/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/davidr2021/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/davidr2021/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/davidr2021/engagements/)
 *   [Favorites](https://wordpress.org/support/users/davidr2021/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14698403)
 * Thanks!!!!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14692234)
 * I need to replace the code with existing code or add the code to the page and
   if so where to add it.
 *     ```
       add_filter( 'wc_stripe_generate_payment_request', 'filter_wc_stripe_payment_descriptionmod', 3, 10 );
       function filter_wc_stripe_payment_descriptionmod( $post_data, $order, $source ) {
       	foreach( $order->get_items() as $item_id => $line_item ){
       		$item_data = $line_item->get_data();
       		$product = $line_item->get_product();
       		$product_sku = $product->get_sku();
       	}
       	$post_data['description'] = sprintf( __( '%1$s | %2$s' ), $product_sku, $post_data['description'] );
       	return $post_data;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14692156)
 * Thanks I’ll check it out
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14690728)
 * I guess that’s a requirement of a lot of people
    Is there a code that someone
   has already written that you can refer us to?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14690244)
 * There is no limit to the number of characters
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Description that is passed on to Stripe](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/)
 *  Thread Starter [davidr2021](https://wordpress.org/support/users/davidr2021/)
 * (@davidr2021)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/description-that-is-passed-on-to-stripe/#post-14690240)
 * I mean the DESCRIPTION field on the payment page
 * > [View post on imgur.com](https://imgur.com/a/jGv1Jsk)
 * There is no limit to the number of characters
    -  This reply was modified 4 years, 11 months ago by [davidr2021](https://wordpress.org/support/users/davidr2021/).

Viewing 6 replies - 1 through 6 (of 6 total)