Skip to content

Commit 492fdb8

Browse files
Fix boolean
1 parent 6e417bb commit 492fdb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Message/CancelSubscriptionRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function getData()
4040
$this->validate('subscriptionReference');
4141

4242
if ($this->parameters->has('invoice_now')) {
43-
$data['invoice_now'] = (bool)$this->getParameter('invoice_now');
43+
$data['invoice_now'] = $this->getParameter('invoice_now') ? 'true' : 'false';
4444
}
4545

4646
if ($this->parameters->has('prorate')) {
47-
$data['prorate'] = (bool)$this->getParameter('prorate');
47+
$data['prorate'] = $this->getParameter('prorate') ? 'true' : 'false';
4848
}
4949

5050
return array();

0 commit comments

Comments
 (0)