Skip to content

Commit 157df66

Browse files
vgarciafTortitasT
andauthored
Fix form action typo (#2)
* csrf removed, fix typo * fix form action typo Co-authored-by: Tortitas <victorgf2011@gmail.com>
1 parent ebbb247 commit 157df66

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

resources/views/payment.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
34
<head>
45
<meta charset="UTF-8">
56
<meta http-equiv="X-UA-Compatible" content="IE=edge">
67
<meta name="viewport" content="width=device-width, initial-scale=1.0">
78
<title>Descom Payment Demo</title>
89
</head>
10+
911
<body>
1012
<div class="container">
1113
<header>
@@ -29,7 +31,7 @@
2931
<h2>Seleccione el resultado de la transacción:</h2>
3032

3133
<div>
32-
<form action="POST" action="/process/payment">
34+
<form method="POST" action="/process/payment">
3335
<input type="hidden" name="transition_id" value="{{ $transactionId }}" />
3436
<input type="hidden" name="amount" value="{{ $amount }}" />
3537
<input type="submit" name="status" value="{{ $label_success }}" />
@@ -39,4 +41,5 @@
3941
</div>
4042
</div>
4143
</body>
44+
4245
</html>

src/App/AppServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Support\ServiceProvider;
88
use Omnipay\OfflineDummy\App\Http\Controllers\PaymentController;
99
use Omnipay\OfflineDummy\App\Http\Controllers\PaymentProcessController;
10+
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
1011

1112
class AppServiceProvider extends ServiceProvider
1213
{

0 commit comments

Comments
 (0)