Ahmed Ejaz
2fe28d1707
Merge pull request #14101 from mkllnk/taler-currency
...
Use real currency for Taler payments unless using demo backend
2026-03-25 20:44:44 +05:00
Maikel Linke
fe0c6a4deb
Use real currency for Taler payments unless using demo backend.
2026-03-25 15:09:43 +11:00
Maikel Linke
9961578fc1
Don't offer to void a refund
2026-03-16 12:56:38 +11:00
Maikel Linke
53c2ef53d5
Call #credit with right arguments
2026-03-16 12:56:22 +11:00
Maikel Linke
7619062ad2
Revert "Move payment action logic to payment"
...
This reverts commit fdd22bc097 .
And it adds the now needed `can_credit?` method to Taler.
It's just a duplicate.
2026-03-11 11:32:08 +11:00
Maikel Linke
fb2dfed6bf
Pass amount to payment mailer
...
We now include the refunded amount in the email to the customer. When
voiding a payment, it's the full amount of the payment. When giving back
credit then it's only the money that has been paid too much.
2026-03-11 10:58:30 +11:00
Maikel Linke
cf53ac1990
Add credit action to Taler
2026-03-11 10:58:30 +11:00
Maikel Linke
fdd22bc097
Move payment action logic to payment
...
At closer inspection, almost all logic around which payment actions to
display involves only the state of the payment. So I moved the logic
there.
We now have one list of all possible actions supported by the UX. Then
payment methods can declare a list of supported actions. If that's
conditional, they can implement the conditions themselves. The payment
model itself then still filters the actions based on its state.
2026-03-11 10:58:30 +11:00
Gaetan Craig-Riou
d5dec05ab1
Remove payment method ApiCustomerCredit
2026-03-10 16:07:43 +11:00
Gaetan Craig-Riou
7790259c27
Add transaction origin for internal credit payments
2026-03-10 16:07:43 +11:00
Gaetan Craig-Riou
ec106a8f83
Add new payment method ApiCustomerCredit
...
It was previously modelled by a "Check" payment method
2026-03-10 16:07:43 +11:00
Gaetan Craig-Riou
2e7237197a
Refactor customer credit payment method
...
Set fixed name and description
2026-03-10 16:07:43 +11:00
Gaetan Craig-Riou
3b068b7125
Add created_by to customer account transactions
...
It allows tracking of who credited the customer via :
- customer account transaction API
- order payment screen
2026-03-10 16:07:43 +11:00
Gaetan Craig-Riou
d95aac333b
Add internal to payment method
...
It's used to hide the payment method used for paying with credit. These
payment method are for internal use only.
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
d5bd8fa086
Add ability to "void" a customer credit payment
...
Voiding the payment will refund the credit used to the customer.
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
5a376c9106
Add customer_credit scope
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
5bdb6e6d69
Clean up spec
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
130401263a
Add CreditPaymentMethod::Linker
...
It links the given enterprise to credit related payment method. It
will create the methods if missing.
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
29a8a6641c
Add ability to use payment with credit
...
Currently it works like any other payment method you can select on
checkout. It will eventually be added automatically to the order, when a
customer has credit available.
2026-03-10 16:07:42 +11:00
Gaetan Craig-Riou
28241756aa
Add Customer Credit payment method
...
It doesn't do anything yet
2026-03-10 16:07:42 +11:00
Maikel Linke
de873ae42c
Add void action to Taler for refunds
2026-02-20 13:43:09 +11:00
Maikel Linke
ed701b00dc
Stop storing now redundant redirect URL
...
The Taler gem now computes it from the order id. No need to store it.
2026-02-20 13:43:04 +11:00
Maikel Linke
52e2fb923e
Update Taler calls for new v0.2.0
2026-02-20 13:37:46 +11:00
Maikel Linke
c115ab7a0d
Translate Taler payment status to error message
2026-01-29 15:07:28 +11:00
Maikel Linke
b9c7925008
Complete Taler payment success scenario
2026-01-29 15:07:28 +11:00
Maikel Linke
c11b93a4dc
Demo Taler flow without validating payment yet
2026-01-29 15:07:28 +11:00
Maikel Linke
61e0688392
Demonstrate retrieving the payment Taler URL
2026-01-29 15:07:27 +11:00
Maikel Linke
b3a1d1269a
Add Taler as payment method
...
It doesn't take payments yet but can be selected during checkout.
2026-01-29 15:07:27 +11:00
David Cook
62fefd5d49
Implement required method
...
Most of the time this doesn't get called because source_required: false.
But sometimes it [does happen](https://app.bugsnag.com/yaycode/openfoodnetwork-uk/errors/66329690f4b6380007e8a4f8)
I have a feeling that source_required? could be moved to the superclass as payment_source_class.present?. But I don't know enough about this area of the system to try it...
2024-05-13 12:55:55 +01:00
cyrillefr
e1374d5837
Add Order completion after capturing event
...
- A new processing method
- Payment means that link to it
- Altering methods that handle next status choice
2023-10-29 21:58:03 +01:00
Luis Ramos
b21a969502
Fix new credit_card_spec
2020-08-07 13:45:25 +01:00
Luis Ramos
d746ae3d9e
Fix easy rubocop issues
2020-08-07 13:28:09 +01:00
Luis Ramos
621e2a3132
Run rubocop autocorrect
2020-08-07 13:16:38 +01:00
Luis Ramos
abaa66cc14
Bring models from spree_core
2020-08-07 13:06:16 +01:00