camper/web/templates/public/payment/request.gohtml

27 lines
1.0 KiB
Plaintext

<!--
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
SPDX-License-Identifier: AGPL-3.0-only
-->
{{ define "title" -}}
{{( pgettext "Payment" "title" )}}
{{- end }}
{{ define "content" -}}
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/booking.paymentPage*/ -}}
<h2>{{( pgettext "Payment" "title" )}}</h2>
{{ with .Request -}}
<form
{{ if eq $.Environment "live" -}}
action="https://sis.redsys.es/sis/realizarPago"
{{- else -}}
action="https://sis-t.redsys.es:25443/sis/realizarPago"
{{- end }}
method="post">
<input type="hidden" name="Ds_MerchantParameters" value="{{ .MerchantParameters }}"/>
<input type="hidden" name="Ds_Signature" value="{{ .Signature }}"/>
<input type="hidden" name="Ds_SignatureVersion" value="{{ .SignatureVersion }}"/>
<button type="submit">{{( pgettext "Pay" "action" )}}</button>
</form>
{{- end }}
{{- end }}