question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Payment method calculators (extra fees per payment method)

See original GitHub issue

Is your feature request related to a problem? Please describe. I would like to be able to add extra collection fee for “Payment” that would be listed in Order (for invoicing) and eligiblePaymentMethods payload.

Describe the solution you’d like Extending the payment handler with paymentCalculators that would allow calculate and add extra fees per payment method based on order contents and shipping methods. This paymentCalculator should also hold “name” of that fee. When user selects an payment that has a “price” (e.g. collection fee for “cash-on-delivery”, additional fee for more expensive payment service e.g. paypay…) this price would be added to array of paymentFees: {total: number, name: string}[] to the order so it can be listed and present in order confirmation and usable for invoicing. Any calculated fees by the paymentCalculators should also be present in payload when using new “eligiblePaymentMethods” call: New eligiblePaymentMethods method + checking methods to payment handlers #469

Describe alternatives you’ve considered Incresing of the total amount of order by the collection fee - this results in confusion and “hidden” addition to the order.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chladogcommented, Oct 7, 2020

The solution you describe would be also handy for the other direction - to be able to easily apply general discounts that are not “promotions” (e.g. after personal communication between seller and customer, the seller would be able to apply discount to order via admin ui).

1reaction
michaelbromleycommented, Oct 7, 2020

I’ve been thinking about a more general solution that would cover this - the idea of “surcharges”. These are non-SKU costs that might be added to an order and need to be itemized - extra payment fees being a good example. Other examples:

  • extended warranty
  • gift wrap service

Implementation-wise, these could use the existing “Adjustments” concept to store the data, which allow an amount and a description to be stored for each adjustment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Additional Payment Calculator - Bankrate.com
Use this additional payment calculator to determine the payment or loan amount for different payment frequencies. Make payments weekly, biweekly, semimonthly, ...
Read more >
Extra Payment Mortgage Calculator: Making Additional Home ...
This calculator allows you to enter an initial lump-sum extra payment along with extra monthly payments which coincide with your regular monthly payments....
Read more >
Payment Calculator
Free payment calculator to find monthly payment amount or time period to pay off a loan using a fixed term or a fixed...
Read more >
Square Payments Fee Calculator - Understand Our Rates Better
Calculate your rate with Square. Square payment fees are simple and transparent — you'll never pay hidden or additional fees. Plus, get free...
Read more >
Lump Sum Extra Payment Calculator - Student Loan Hero
Wondering how much you'll have by making an extra payment on your loans? Check out our Lump Sum Extra Payment Calculator to estimate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found