rvola / woo-stripe-fee-in-report

Shows Stripe fees in WooCommerce charts. Calculates a correct net total.
https://wordpress.org/plugins/woo-stripe-fee-in-report/
GNU General Public License v3.0
7 stars 1 forks source link

Very useful, support for PayPal? #3

Open commandantp opened 5 years ago

commandantp commented 5 years ago

Hi! Super useful plugin, thanks a lot!! Is there by any chance a way to show the fees for PayPal as well? Can you pull them as easily?

Thank you so much for your work!

rvola commented 5 years ago

Hello @commandantp With the current code no. This is Stripe's own and will just search for Stripe account information.

It would be possible in the future to make it evolve to take into account PayPal, however there is a multitude of gateway PayPal.

Similarly the name of the plugin such as, should not exist anymore.

What PayPal gateway are you talking about?

commandantp commented 5 years ago

Hi @rvola ! Yes agreed, I was suggesting for maybe a new extended plugin version.

The two gateways I personally use are PayPal Checkout and PayPal Standard. I know PayPal is a bit all over the place with their API...

Gotta be honest I've been looking everywhere for an easy way to get reports that show not only sales but also payment fees and haven't found a single one yet. Your plugin saved me on the Stripe side. Still have to pull in manually the ones from PayPal though.

Not sure why WooCommerce would not record that information with each sale?

Thanks for the great work 👍

rvola commented 5 years ago

Ok, thank you for your feedback and your nice comment. Feel free to give me a good note on the plugin plug on WordPress. https://wordpress.org/support/plugin/woo-stripe-fee-in-report/reviews/

I'll watch this soon.

commandantp commented 5 years ago

Done! :) For PayPal the transaction_fee object is the one we want to grab. Seems like it's the same API for standard or checkout docs? https://developer.paypal.com/docs/api/payments/v1/#payment_list

rvola commented 5 years ago

thank you

asuh commented 5 years ago

I will second this request for Paypal fees + Stripe fees in Reports! It's a great idea for a nice plugin, thanks @rvola.

rvola commented 5 years ago

Hello everyone

I take good note of your remarks and requests. I will try to take care of it quickly (I have a lot of work right now)

@Traxstar What do you mean by "jsee in the chart, which amount of money is your total win!" ? This is already the case with the calculation for Stripe

rvola commented 5 years ago

in the order listing or in the chart?

rvola commented 5 years ago

I am sorry but I can not understand. Currently when you have an order the net total is already the total of sales - Stripe commission and delivery etc ...

rvola commented 5 years ago

yes I am sure

Capture d’écran 2019-07-23 à 18 16 14 Capture d’écran 2019-07-23 à 18 15 20
rvola commented 5 years ago

You must update the Stripe Gateway extension. I just do a PR for that https://github.com/woocommerce/woocommerce-gateway-stripe/commit/4423b1db436903c4b9e0e7718007ae6ff61dff14

rvola commented 5 years ago

no idea why this is not displayed. Report the bug on the extension. ¯ \ (ツ) / ¯

rvola commented 5 years ago

yes I will work there!

rvola commented 5 years ago

Hello @Traxstar

The extension only reads a value stored in BDD after Stripe calls. It does not handle Stripe calls. If you have a problem with the Stripe calls, I suggest you check your configuration (webhook among others) and contact the plugin service if the error is displayed again.

rvola commented 5 years ago

Hello I investigated to do the integration of Paypal. I think we need :

So I'm waiting for a beta from Woocommerce Admin