Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    So, the metadata fields are coming on the next version, here’s the github issue related to it (https://github.com/stezu/stripe-for-woocommerce/issues/44). The filters have existed for a couple of versions now and are seen here (https://github.com/stezu/stripe-for-woocommerce/search?utf8=%E2%9C%93&q=apply_filters). There is a filter for the customer description and then a filter each for both subscription and regular charges.

    I also modified the charge descriptions to say “Charge for ‘product name’ (Order: 1234)” where before it had the “username (user_id – user_email) Full Name”. So that makes more sense than it did before. So in the next version you’ll see that filter and possibly metadata. I’ll have to figure out how to do that cleanly. I’ll update you when those features get added.

    Thread Starter K B

    (@kiritb)

    ok this is a stupid question, but I added this in my functions.php

    add_filter(‘s4wc_charge_description’, ‘my_stripe_charge_desc’);
    function my_stripe_charge_desc() {
    return ‘laa dee laa —– This is my custom description’;
    }

    but I don’t see any thing show up in stripe. am i doing something wrong?

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    I did pretty much the same thing:

    add_filter( 's4wc_charge_description', 'custom_charge_description' );
    function custom_charge_description() {
    	return 'la dee da';
    }

    It worked for me, when I made a payment it shows up in stripe like so: https://imgur.com/4jHmpSC

    Remember that s4wc_charge_description will only work for non-subscriptions. Subscriptions have their own filter.

    Thread Starter K B

    (@kiritb)

    Thanks – It was a silly mistake I was saving my functions file somewhere else.

    Thanks much, I’ve put this plugin into production and it seems to working just fine.

    I had a minor suggestion – Is it possible to move the credits.png into a template folder. I was hoping to use the color icons instead of the grey’d out ones and don’t want it to go away between updates.

    And finally I’m eagerly looking forward to the ability to add multiple Stripe Metadata fields and get an automatic notification from Stripe – when ever those functions are available.

    Thanks so much for making this plugin!

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    I added the images issue on github, I’ll keep you posted on the metadata stuff.

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Filter for adding metadata is now in 1.30

    Thread Starter K B

    (@kiritb)

    cool.. it seems to be working well in my test instance.

    Excellent work!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Metadata’ is closed to new replies.