Skip to content

Commit

Permalink
Add billing address fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dnna committed Sep 13, 2019
1 parent 96bb35c commit d7ca1a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Action/Api/CreateChargeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ public function execute($request): void
$mappedModel[$k] = $v;
}
}
if (isset($model['billState'])) {
unset($mappedModel['billState']);
$mappedModel['billState'] = $model['billState'];
}
if (isset($model['billZip'])) {
unset($mappedModel['billZip']);
$mappedModel['billZip'] = $model['billZip'];
}
if (isset($model['billCity'])) {
unset($mappedModel['billCity']);
$mappedModel['billCity'] = $model['billCity'];
}
if (isset($model['billAddress'])) {
unset($mappedModel['billAddress']);
$mappedModel['billAddress'] = $model['billAddress'];
}
$mappedModel['confirmUrl'] = $request->getToken()->getTargetUrl();
$mappedModel['cancelUrl'] = $request->getToken()->getTargetUrl();
if (isset($model['extTokenOptions'])) {
Expand Down

0 comments on commit d7ca1a8

Please sign in to comment.