tosspayments2-rails 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7250fcd0896cac23207aea6c52ce3492cb97d12e96967c3f9c2d7bc4139095a5
|
4
|
+
data.tar.gz: cff3e8488d66b1fec090a45816bdeb62c6681e78b26736c2af2cd6d16d37179a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3a35483524c9550b34b061149c6a9513a9d6294a9d0decd01aff48af1370d37a7c87a45e0fc0b30b63c3b39278745d6a719d3c80396f3c4eadb3b23ca04c5f2
|
7
|
+
data.tar.gz: 264fdfd4734d437524cfa67644b5943a5b8b9b344e6597794753dcb923308df0866dec7453fbc138c82f55829a4de53cac332de5f6ea64b765bda65f8d9a3c03
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
_No changes yet._
|
4
4
|
|
5
|
+
## [0.5.2] - 2025-08-21
|
6
|
+
### Fixed
|
7
|
+
- Fix NoMethodError in checkout.html.erb template when @payment is nil
|
8
|
+
- Add proper nil handling and error messages for missing payment in checkout flow
|
9
|
+
|
5
10
|
## [0.5.1] - 2025-08-21
|
6
11
|
### Fixed
|
7
12
|
- Fix NoMethodError in show.html.erb template when @payment is nil
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<h1>결제 진행</h1>
|
2
2
|
|
3
|
+
<% if @payment %>
|
3
4
|
<div class="payment-info">
|
4
5
|
<h3>결제 정보</h3>
|
5
6
|
<p><strong>주문번호:</strong> <%= @payment.order_id %></p>
|
@@ -64,6 +65,15 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|
64
65
|
});
|
65
66
|
</script>
|
66
67
|
|
68
|
+
<% else %>
|
69
|
+
<div class="alert alert-danger">
|
70
|
+
결제 정보를 찾을 수 없습니다.
|
71
|
+
</div>
|
72
|
+
<div class="actions">
|
73
|
+
<%= link_to '목록으로', payments_path, class: 'btn btn-secondary' %>
|
74
|
+
</div>
|
75
|
+
<% end %>
|
76
|
+
|
67
77
|
<style>
|
68
78
|
.payment-info {
|
69
79
|
background-color: #f8f9fa;
|
@@ -112,4 +122,27 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|
112
122
|
background-color: #0056b3;
|
113
123
|
border-color: #004085;
|
114
124
|
}
|
125
|
+
|
126
|
+
.btn-secondary {
|
127
|
+
color: #fff;
|
128
|
+
background-color: #6c757d;
|
129
|
+
border-color: #6c757d;
|
130
|
+
}
|
131
|
+
|
132
|
+
.alert {
|
133
|
+
padding: 0.75rem 1.25rem;
|
134
|
+
margin-bottom: 1rem;
|
135
|
+
border: 1px solid transparent;
|
136
|
+
border-radius: 0.25rem;
|
137
|
+
}
|
138
|
+
|
139
|
+
.alert-danger {
|
140
|
+
color: #721c24;
|
141
|
+
background-color: #f8d7da;
|
142
|
+
border-color: #f5c6cb;
|
143
|
+
}
|
144
|
+
|
145
|
+
.actions {
|
146
|
+
margin-top: 2rem;
|
147
|
+
}
|
115
148
|
</style>
|