Blank page on 3dsecure landing from Cardinity Redirect - 3d-secure

I have a problem with my Cardinity integration.
Im trying to get 3dsecure to work. But when I land on 3dsecure, I get blank page.
The flow is as following:
Purchase Reqeust (My page) -> Cardinity handle -> Redirect back to my page, with custom form populated with data from cardinity (is mentioned below) -> Form Post to 3dsecure -> Blank page.
Form:
<form method="POST" action="{{ $url }}" enctype="multipart/form-data" name="ThreeDForm" class="col-md-12">
<button type="submit" class="btn">Go to payment</button>
<input type="hidden" name="PaReq" value="{{ $data }}" />
<input type="hidden" name="TermUrl" value="https://custom.com/dashboard/{{ md5(Auth::user()->email) }}/3dsecure/callback" />
<input type="hidden" name="MD" value="{{ $id }}" />
</form>

There are alot of undefined variables, but my guess is that you are putting in entype, which isnt listed in their documentation. Try delete this, if you dont have a specific reason of using it.

Related

Why am i getting an error 404 when i run this code in laravel 9?

I was watching an old tutorial about laravel 7 whiles using laravel 9, i tried to create a HTML form like this.
<div class="card-body">
<form action="/upload" method="post" enctype="multipart/form-data">
#csrf
<input type="file" name="image">
<input type="submit" value="upload">
</form>
</div>
then in my route(web.php) i added a code like this
route::post('/upload', function(Request $request)
{$request->image->store('images', 'public');
return 'image uploaded succesfully';
but in my webiste it tells me page the url you requested is not found on the site serve
You've defined your route using POST meaning it will only respond to POST requests.
If you try to access /upload from a web browser, that uses a GET request which you've not defined a route for. So you want to define such a route:
Route::get('/upload', function () {
return view('upload.blade.php');
});
You'll want to replace upload.blade.php with the name of your view that has your upload form in it.
Name Your Route 1st , hit this command php artisan route:clear then try..
Change the form action action="{{ route('upload') }}"
<div class="card-body">
<form action="{{ route('upload') }}" method="post" enctype="multipart/form-data">
#csrf
<input type="file" name="image">
<input type="submit" value="upload">
</form>
</div>

MJML converts links in email clients to mjt.lu

Laravel-mix-mjml plugin converts href links. All links work fine except one link which is a form with post request. It doesn't pass the parameters. In the browser the links are not converted. How can I fix this? Thanks
<mj-text>
<form action="https://www.carsale.com/login" method="post" target="_blank">
<input type="hidden" name="customerId" value="{{ $inquiry->customer->customer_id ?? '' }}">
<input type="hidden" name="authToken" value="{{ $inquiry->customer->auth_token ?? '' }}">
<button type="submit" name="submit">Lets go</button>
</form>
Lets go
</mj-text>

laravel 7 - unable to pass input parameter to form action for searching purpose

how i can pass input value form action and replace number 5? the below works if i put numbers only, then it pass it to route then controller:
<!--Search to mysql -->
<form action="{{ route('propertyname.show', 5)}}" method="GET" role="search">
#csrf
<Label for="id">search:</Lebal>
<input type="text" id='id' name="id" placeholder="Search plzz">
<input type="hidden" name="_token" id="csrf-token" value="{{ Session::token() }}" />
<input type="submit" name="submit" value="Serach">
</form>
Route::get('/property_name/{id}','RsmsController#show')->name('propertyname.show');
the above works if I typed number 5 manually which I don't want, I want it to read\input from FORM TEXT and fired when clicking on the form button to send the value to the controller.
http://127.0.0.1:8000/property_name/5
enter image description here
You can take a look at simple jQuery on click/submit method.
$(function() {
$("#myform").submit(function(e) {
var actionUrl = "{{ url('/property_name/') }}" + $("#id").val();
$(this).attr("action", actionUrl);
});
});

Sagepay 3D Secure redirecting to acs url returns a blank page

Redirecting to the below url (with CRM webform step )is returning a blank page. Any solutions?
Thanks in Advance
https://test.sagepay.com/mpitools/accesscontroler?action=eJxVUttuwjAMfd9XVHxA04ReKDJBBbStmtiqMW17jVKPVusF0naUv18CZYw8+Rw7J/ZxYN6XhfWDqsnrajaitjOa8zt4yxTiaoOyU8hhjU0jtmjl6WzEHOr5rkvHzJ14XkiZx8YjDkn0insOgxDXOjYFcoFaQclMVC0HIfeL+Jm7IQsdB8gAoUQVr3jgMjcMqDMcIGcaKlEiXwqFy7qrZF581epDFNgAOWVAarpVRz5hPpALgE4VPGvb3ZSQw+FgS3kwd+xabe3uG4hJA7l2lnQmarRcn6c88WV9T/1sUX0+Rfu+E+OXh/6dreNFNANiKiAVLXLtR+gELLSoP6Xu1JkAOfEgStMH95zgNOcZwc48Et2k/lOgDVdYycsoFwTY7+oKdQUD8hdDio3kG7OaRBytdRLrxw0F5DrM8tGYLlvtIzV+nyKjl2uPdPdnQQOAmFoyrJIMW9fRzW/4BYe1tvY=
Expected: 3D Secure page of the respective bank should be loaded
You need to be automatically POSTing a form - not have URL variables.
`<form name="form" id="3dsecureform" action="https://test.sagepay.com/mpitools/accesscontroler?action=pareq" method="post">
<input type="hidden" name="MD" value="[MD]" />
<input type="hidden" name="PaReq" value="[PaReq]" />
<input type="hidden" name="TermUrl" value="[TermUrl]" />
<button type="submit btn btn-primary">Submit</button>
</form>`

Passing input to url with get method in form in laravel 5.1

I want to pass my search input to laravel 5.1 like this
localhost:8000/search/{searchtext}
but right now it send data with this method
localhost:8000/search?search='searchtext'
<form action="search" method="get" class="form-wrapper">
<input type="text" NAME="query" id="search" placeholder="جستجو ..." required>
{{--<input type="hidden" name="_token" value="{!! csrf_token() !!}">--}}
<input type="submit" value="بررسی" id="submit">
</form>
Can you give me a solution for it?
Change the action attribute of the form in the onSubmit event, you have to use javascript. The exact code depends if you are using a library like jQuery or plain Javascript.
Here a useful link:
Change form action based on submit button

Resources