';
print '
';
diff --git a/htdocs/societe/class/societeaccount.class.php b/htdocs/societe/class/societeaccount.class.php
index 3fc7b225c77..a82ad69091b 100644
--- a/htdocs/societe/class/societeaccount.class.php
+++ b/htdocs/societe/class/societeaccount.class.php
@@ -320,7 +320,7 @@ class SocieteAccount extends CommonObject
* @param string $id Id of customer in external system (example: 'cu_xxxxxxxxxxxxx', ...)
* @param string $site Site (example: 'stripe', '...')
* @param int $status Status (0=test, 1=live)
- * @return string Id of third party
+ * @return int Id of third party
* @see getCustomerAccount()
*/
public function getThirdPartyID($id, $site, $status = 0)
diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php
index dd66c7607e5..d754b8d3962 100644
--- a/htdocs/stripe/class/stripe.class.php
+++ b/htdocs/stripe/class/stripe.class.php
@@ -247,6 +247,8 @@ class Stripe extends CommonObject
*/
public function getPaymentMethodStripe($paymentmethod, $key = '', $status = 0)
{
+ $stripepaymentmethod = null;
+
try {
// Force to use the correct API key
global $stripearrayofkeysbyenv;
@@ -261,6 +263,7 @@ class Stripe extends CommonObject
{
$this->error = $e->getMessage();
}
+
return $stripepaymentmethod;
}