Skip to content

Commit

Permalink
Merge pull request #40 from QuickPay/vipps_session
Browse files Browse the repository at this point in the history
Vipps Session view
  • Loading branch information
ta authored Sep 5, 2018
2 parents 859edea + cf70c5d commit 9a1c31a
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions templates/form/vipps.liquid
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<div class="container">
<form class="form-horizontal" method="post" autocomplete="on" action="process_vipps">
<input type="hidden" name="session_id" value="{{ model.session_id }}" />
<form action="{{ model.redirect_url }}" method="GET" target="_top" class="autosubmit">
{% for field in model.params %}
<input type="hidden" name="{{ field[0] }}" value='{{ field[1] }}' />
{% endfor %}

<div class="row">
<div class="col-sm-4 col-sm-push-8 col-xs-6 col-xs-push-3">
<img src="/assets/v2/images/brands/vipps.svg" alt="Vipps" title="Vipps" style="width:100%">
</div>

<div class="col-sm-8 col-sm-pull-4 col-xs-12">
<div class="form-group">
<div class="col-xs-12">
<label for="mobile" class="control-label">{% t Mobile number %}</label>
<input type="tel" id="mobile" name="mobile" value="{{ model.mobile_number }}" class="form-control" autocomplete="tel" pattern="[0-9\s]*" inputmode="numeric">
</div>
</div>

<div class="form-group">
<div class="col-xs-12">
<button type="submit" class="btn btn-info btn">{% t Proceed %}</button>
</div>
</div>
<p>{% t When you click the button below, the Vipps payment window will open. %}</p>
<p>{% t When finished, you will be redirected back to your receipt. %}</p>
<button type="submit" class="btn btn-info btn">{% t Proceed to payment %}</button>
</div>
</div>
</div>
</form>
Expand Down

0 comments on commit 9a1c31a

Please sign in to comment.