karser/PayumSaferpay

SyncAction: token field invalid

Closed this issue · 1 comments

The sync action tries to access a non existing token field:

// Action/SyncAction.php
if ($details->offsetExists('token')) {
    $this->gateway->execute(new AssertPaymentPage($details));
}

Must be:

// Action/SyncAction.php
if ($details->offsetExists('Token')) { // Token instead of token (first letter uppercase)
    $this->gateway->execute(new AssertPaymentPage($details));
}

Can you please make a PR?