• First, your gateway is a lifesaver, thanks so much for publishing this!

    Here’s my question, we are a small non-profit and sell merchandise and take donations through our WP Woo site, using stripe to process and your plugin to facilitate.

    However when it comes time to do the book-keeping we need a way to separate out merch money from donation money.

    Is there a way to add a meta field that would say how much of a donation was made on the order, similar to the way it passes shipping? We have two product ID’s that are donations, 19499 and 19501. After reading the stripe docs and digging in the code, I feel its possible, just sightly above my comprehension!

    I’m happy to copy/paste additional code in where it belongs in the array section of the code, but afraid I don’t understand it well enough to write the code for what I’m asking.

    Thanks so much again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    Question is if the donation product is purchased alone it would be easy to track but if other products are purchased at same time in shopping cart that needs to figured out at my end

    Regards

    Thread Starter ccoffmanlhs

    (@ccoffmanlhs)

    People typically do both at the same time :/

    My thought was is there a way to add a conditional if/then to the array?

    if product-id 19499 is found in cart, pass the metadata with title “Add Donation” and the price-in-cart?

    and have it repeat for product-id 19501 the exact same way “Make Donation” with price-in-cart?

    Thanks for your time looking at this we truly appreciate it!

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