Pri placevanju s stripe dodan try/catch in izpis errorja ce vrne stripe error
This commit is contained in:
parent
46b667fc30
commit
5d64a436a3
@ -90,7 +90,13 @@ class UserNarocilaStripe{
|
||||
);
|
||||
|
||||
// Izvedemo placilo - stripe response
|
||||
try{
|
||||
$stripeResponse = $this->chargeAmountFromCard($cardDetails);
|
||||
}
|
||||
catch (Exception $e){
|
||||
$response['error'] = 'ERROR! '.$e->getMessage();
|
||||
return $response;
|
||||
}
|
||||
|
||||
// Vstavimo plačilo v bazo
|
||||
$sqlNarocilo = sisplet_query("INSERT INTO user_access_stripe_charge
|
||||
|
Loading…
x
Reference in New Issue
Block a user