Skip to content

Commit 50fbe2a

Browse files
committed
Updating text example subscription due date to address shorther months
1 parent 4d3a42f commit 50fbe2a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/BitPaySDK/SubscriptionClientTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ private function getBillDataExample(): Bill
9898

9999
$bill = new Bill("billData1234-ABCD", Currency::USD, "[email protected]", $items);
100100

101-
// When set to longer, we get BitPaySDK\Exceptions\BitPayApiException: Schedule with due date invalid for short months
102-
$dueDate = (new \DateTime('now'))->modify('+28 days');
101+
$dueDate = (new \DateTime('first day of next month'));
103102
$bill->setDueDate($dueDate->format('Y-m-d\TH:i:s\Z'));
104103

105104
return $bill;

0 commit comments

Comments
 (0)