From 8983ec0c22f6fb5f92f6918f4546d995953150e2 Mon Sep 17 00:00:00 2001 From: sohrabafard Date: Tue, 17 Dec 2019 10:52:52 +0330 Subject: [PATCH] Add mobile --- src/BehpardakhtGateWay.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BehpardakhtGateWay.php b/src/BehpardakhtGateWay.php index 0b2b3b1..efe609b 100644 --- a/src/BehpardakhtGateWay.php +++ b/src/BehpardakhtGateWay.php @@ -41,12 +41,16 @@ public function generateAuthorityCode(string $callbackUrl, IranianCurrency $cost return $response[1]; } - public function generatePaymentPageUriObject($refId): RedirectData + public function generatePaymentPageUriObject($refId , $mobile): RedirectData { $serverUrl = 'https://bpm.shaparak.ir/pgwchannel/startpay.mellat'; $data = [ ['name' => 'RefId', 'value' => $refId,] ]; + + if(isset($mobile)){ + $data[] = ['name' => 'MobileNo' , 'value' => $mobile] ; + } return RedirectData::instance($serverUrl, $data, 'POST'); }