Skip to content

Commit

Permalink
Add mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sohrabafard authored Dec 17, 2019
1 parent 6e418b9 commit 8983ec0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/BehpardakhtGateWay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 8983ec0

Please sign in to comment.