Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 29, 2024
1 parent d11bf80 commit c0f8b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/sellyoursaasutils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1389,11 +1389,11 @@ public function doTakePaymentStripeForThirdparty($service, $servicestatus, $thir
$paymentintent = $stripe->getPaymentIntent($amounttopay, $currency, $FULLTAG, $description, $invoice, $customer->id, $stripeacc, $servicestatus, 0, 'automatic', $confirmnow, $stripecard->id, 1);

$charge = new stdClass();
if ($paymentintent->status === 'succeeded' || $paymentintent->status === 'processing') {
if (!empty($paymentintent->status) && $paymentintent->status === 'succeeded' || $paymentintent->status === 'processing') {
$charge->status = 'ok';
$charge->id = $paymentintent->id;
$charge->customer = $customer->id;
} elseif ($paymentintent->status === 'requires_action') {
} elseif (!empty($paymentintent->status) && $paymentintent->status === 'requires_action') {
//paymentintent->status may be => 'requires_action' (no error in such a case)
dol_syslog("paymentintent = ".var_export($paymentintent, true), LOG_DEBUG);

Expand Down

0 comments on commit c0f8b9e

Please sign in to comment.