Skip to content

Commit 9f3a96c

Browse files
committed
UMCS-383(change) UPL example: Adjust text regarding transaction reference on success page if paylater type is used.
1 parent c16d58a commit 9f3a96c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/Success.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646

4747
$shortId = $_SESSION['ShortId'] ?? null;
4848
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;
5052
}
5153
$paymentId = $_SESSION['PaymentId'] ?? null;
5254
if ($paymentId !== null) {
@@ -73,7 +75,7 @@
7375
<input type="hidden" name="payment_id" value="' . $paymentId . ' ">
7476
<div class="fields inline">
7577
<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>
7779
</div>
7880
</div>
7981
</form>';

0 commit comments

Comments
 (0)