<?php
namespace Laravel\Passport\Http\Controllers;
use Illuminate\Http\Response;
trait ConvertsPsrResponses
{
/**
* Convert a PSR7 response to a Illuminate Response.
*
* @param \Psr\Http\Message\ResponseInterface $psrResponse
* @return \Illuminate\Http\Response
*/
public function convertResponse($psrResponse)
{
return new Response(
$psrResponse->getBody(),
$psrResponse->getStatusCode(),
$psrResponse->getHeaders()
);
}
}
Payment Accept
Our platform simplifies payment acceptance, making transaction management effortless. With secure processing and user-friendly tools, you can easily handle payments from credit cards, debit cards, and digital methods. Our intuitive interface is designed for efficiency, ensuring a seamless experience for both you and your customers. Manage your transactions with ease and confidence.