We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833fb82 commit 25bf443Copy full SHA for 25bf443
src/Model/Response/PaymentTransaction.php
@@ -79,8 +79,8 @@ public static function createFromResponse(array $data): self
79
empty($data['billing']) ? null : PaymentTransactionAddress::createFromResponse($data['billing']),
80
empty($data['shipping']) ? null : PaymentTransactionAddress::createFromResponse($data['shipping']),
81
$cartItems,
82
- new \DateTimeImmutable($data['paid_at']),
83
- new \DateTimeImmutable($data['expires_at']),
+ empty($data['paid_at']) ? null : new \DateTimeImmutable($data['paid_at']),
+ empty($data['expires_at']) ? null : new \DateTimeImmutable($data['expires_at']),
84
new \DateTimeImmutable($data['created_at']),
85
new \DateTimeImmutable($data['updated_at']),
86
);
0 commit comments