File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 46
46
47
47
$ shortId = $ _SESSION ['ShortId ' ] ?? null ;
48
48
if ($ shortId !== null ) {
49
- echo '<p>Please look for ShortId ' . $ shortId . ' in Unzer Insights to see the transaction.</p> ' ;
49
+ $ defaultTransactionMessage = '<p>Please look for ShortId ' . $ shortId . ' in Unzer Insights to see the transaction.</p> ' ;
50
+ $ paylaterTransactionMessage = '<p>Please use the "descriptor" to look for the transaction in the Unzer Pay Later Merchant Portal.</p> ' ;
51
+ echo preg_match ('/[\d]{4}.[\d]{4}.[\d]{4}/ ' , $ shortId ) ? $ defaultTransactionMessage : $ paylaterTransactionMessage ;
50
52
}
51
53
$ paymentId = $ _SESSION ['PaymentId ' ] ?? null ;
52
54
if ($ paymentId !== null ) {
73
75
<input type="hidden" name="payment_id" value=" ' . $ paymentId . ' ">
74
76
<div class="fields inline">
75
77
<div class="field">
76
- <button class="unzerUI primary button fluid" id="submit-button" type="submit">Charge payment. </button>
78
+ <button class="unzerUI primary button fluid" id="submit-button" type="submit">Charge payment</button>
77
79
</div>
78
80
</div>
79
81
</form> ' ;
You can’t perform that action at this time.
0 commit comments