Paypal Adaptive Payments fees

This topic contains 8 reply and 2 voices, and was last updated by Teemu 9 years, 2 months ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
January 9, 2015 at 10:03 pm 33749
Teemu Hi, How to adjust all fees to secondary receiver, or is it all managed by paypal app?
January 11, 2015 at 12:02 pm 33809
Nayem Nayem

Hello Teemu,

I am really sorry to say that i can not provide you any hints about this because i am not clear about fees method. I will suggest you to contact with PayPal to know more about this.

Thank you 🙂

January 11, 2015 at 7:21 pm 33873
Teemu Teemu

Okey, figured that out… For somebody who are looking same thing…

/dokan-paypal-adaptive-payments/classes/class-dokan-paypal-ap-gateway.php add to line 365 next

$payRequest->feesPayer = "SECONDARYONLY";

You can also use PRIMARYRECEIVER or EACHRECEIVER.

January 11, 2015 at 7:24 pm 33874
Nayem Nayem

Hello Teemu,

I am very glad to know that you have figured out by yourself.

Thank you 🙂

January 11, 2015 at 7:25 pm 33877
Teemu Teemu

But next thing… Do you have any tips to next problem. If product costs 10 dollars and shipping 10 dollars, i want take seller percentage from total, not only from product price. With my 10% percentage, i get only 1 dollar, not 2 dollar.

January 11, 2015 at 7:33 pm 33878
Teemu Teemu

Where this net_amount on dokan_orders table is calculated?

January 11, 2015 at 7:33 pm 33879
Nayem Nayem

Hello Teemu,

Actually percentage on the shipping total is illogical for that we do not have this system in our plugin. But if you want to set percentage on the shipping cost then little more of modify will require for your plugin.

Thank you 🙂

January 11, 2015 at 7:47 pm 33880
Nayem Nayem

Hello Teemu,

Please Dokan-plugin/includes/order-functions.php

January 11, 2015 at 7:49 pm 33881
Teemu Teemu

'net_amount' => ($cart_total * $percentage)/100 + ($shipping_total * $percentage)/100,
?

Viewing 8 Posts - 1 through 8 (of 8 total)