(self, account_id: str, *, flow: FlowRun | None = None)
| 843 | session.selected_product_id = product_id |
| 844 | self.state_service.save_session(session) |
| 845 | return preview |
| 846 | |
| 847 | def create_qr( |
| 848 | self, |
| 849 | account_id: str, |
| 850 | request: CreateQrRequest, |
| 851 | *, |
| 852 | flow: FlowRun | None = None, |
| 853 | ) -> PaymentTaskRecord: |
| 854 | own_flow = flow is None |
| 855 | if own_flow: |
| 856 | flow = self.runtime_logs.start_run( |
| 857 | account_id=account_id, |
| 858 | action="create_qr", |
| 859 | product_id=request.product_id, |
| 860 | pay_type=request.pay_type, |
| 861 | ) |
no test coverage detected