Popravek paypal klica

This commit is contained in:
Peter Hrvatin 2020-09-14 10:47:15 +02:00
parent dbb168b479
commit 8f99a30721

View File

@ -153,7 +153,7 @@ class UserNarocilaPaypal{
try {
// Poklicemo paypal api za ustvarjanje narocila
$paypal_response = $client->execute($request);
$paypal_response = $this->paypal_client->execute($request);
if($paypal_response->result->status != 'CREATED'){
$response['error'] = 'ERROR! Order was not created.';
@ -219,7 +219,7 @@ class UserNarocilaPaypal{
try {
// Poklicemo paypal api kjer preverimo placilo narocila
$paypal_response = $client->execute($request);
$paypal_response = $this->paypal_client->execute($request);
}
catch (HttpException $e) {
$response['error'] = $e->getMessage();