Closed Sebastix closed 2 years ago
In a production environment I encounterd the same issue with a null value in the billing_contract
value as I'm having a Bunq business account.
Is this issue related to this SDK or the Bunq API?
@Sebastix have you had any response whatsoever on this issue that still exists? I manually had to remove the node billing_contract
to make bunq working again in the production environment.
@RoodFruit No I haven't got any feedback on this issue unfortunately.
@Sebastix Run this before you save the ApiContext after you do restore:
$fileName = 'bunq-production.json';
$filePath = base_path($fileName);
$json = file_get_contents($filePath);
$arr = json_decode($json, true);
if (isset($arr['session_context']['userCompany']['billing_contract'])) {
unset($arr['session_context']['userCompany']['billing_contract']);
file_put_contents($filePath, json_encode($arr, JSON_PRETTY_PRINT));
}
Bunq fixed the issue in 1.14.2.
@RoodFruit Thanks for the notification, I'll upgrade the package asap! I'll close this issue for now.
Steps to reproduce:
billing_contract
containts a null value and the applications returns an ExceptionWhat should happen:
billing_contract
of UserCompany instead of a null valueWhat happens:
When I look in the bunq.conf file I see this invalid JSON:
Traceback
SDK version and environment