Skip to content

Commit 94bfa57

Browse files
20200709 deployment
1 parent 32fdcef commit 94bfa57

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Gateways/PayPlanConnector.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ public function processRecurring(RecurringBuilder $builder)
158158
}
159159
}
160160

161-
foreach ($request as $key => $value) {
162-
if ($value !== 0 && empty($value)) {
163-
unset($request[$key]);
161+
if ($builder->transactionType !== TransactionType::EDIT) {
162+
foreach ($request as $key => $value) {
163+
if ($value !== 0 && empty($value)) {
164+
unset($request[$key]);
165+
}
164166
}
165167
}
166-
168+
167169
$response = $this->doTransaction(
168170
$this->mapMethod($builder->transactionType),
169171
$this->mapUrl($builder),

0 commit comments

Comments
 (0)