• Resolved dragoscristian

    (@dragoscristian)


    Hello,

    by default, WooCommerce orders that go through Stripe show up in Stripe with the description “Blog Name – Order #”

    What should I add in my functions.php so that the description reads “Product Name -Order #”?

    Thank you!

    Best,
    Christian

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @dragoscristian ,

    Thanks for reaching out!

    I do not have an exact example code to change the description field from “Blog Name – Order #” to “Product Name -Order #”.

    This description is added from this file –

    Path: https://github.com/woocommerce/woocommerce-gateway-stripe/blob/trunk/includes/abstracts/abstract-wc-stripe-payment-gateway.php#L330
    Line: 330

    Here, you will find a filter apply_filters( 'wc_stripe_generate_payment_request', $post_data, $order, $prepared_source ); to make changes on the information that is sent to the Stripe.

    I hope this information helps.

    Thank you ??

    Thread Starter dragoscristian

    (@dragoscristian)

    Hi @rur165 ,

    Thank you for your message! Unfortunately, I do not understand enough of php to actually do these changes. I mean, once I got a php filter I can slightly modify it, and can apply it in my functions.php – but writing it in the first place is really over my abilities.

    Would you be so kind please and help me with the code itself? I would really appreciate it!

    Thank you very much!

    Best,
    Christian

    Hello @dragoscristian ,

    I understand the modifications can be a little confusing at times. Unfortunately, I do not have a working example to make the expected changes.

    You can take help from an expert who works in freelance marketplaces like Upwork.

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    You can also consider taking help from one of our partner’s website.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stripe payment description’ is closed to new replies.