Home Forums Plugin Support Others Paypal Adaptive Payments fees

This topic contains 8 replies, has 2 voices, and was last updated by  Teemu 4 years, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33749

    Teemu
    Member
    Post count: 8

    Hi,

    How to adjust all fees to secondary receiver, or is it all managed by paypal app?

    #33809

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #33873

    Teemu
    Member
    Post count: 8

    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.

    #33874

    Nayem
    Moderator
    Post count: 6480

    Hello Teemu,

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

    Thank you ๐Ÿ™‚

    #33877

    Teemu
    Member
    Post count: 8

    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.

    #33878

    Teemu
    Member
    Post count: 8

    Where this net_amount on dokan_orders table is calculated?

    #33879

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #33880

    Nayem
    Moderator
    Post count: 6480

    Hello Teemu,

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

    #33881

    Teemu
    Member
    Post count: 8

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

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Paypal Adaptive Payments fees’ is closed to new replies.