Skip to content

Commit 6e417bb

Browse files
Fix boolean
1 parent 9e6dd8f commit 6e417bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/UpdateSubscriptionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getData()
100100
}
101101

102102
if ($this->parameters->has('cancel_at_period_end')) {
103-
$data['cancel_at_period_end'] = (bool)$this->getCancelAtPeriodEnd();
103+
$data['cancel_at_period_end'] = $this->getCancelAtPeriodEnd() ? 'true' : 'false';
104104
}
105105

106106
if ($this->getMetadata()) {

0 commit comments

Comments
 (0)