From eda41b96caa5eccd090ac523298edfb50b0d3cbf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 May 2024 11:29:53 +0200 Subject: [PATCH] Clean code --- htdocs/stripe/class/stripe.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index 6bdf7a861f0..46376458198 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -63,9 +63,9 @@ class Stripe extends CommonObject /** * @var string + * @deprecated Was used by createPaymentStripe only that is deprecated */ - // @phan-suppress-next-line - public $status; + public $result; /** * @var string @@ -1357,7 +1357,7 @@ class Stripe extends CommonObject if (isset($charge->id)) { } - $return->status = 'success'; + $return->result = 'success'; $return->id = $charge->id; if (preg_match('/pm_/i', $source)) { @@ -1381,7 +1381,7 @@ class Stripe extends CommonObject $body = $e->getJsonBody(); $err = $body['error']; - $return->status = 'error'; + $return->result = 'error'; $return->id = $err['charge']; $return->type = $err['type']; $return->code = $err['code'];