Files
openfoodnetwork/app/views/spree/users/_transactions.html.haml
Ahmed Ejaz 626b802ea7 add redirect_auth_url column and replace cvv_response_message for redirection
- Added redirect_auth_url column to spree_payments table
- Updated payment redirection logic to use redirect_auth_url instead of cvv_response_message
- Cleans up old monkeypatch usage and improves Stripe checkout reliability
2025-09-22 11:54:20 +05:00

35 lines
1.5 KiB
Plaintext

%script{ type: "text/ng-template", id: "account/transactions.html" }
- if @payments_requiring_action.present?
.active_table.requiring-authorization
%h3= t(".authorisation_required")
%table.full.top-rounded
%tr
%th= t :transaction
%th= t :transaction_date
%th.show-for-large-up= t :payment_state
%th.text-right= t :value
%tbody
- @payments_requiring_action.each do |payment|
%tr
%td
= link_to payment.order.number, main_app.order_path(payment.order)
%td
= payment.updated_at.strftime("%Y-%m-%d")
%td
%a{ href: "#{payment.redirect_auth_url}" }
%button.x-small
= t(".authorise")
%td.text-right
= payment.display_amount
.active_table.orders{"ng-controller" => "OrdersCtrl", "ng-cloak" => true}
%h3.my-orders= t(".transaction_history")
%distributor.active_table_node.row.animate-repeat{"ng-if" => "Orders.shops.length > 0", "ng-repeat" => "shop in Orders.shops",
"ng-controller" => "ShopNodeCtrl",
"ng-class" => "{'closed' : !open(), 'open' : open(), 'inactive' : !shop.active}",
id: "{{shop.hash}}"}
.small-12.columns
= render partial: "spree/users/skinny"
= render partial: "spree/users/fat"
.message{"ng-if" => "Orders.shops.length == 0", "ng-bind" => "::'you_have_no_orders_yet' | t"}