diff --git a/src/Resources/views/storefront/component/line-item/type/product.html.twig b/src/Resources/views/storefront/component/line-item/type/product.html.twig
index 7a0dd8f97..db344da60 100644
--- a/src/Resources/views/storefront/component/line-item/type/product.html.twig
+++ b/src/Resources/views/storefront/component/line-item/type/product.html.twig
@@ -8,4 +8,14 @@
{{ lineItem.extensions.mollieSubscription.translatedInterval }}
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
+
+{% block component_line_item_type_product_number %}
+ {{ parent() }}
+ {% if lineItem.extensions.mollieSubscription.isSubscriptionProduct %}
+
+ {{ lineItem.extensions.mollieSubscription.translatedInterval }}
+
+ {% endif %}
+{% endblock %}
+
diff --git a/src/Resources/views/storefront/component/payment/payment-method.html.twig b/src/Resources/views/storefront/component/payment/payment-method.html.twig
index af3746b8b..cc2b689dc 100644
--- a/src/Resources/views/storefront/component/payment/payment-method.html.twig
+++ b/src/Resources/views/storefront/component/payment/payment-method.html.twig
@@ -12,6 +12,8 @@
{% block component_payment_method_description %}
+
+
{% if "MolliePayments" in payment.handlerIdentifier and page.extensions.MollieTestModePageExtension.testMode == true %}
{{ payment.translated.name }} ({{ "molliePayments.testMode.label"|trans }})
diff --git a/tests/Cypress/cypress/support/repositories/admin/subscriptions/SubscriptionDetailsRepository.js b/tests/Cypress/cypress/support/repositories/admin/subscriptions/SubscriptionDetailsRepository.js
index 5a65331e8..0efb796fa 100644
--- a/tests/Cypress/cypress/support/repositories/admin/subscriptions/SubscriptionDetailsRepository.js
+++ b/tests/Cypress/cypress/support/repositories/admin/subscriptions/SubscriptionDetailsRepository.js
@@ -1,35 +1,35 @@
export default class SubscriptionDetailsRepository {
getMollieCustomerIdField() {
- return cy.get('#sw-field--subscription-mollieCustomerId');
+ return cy.get('.cy-subscription-customer-id input');
}
getCreatedAtField() {
- return cy.get('#sw-field--formattedCreateAt');
+ return cy.get('.cy-subscription-formatted-created-at input');
}
getMollieSubscriptionIdField() {
- return cy.get('#sw-field--subscription-mollieId');
+ return cy.get('.cy-subscription-mollie-id input');
}
getMandateField() {
- return cy.get('#sw-field--subscription-mandateId');
+ return cy.get('.cy-subscription-mandate-id input');
}
getCanceledAtField() {
- return cy.get('#sw-field--formattedCanceledAt');
+ return cy.get('.cy-subscription-formatted-canceled-at input');
}
getStatusField() {
- return cy.get('#sw-field--translatedStatus');
+ return cy.get('.cy-subscription-translated-status input');
}
getNextPaymentAtField() {
- return cy.get('#sw-field--formattedNextPaymentAt');
+ return cy.get('.cy-subscription-formatted-next-payment-at input');
}
getLastRemindedAtField() {
- return cy.get('#sw-field--formattedLastRemindedAt');
+ return cy.get('.cy-subscription-formatted-last-reminded-at input');
}
getPauseButton() {
diff --git a/tests/PHPUnit/Components/Subscription/Services/Builder/MollieDataBuilderTest.php b/tests/PHPUnit/Components/Subscription/Services/Builder/MollieDataBuilderTest.php
index 7afeb9493..617e5081c 100644
--- a/tests/PHPUnit/Components/Subscription/Services/Builder/MollieDataBuilderTest.php
+++ b/tests/PHPUnit/Components/Subscription/Services/Builder/MollieDataBuilderTest.php
@@ -11,6 +11,7 @@
use MolliePayments\Tests\Fakes\FakeRouter;
use MolliePayments\Tests\Traits\BuilderTestTrait;
use PHPUnit\Framework\TestCase;
+use Shopware\Core\System\Currency\CurrencyEntity;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
@@ -32,7 +33,9 @@ public function testBuildSubscriptionPayload()
$subscription = new SubscriptionEntity();
$subscription->setId('ID123');
- $subscription->setCurrency('USD');
+ $currency = new CurrencyEntity();
+ $currency->setIsoCode('USD');
+ $subscription->setCurrency($currency);
$subscription->setAmount(10.5);
$subscription->setDescription('Subscription Product A');