We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f4c07 commit 3e976b8Copy full SHA for 3e976b8
Helper/Ratepay.php
@@ -215,6 +215,10 @@ public function refreshProfiles($sMethodCode)
215
$aShopIds = $this->getRatepayShopConfigByPaymentMethod($sMethodCode);
216
foreach ($aShopIds as $aConfig) {
217
$aResult = $this->profile->sendRequest($aConfig['shop_id'], $aConfig['currency'], $sMode);
218
+ if (!isset($aResult['status']) || $aResult['status'] != 'OK') {
219
+ throw new \Exception("An error occured".(!empty($aResult['errormessage']) ? ": ".$aResult['errormessage'] : ""));
220
+ }
221
+
222
$this->profileResource->updateProfileConfig($aConfig['shop_id'], $aResult);
223
}
224
0 commit comments