PayPal: Fix backwards compatibility

This commit is contained in:
Raphael Michel
2019-01-02 09:20:35 +01:00
parent eb85fa956e
commit 2d8b3d1c79

View File

@@ -124,7 +124,7 @@ class Paypal(BasePaymentProvider):
)
def init_api(self):
if self.settings.connect_client_id:
if self.settings.connect_client_id and not self.settings.secret:
paypalrestsdk.set_config(
mode="sandbox" if "sandbox" in self.settings.connect_endpoint else 'live',
client_id=self.settings.connect_client_id,