Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Message/RapidDirectPurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ public function getData()
$data['Method'] = 'ProcessPayment';
}

if (isset($data['Customer']['TokenCustomerID'])) {
// If we are paying using token, remove the card details
// otherwise the displayed data will be overwritten on eWay dashboard
unset($data['Customer']['CardDetails']);
}

return $data;
}

Expand Down