mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
PayPalExpress is always creating two payments. The first one is invalidated and the second one succeeds. Without deleting the old fee on the invalidated payment, the order lists the fee twice.
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
%orderdetails
|
|
= form_for current_order, url: "#", html: {"ng-submit" => "purchase($event, checkout)"} do |f|
|
|
%fieldset
|
|
%legend
|
|
= t :checkout_your_order
|
|
%table
|
|
%tr
|
|
%th
|
|
= t :checkout_cart_total
|
|
%td.cart-total.text-right= display_checkout_subtotal(@order)
|
|
|
|
- checkout_adjustments_for(current_order, exclude: [:shipping, :payment, :line_item]).reject{ |a| a.amount == 0 }.each do |adjustment|
|
|
%tr
|
|
%th= adjustment.label
|
|
%td.text-right= adjustment.display_amount.to_html
|
|
|
|
%tr
|
|
%th
|
|
= t :checkout_shipping_price
|
|
%td.shipping.text-right {{ Checkout.shippingPrice() | localizeCurrency }}
|
|
|
|
%tr
|
|
%th
|
|
= t :payment_method_fee
|
|
%td.text-right {{ Checkout.paymentPrice() | localizeCurrency }}
|
|
|
|
%tr
|
|
%th
|
|
= t :checkout_total_price
|
|
%td.total.text-right {{ Checkout.cartTotal() | localizeCurrency }}
|
|
|
|
//= f.submit "Purchase", class: "button", "ofn-focus" => "accordion['payment']"
|
|
%a.button.secondary{href: cart_url}
|
|
%i.ofn-i_008-caret-left
|
|
= t :checkout_back_to_cart
|