Hi there, do you know if there's any way to stop the fee from being sent to the customer through WePay? Right now, if someone buys $10 worth of something from the shop, when they get to WePay, WePay is charging THEM an additional $.50. I want the extra fee to go to me instead.

Any idea if that's possible with a change in code? Or is this just an issue with WePay?

Comments

bbujisic’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Component: User interface » Code
Assigned: Unassigned » bbujisic
Category: support » task

That is actually a great feature request! I'll have it implemented in the next commit, probably tomorrow or day after.

Thanks!

ubercarter’s picture

Hey there! I saw there had been an updated version, but didn't see any changes on the fee end, so I just wanted to post what I changed to get it to work. Just in case anyone else wants a quick-fix.

In uc_wepay.module, there's a block that looks like this:

        // Setup checkout page.
        // Checkout type is still a problem. Allowed values are: GOODS, SERVICE,
        // DONATION, and PERSONAL. For now we support only GOODS and SERVICE.
        $params = array(
          'account_id' => variable_get('uc_wepay_account_id', ''),
          'short_description' => variable_get('site_name', 'Drupal') . ' ' . t('checkout'),
          'type' => $type,
          'amount' => $arg1->order_total,
          'callback_uri' => $base_url . base_path() . 'uc_wepay/ipn',
        );

Just add "'fee_payer' => 'payee'," into the array.

I needed this permanently switched to "payee", so this works out for me, but I'm sure you could easily add in a drop-down box or something for others. :)

bbujisic’s picture

Status: Active » Needs review

Now there is a nice set of radio buttons in payment method settings page. Take a look at the dev release. I've tested it in staging environment but would appreciate experiences from production.

Cheers!

bbujisic’s picture

Status: Needs review » Closed (fixed)

Committed in version 6.x-1.1