Skip to content

Commit

Permalink
Fix frontend so that subscription E2E test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwok-he-Chu committed Nov 16, 2023
1 parent 1c43965 commit a65ecc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public SubscriptionResource(ApplicationProperty applicationProperty) {
log.warn("ADYEN_KEY is UNDEFINED");
throw new RuntimeException("ADYEN_KEY is UNDEFINED");
}

var client = new Client(applicationProperty.getApiKey(), Environment.TEST);
this.paymentsApi = new PaymentsApi(client);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ <h1>ADMIN PANEL</h1>
<div th:if="${not #lists.isEmpty(tokens)}">

<div th:each="token: ${tokens}">
<b>ShopperReference: <span th:text=${token.shopperReference}>shopperReference here</span></b><br/><br/>
<b>ShopperReference: <span th:text=${token.shopperReference}>shopperReference here</span></b><br/><br/>
<ul class="adminList">
<li>
PaymentMethod: <span th:text=${token.paymentMethod}>payment method here</span>
RecurringDetailReference: <span th:text=${token.recurringReference}>token here</span>
<a th:href="@{'/admin/makepayment/' + ${token.recurringReference}}">Make Payment</a> |
<a th:href="@{'/admin/disable/' + ${token.recurringReference}}">Disable</a>
PaymentMethod: <th:block th:text=${token.paymentMethod}>payment method here</th:block>
</li>
<li>
RecurringDetailReference: <th:block th:text=${token.recurringReference}>token here</th:block>
</li>
<a th:href="@{'/admin/makepayment/' + ${token.recurringReference}}">Make Payment</a> |
<a th:href="@{'/admin/disable/' + ${token.recurringReference}}">Disable</a>
</ul>
</div>
</div>
Expand Down

0 comments on commit a65ecc0

Please sign in to comment.