Skip to content

Commit 1d7803b

Browse files
committed
Add Stripe authorize/capture. Closes #56
1 parent 6d0bddf commit 1d7803b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function getCard()
134134

135135
public function setCard($value)
136136
{
137-
if (!$value instanceof CreditCard) {
137+
if ($value && !$value instanceof CreditCard) {
138138
$value = new CreditCard($value);
139139
}
140140

0 commit comments

Comments
 (0)