ok I have attempted to implement a payment fee option here:
https://bitbucket.org/dantium/satchmo/changeset/3c44501caa6b

It seems to work ok and should allow for different fees based on
contact and cart like with shipping.

There is just one field added, payment_fee, to Order

calcuate_fee() is added to the base payment processor

update_payment() is added in payment.utils and expects to get fee()
from the processor.

Any criticism would be appreciated. Please let me know if this is
worthy to be considered for the core Satchmo.

Thanks


On Mar 30, 12:43 pm, Dan <[email protected]> wrote:
> My requirements are very simple, just a set fee based on the payment
> method selected.
>
> I think the majority of cases that need a payment fee would be either
> be a set fee or percentage of total price.
>
> I guess discounts based on the order total value would be useful also
> for some people.
>
> I think that region/location maybe important in some cases.
>
> I can't see that products or shipping choice would effect a payment
> fee.
>
> I think that a lot of stores would not have need for for a payment fee
> at all, but there are some cases where it is essential, for me it's
> with Cash on Delivery payment and it's just a straight forward fee for
> each order.
>
> On Mar 30, 1:27 am, Chris Moffitt <[email protected]> wrote:
>
>
>
>
>
>
>
> > Dan,
>
> > I do think it is a good idea - it's been requested before. I think the
> > challenge gets into understanding the best set of requirements. Some
> > questions that come to mind:
> > - Do we set it by product?
> > - Does shipping choice impact it?
> > - Do you want to allow discounts?
> > - Does recipient country/location matter?
>
> > Depending on how we answer those questions, we can decide on the best
> > solution.
>
> > -Chris
>
> > On Tue, Mar 29, 2011 at 6:30 PM, Dan <[email protected]> wrote:
> > > Any ideas on how to go about adding a fee for the payment, will I need
> > > to modify a lot of the core code?
> > > I tried to take a look at it and it seems pretty complicated, any
> > > pointer would be much appreciated!
>
> > > Thanks
>
> > > On Mar 28, 9:07 pm, Dan <[email protected]> wrote:
> > > > Yeah I was thinking about that but they want 2 different payment
> > > > methods; COD and bank transfer and only the COD will have fees...
>
> > > > Does anyone know how best to implement a payment fee cleanly?
>
> > > > If I modified the core code how easy would it be?
>
> > > > Thanks
>
> > > > On Mar 28, 7:56 pm, hynekcer <[email protected]> wrote:
>
> > > > > What about include the payment fee in the shipping module and call it
> > > > > "shipping and manipulation fees"?
>
> > > > > On 28 bře, 20:21, Dan <[email protected]> wrote:
>
> > > > > > Sebastian
>
> > > > > > Thanks for that custom payment module.
>
> > > > > > As this uses a dummy product for the payment fee it's a bit 
> > > > > > confusing
> > > > > > for users, as the product cant be set to inactive and comes up in
> > > > > > search etc also the quantity can be changed and stuff.
>
> > > > > > Is there any other way to have a payment fee on this system??
>
> > > > > > Thanks very much, -Dan
>
> > > > > > On Mar 1, 4:28 pm, Sebastian Zwack <[email protected]>
> > > > > > wrote:
>
> > > > > > > I implemented payment fees using a custom payment module.
> > > > > > > The source can be found here:
> > >https://bitbucket.org/zwack/satchmo-payment-ondelivery
>
> > > > > > > This hooks in after the payment type is selected. I created a 
> > > > > > > dummy
> > > > > > > product with the slug "ondelivery-fee" which is added to the
> > > shopping
> > > > > > > cart if not present already. This "product" shows up on the 
> > > > > > > confirm
> > > > > > > page and then on the order like a normal product.
>
> > > > > > > To add the item to the cart I had a look at the original function
> > > and
> > > > > > > used what seemed appropriate. There are 2 signals which I 
> > > > > > > commented
> > > > > > > out as I'm not sure they are needed.
>
> > > > > > > On Feb 23, 7:31 pm, Sebastian Zwack <
> > > [email protected]>
> > > > > > > wrote:
>
> > > > > > > > Ok. I just had a look at the payment processor and wonder if one
> > > could
> > > > > > > > modify the order amount there.
> > > > > > > > I'll probably try that tomorrow.
>
> > > > > > > > On Feb 23, 6:51 pm, Dan <[email protected]> wrote:
>
> > > > > > > > > No not yet, I still don't really know what will be the best
> > > solution
> > > > > > > > > for this issue.
>
> > > > > > > > > Has anyone else got any ideas on how to implement payment 
> > > > > > > > > fees?
>
> > > > > > > > > On Feb 23, 5:43 pm, Sebastian Zwack <
> > > [email protected]>
> > > > > > > > > wrote:
>
> > > > > > > > > > Dan, any news on this, did you already implement it?
> > > > > > > > > > I'm also looking forCODpayment fees.
>
> > > > > > > > > > On Feb 21, 12:58 am, Dan <[email protected]> wrote:
>
> > > > > > > > > > > After looking at the Order model it seems that it will 
> > > > > > > > > > > only
> > > deal with
> > > > > > > > > > > shipping fees and not any payment fees?
>
> > > > > > > > > > > To implement payment fees would i need to subclass the
> > > Order model or
> > > > > > > > > > > is there some other solution to this?
>
> > > > > > > > > > > Thanks
>
> > > > > > > > > > > On Feb 20, 9:16 pm, Dan <[email protected]> wrote:
>
> > > > > > > > > > > > I would like to set up payment fees for theCODpayment
> > > module is this
> > > > > > > > > > > > possible?
>
> > > > > > > > > > > > Would need something like £3 for cart £0 to £99.99 and 0
> > > dollars for
> > > > > > > > > > > > £100+
>
> > > > > > > > > > > > Whats the best way to set this up, can it support fees 
> > > > > > > > > > > > in
> > > payment
> > > > > > > > > > > > modules?
>
> > > > > > > > > > > > Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Satchmo users" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/satchmo-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to