We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e15ff7 commit bb99deaCopy full SHA for bb99dea
1 file changed
www/src/CPGraphQlTypes/Customer.php
@@ -72,6 +72,11 @@ public function __construct(array $options)
72
new DateTime($options['planRenewalDate']) : null;
73
$this->next_wpt_plan_id = $options['nextWptPlanId'] ?? null;
74
$this->address = null;
75
+
76
+ if (!isset($options['creditCardBillingState']) && strlen(trim($options['creditCardBillingState'])) == 0) {
77
+ $options['creditCardBillingState'] = $options['creditCardBillingCountry'];
78
+ }
79
80
if (
81
isset($options['creditCardBillingCountry']) &&
82
isset($options['creditCardBillingZip']) &&
0 commit comments