How vr-payment/shopware-6 works
This Shopware 6 plugin integrates VR Payment into merchant administration and storefront checkout. The customer flow selects a payment method, creates or resumes a VR Payment transaction, and presents the payment experience; webhook callbacks update transaction/order state. Merchant capabilities include configuration, payment-method synchronization, captures and refunds, invoices, and recurring subscriptions. The graph preserves these documented branches, but several links rely on README statements or SOURCE INDEX references because their implementation excerpts were not provided; those limits are reflected in the evidence paths.
Main entry points: api-service.init.js Admin API clients · TransactionService.php Transactions · SettingsService.php Settings service · RefundService.php Refund service
Components 23
Merchant administration
- Admin UI
src/Resources/app/administration/src/module/vrpayment-order/index.js - Settings UI
src/Resources/app/administration/src/module/vrpayment-settings/index.js - Admin API clients
src/Resources/app/administration/src/init/api-service.init.js - Refund actions
src/Resources/app/administration/src/module/vrpayment-order/component/vrpayment-order-action-refund/index.js
Checkout and payment
- Checkout page
src/Core/Storefront/Checkout/Controller/CheckoutController.php - Payment handler
src/Core/Checkout/PaymentHandler/VRPaymentPaymentHandler.php - Payment method filter
src/Core/Checkout/Service/PaymentMethodFilterService.php - Subscription orders
src/Core/Checkout/Subscription/Command/GenerateSubscriptionOrderCommand.php - Invoice access
src/Core/Checkout/Service/InvoiceService.php
Transaction operations
- Transactions
src/Core/Api/Transaction/Service/TransactionService.php - Transaction endpoints
src/Core/Api/Transaction/Controller/TransactionController.php - Capture and void
src/Core/Api/Transaction/Controller/TransactionCompletionController.php - Refund endpoints
src/Core/Api/Refund/Controller/RefundController.php - Refund service
src/Core/Api/Refund/Service/RefundService.php
Configuration and callbacks
- Configuration API
src/Core/Api/Configuration/Controller/ConfigurationController.php - Payment method sync
src/Core/Api/PaymentMethodConfiguration/Service/PaymentMethodConfigurationService.php - Settings service
src/Core/Settings/Service/SettingsService.php - Webhook receiver
src/Core/Api/WebHooks/Controller/WebHookController.php - Webhook registration
src/Core/Api/WebHooks/Service/WebHooksService.php
Other components
- Merchant
- Customer
- Shopware
- VR Payment API
Connections 27
- Merchant → Settings UI: configures
- Merchant → Admin UI: manages payments
- Admin UI → Admin API clients: uses clients
src/Resources/app/administration/src/main.js - Settings UI → Admin API clients: uses clients
src/Resources/app/administration/src/main.js - Admin API clients → Configuration API: calls
- Admin API clients → Refund endpoints: calls
- Refund actions → Admin API clients: requests refunds
- Configuration API → Settings service: reads settings
src/Core/Api/Configuration/Controller/ConfigurationController.php - Configuration API → Payment method sync: synchronizes methods
src/Core/Api/Configuration/Controller/ConfigurationController.php - Customer → Checkout page: starts checkout
- Checkout page → Payment handler: selects payment
- Payment handler → Transactions: creates transaction
src/Core/Checkout/PaymentHandler/VRPaymentPaymentHandler.php - Payment method filter → Payment method sync: filters methods
src/Core/Checkout/Service/PaymentMethodFilterService.php - Transactions → Settings service: loads credentials
src/Core/Api/Transaction/Service/TransactionService.php - Transactions → VR Payment API: creates transactions
- Transaction endpoints → Transactions: delegates
src/Core/Api/Transaction/Controller/TransactionController.php - Capture and void → Settings service: loads credentials
src/Core/Api/Transaction/Controller/TransactionCompletionController.php - Capture and void → VR Payment API: captures transactions
- Refund endpoints → Refund service: creates refunds
src/Core/Api/Refund/Controller/RefundController.php - Refund service → Settings service: loads credentials
src/Core/Api/Refund/Service/RefundService.php - Refund service → VR Payment API: submits refunds
src/Core/Api/Refund/Service/RefundService.php - VR Payment API → Webhook receiver: sends callbacks
- Webhook receiver → Transactions: updates transactions
src/Core/Api/WebHooks/Controller/WebHookController.php - Webhook receiver → Refund service: updates refunds
src/Core/Api/WebHooks/Controller/WebHookController.php - Webhook registration → Settings service: loads credentials
src/Core/Api/WebHooks/Service/WebHooksService.php - Payment handler → Subscription orders: supports recurring
- Customer → Invoice access: downloads invoice