<commit_before><% if @order.payments.last.source_type == "Spree::GopayTransaction" %>

	<% case @order.payments.last.state
	   
	   when "checkout" %>
		  
		<%= t("spree.gopay.status.checkout") %>
		   
		<form action="<%= @order.payments.last.source.gw_url %>" method="post" id="gopay-payment-button">
		  <button name="pay" type="submit"><%= t("spree.gopay.pay") %></button>
		  <script type="text/javascript" src="https://gw.sandbox.gopay.com/gp-gw/js/embed.js"></script>
		</form>

	<% when "pending" %>

		<%= t("spree.gopay.status.pending") %>

	<% when "failed" %>

		<%= t("spree.gopay.status.failed") %>
		<%= link_to t("spree.gopay.renew"), new_gopay_transaction_path(@order) %>
		
	<% when "completed" %>

		<%= t("spree.gopay.status.completed") %>
		
	<% end %>

<% end %><commit_msg>better styles in order summary detail<commit_after><% if @order.payments.last.source_type == "Spree::GopayTransaction" %>

	<% case @order.payments.last.state
	   
	   when "checkout" %>
		  
		<p><%= t("spree.gopay.status.checkout") %></p>
		   
		<form action="<%= @order.payments.last.source.gw_url %>" method="post" id="gopay-payment-button">
		  <button name="pay" type="submit"><%= t("spree.gopay.pay") %></button>
		  <script type="text/javascript" src="https://gw.sandbox.gopay.com/gp-gw/js/embed.js"></script>
		</form>

	<% when "pending" %>

		<p><%= t("spree.gopay.status.pending") %></p>

	<% when "failed" %>

		<p class="error">
      <%= t("spree.gopay.status.failed") %>
		  <%= link_to t("spree.gopay.renew"), new_gopay_transaction_path(@order) %>
		</p>
    
	<% when "completed" %>

		<p><%= t("spree.gopay.status.completed") %></p>
		
	<% end %>

<% end %>
{'fraction_non_alphanumeric': 0.23715651135005975, 'fraction_numerical': 0.0, 'mean_word_length': 3.7720797720797723, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '815684', 'n_tokens_mistral': 762, 'n_tokens_neox': 652, 'n_words': 88}