Skip to content

Commit a3ed108

Browse files
committed
Updated Paypal Service
1 parent c0c117c commit a3ed108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/Paypal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function pdt(array $input){
157157
if (strcmp ($lines[0], "SUCCESS") == 0) {
158158
for ($i = 1; $i < count ($lines); $i++) {
159159
@list ($key, $val) = explode ("=", $lines[$i]);
160-
$keys->put(urldecode($key), urldecode ($val));
160+
$keys->put(urldecode($key), urldecode($val));
161161
}
162162

163163
$item_number = $keys->get('item_number');
@@ -175,7 +175,7 @@ public function pdt(array $input){
175175
$action = 'signup';
176176
}
177177

178-
return new TransactionResult($item_number, $subscr_id, 0, $payment_status, $action, $keys->get());
178+
return new TransactionResult($item_number, $subscr_id, 0, $payment_status, $action, $keys->all());
179179
} elseif (strcmp ($lines[0], "FAIL") == 0) {
180180
throw new TransactionException("Paypal check failed");
181181
}

0 commit comments

Comments
 (0)