Some More Key Changed For Understanding
This commit is contained in:
parent
b3bc0efa39
commit
1ef31deeb1
|
|
@ -898,7 +898,7 @@ class Cart
|
|||
}
|
||||
|
||||
if ($finalData['payment']['method'] === 'paypal_smart_button') {
|
||||
$finalData['payment']['additional'] = request()->get('data');
|
||||
$finalData['payment']['additional'] = request()->get('orderData');
|
||||
}
|
||||
|
||||
return $finalData;
|
||||
|
|
|
|||
|
|
@ -72,8 +72,7 @@ class SmartButtonController extends Controller
|
|||
*/
|
||||
public function captureOrder()
|
||||
{
|
||||
$orderCreationData = request()->get('data');
|
||||
$request = new OrdersCaptureRequest($orderCreationData['orderID']);
|
||||
$request = new OrdersCaptureRequest(request()->input('orderData.orderID'));
|
||||
$request->prefer('return=representation');
|
||||
$this->smartButtonClient->execute($request);
|
||||
return $this->saveOrder();
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@
|
|||
app.showLoader();
|
||||
|
||||
window.axios.post("{{ route('paypal.smart-button.capture-order') }}", {
|
||||
'_token': "{{ csrf_token() }}",
|
||||
'data' : data
|
||||
_token: "{{ csrf_token() }}",
|
||||
orderData: data
|
||||
})
|
||||
.then(function(response) {
|
||||
if (response.data.success) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue