openfoodfoundation / wishlist

This repository welcomes ideas and suggestions to improve the OFN software.
3 stars 0 forks source link

Enable debits on cards stored with OFN enterprises #82

Open RachL opened 3 years ago

RachL commented 3 years ago

What is the need / problem?

Customers can pay for orders using a credit card (via stripe). The shop manager can fully or partially process a payment (refund) to the customer’s card (if the customer paid by card). But, if the order was adjusted so there is a balance owing, the shop manager cannot debit the card for the outstanding balance.

If a customer pays by credit, and then after adjustments there is an amount owing, the shop manager must call the customer to take their credit card credentials over the phone. The orders management process is already time consuming, and this just makes it even more inefficient.

Which type of users does this problem affect (and how many, if known)?

- Shoppers - Hub Managers (MCFEs)

Potential solutions that will solve the problem ?[[brainstorming to list feature candidates]

Where a customer has paid by credit card, and/or left a card on file with OFN, a new payment could be processed by the hub manager to the stored card. Permissions is an issue - perhaps we make it clear when someone leaves a card with OFN, that outstanding balances will be debited to their card. Maybe there is first an email that is triggered to inform them and give them a chance to prevent the transaction?

Connected wishlist and discovery discussions* [list precedent discussions]

https://community.openfoodnetwork.org/t/enable-debits-on-cards-stored-with-ofn-enterprises/1900

Additional context

Is Papercut or feature candidate?

Feature !

tschumilas commented 2 years ago

Just a note about the question of 'permissions' raised above and what a customer is authorizing -- today, if a customer saves a card to an OFN shop, the shop manager can debit that saved card on their (the enterprise's) dashboard. That payment, when done on the stripe dashboard, does not accrue automatically on the OFN platform - and so the manager has to register the payment manually on the OFN order. BUT - my point here is that - whether they know or not - when a customer saves their card to an OFN store today, the hub manager already is able to hit that card for any amount they wish (not just the outstanding amount on an order). (And therefore, super-admin can hit any card saved to any shop on the instance for any amount, without the customer re-authorizing (assuming within the card's limit)).

I guess I'm saying - this issue is really just 'completing' or following through on what already exists in Stripe - and making it so those payments are automatically accrued on the OFN order.