Skip to content

Commit

Permalink
Merge pull request #117 from cyrrill/patch-1
Browse files Browse the repository at this point in the history
Add holder and account to PayPal response. Thanks @cyrrill
  • Loading branch information
mschindler83 committed Mar 22, 2016
2 parents 36da8c0 + a879efb commit 28b7de8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Paymill/Services/ResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,15 @@ private function _createPayment($response)
$model->setExpireYear($response['expire_year']);
$model->setCardHolder($response['card_holder']);
$model->setLastFour($response['last4']);
} else if ($response['type'] === "debit") {
} elseif ($response['type'] === "debit") {
$model->setHolder($response['holder']);
$model->setCode($response['code']);
$model->setAccount($response['account']);
$model->setBic($response['bic']);
$model->setIban($response['iban']);
} elseif ($response['type'] === "paypal") {
$model->setHolder($response['holder']);
$model->setAccount($response['account']);
}
$model->setCreatedAt($response['created_at']);
$model->setUpdatedAt($response['updated_at']);
Expand Down

0 comments on commit 28b7de8

Please sign in to comment.