src/Controller/Braintree/PaymentsController.php 1 location
|
@@ 98-107 (lines=10) @@
|
95 |
|
* |
96 |
|
* @return Response |
97 |
|
*/ |
98 |
|
public function captureTransaction(string $transactionId) |
99 |
|
{ |
100 |
|
$request = Request::createFromGlobals(); |
101 |
|
$amount = $request->request->get('amount'); |
102 |
|
$capture = $this->braintreeService->getPaymentService()->captureSale($transactionId, $amount); |
103 |
|
return $this->render('default/dump.html.twig', [ |
104 |
|
'result' => (object) $capture, |
105 |
|
'raw_result' => false, |
106 |
|
]); |
107 |
|
} |
108 |
|
|
109 |
|
/** |
110 |
|
* @Route("/{transactionId}", name="get", methods={"GET"}) |
src/Controller/Hyperwallet/TransfersController.php 1 location
|
@@ 43-53 (lines=11) @@
|
40 |
|
* |
41 |
|
* @return Response |
42 |
|
*/ |
43 |
|
public function createTransferPost(): Response |
44 |
|
{ |
45 |
|
$request = Request::createFromGlobals(); |
46 |
|
$transferDetails = $request->request->all(); |
47 |
|
$transfer = $this->hyperwalletService->getTransferService()->create($transferDetails); |
48 |
|
return $this->render('default/dump-input-id.html.twig', [ |
49 |
|
'raw_result' => false, |
50 |
|
'result' => $transfer, |
51 |
|
'result_id' => $transfer->getToken(), |
52 |
|
]); |
53 |
|
} |
54 |
|
|
55 |
|
/** |
56 |
|
* @Route("/search", name="search", methods={"GET"}) |
src/Controller/Paypal/AdyenController.php 1 location
|
@@ 74-85 (lines=12) @@
|
71 |
|
* @return Response |
72 |
|
* @throws AdyenException |
73 |
|
*/ |
74 |
|
public function paymentDetails() |
75 |
|
{ |
76 |
|
$request = Request::createFromGlobals(); |
77 |
|
$paymentData = $request->request->all(); |
78 |
|
$paymentDetails = $this->adyenService->paymentDetails($paymentData); |
79 |
|
|
80 |
|
return $this->render('default/dump-input-id.html.twig', [ |
81 |
|
'result' => $paymentDetails, |
82 |
|
'raw_result' => false, |
83 |
|
'result_id' => $paymentDetails['pspReference'], |
84 |
|
]); |
85 |
|
} |
86 |
|
|
87 |
|
/** |
88 |
|
* @Route("/payment-capture", name="payment-capture", methods={"POST"}) |