Popravek paypal klica
This commit is contained in:
parent
dbb168b479
commit
8f99a30721
@ -153,7 +153,7 @@ class UserNarocilaPaypal{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Poklicemo paypal api za ustvarjanje narocila
|
// Poklicemo paypal api za ustvarjanje narocila
|
||||||
$paypal_response = $client->execute($request);
|
$paypal_response = $this->paypal_client->execute($request);
|
||||||
|
|
||||||
if($paypal_response->result->status != 'CREATED'){
|
if($paypal_response->result->status != 'CREATED'){
|
||||||
$response['error'] = 'ERROR! Order was not created.';
|
$response['error'] = 'ERROR! Order was not created.';
|
||||||
@ -219,7 +219,7 @@ class UserNarocilaPaypal{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Poklicemo paypal api kjer preverimo placilo narocila
|
// Poklicemo paypal api kjer preverimo placilo narocila
|
||||||
$paypal_response = $client->execute($request);
|
$paypal_response = $this->paypal_client->execute($request);
|
||||||
}
|
}
|
||||||
catch (HttpException $e) {
|
catch (HttpException $e) {
|
||||||
$response['error'] = $e->getMessage();
|
$response['error'] = $e->getMessage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user