From a879efb678ef370a2aa7db6a98c89de78c87f569 Mon Sep 17 00:00:00 2001 From: Cyril Date: Thu, 31 Dec 2015 01:46:41 -0600 Subject: [PATCH] Add holder and account to PayPal response --- lib/Paymill/Services/ResponseHandler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Paymill/Services/ResponseHandler.php b/lib/Paymill/Services/ResponseHandler.php index 2d60e1f..0b39dcd 100644 --- a/lib/Paymill/Services/ResponseHandler.php +++ b/lib/Paymill/Services/ResponseHandler.php @@ -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']);