Popravek stripe placil - customer email in popravek potrditve narocila
This commit is contained in:
parent
fb60069221
commit
61fbc1aec3
@ -101,6 +101,8 @@ class UserNarocilaStripe{
|
|||||||
'payment_method_types' => ['card'],
|
'payment_method_types' => ['card'],
|
||||||
'mode' => 'payment',
|
'mode' => 'payment',
|
||||||
|
|
||||||
|
'customer_email' => $this->narocilo['email'],
|
||||||
|
|
||||||
'line_items' => [
|
'line_items' => [
|
||||||
[
|
[
|
||||||
'price_data' => array(
|
'price_data' => array(
|
||||||
@ -193,7 +195,7 @@ class UserNarocilaStripe{
|
|||||||
|
|
||||||
$sqlNarocilo = sisplet_query("UPDATE user_access_stripe_charge
|
$sqlNarocilo = sisplet_query("UPDATE user_access_stripe_charge
|
||||||
SET status='PAID'
|
SET status='PAID'
|
||||||
WHERE transaction_id='".$paypal_response->result->id."'
|
WHERE session_id='".$paypal_response->result->id."'
|
||||||
");
|
");
|
||||||
if (!$sqlNarocilo){
|
if (!$sqlNarocilo){
|
||||||
$response['error'] = 'ERROR! '.mysqli_error($GLOBALS['connect_db']);
|
$response['error'] = 'ERROR! '.mysqli_error($GLOBALS['connect_db']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user