Commit 8d3f062
committed
fix: always include payment ID in card payment redirect URL
- Always add payment ID, order ID, and status to redirect URL after confirmPayment()
- Ensures verify_and_complete_order() can fetch payment and complete order
- Fixes race condition where order shows as unpaid for embedded card payments
- Matches PrestaShop's unified flow approach
Previously only included payment ID when saving payment method, causing
orders to show as "not paid" when user didn't check "save payment method"1 parent 70ca589 commit 8d3f062
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
232 | 229 | | |
233 | 230 | | |
234 | 231 | | |
| |||
0 commit comments