@@ -110,6 +110,11 @@ module ProcessOut {
110110 new DynamicCheckoutPaymentSuccessView ( this . processOutInstance , this . paymentConfig )
111111 . element ,
112112 )
113+ } else {
114+ this . resetContainerHtml ( ) . appendChild (
115+ new DynamicCheckoutPaymentInfoView ( this . processOutInstance , this . paymentConfig )
116+ . element ,
117+ )
113118 }
114119
115120 DynamicCheckoutEventsUtils . dispatchPaymentSuccessEvent ( invoiceId )
@@ -183,6 +188,13 @@ module ProcessOut {
183188 this . paymentConfig ,
184189 ) . element ,
185190 )
191+ } else {
192+ this . resetContainerHtml ( ) . appendChild (
193+ new DynamicCheckoutPaymentInfoView (
194+ this . processOutInstance ,
195+ this . paymentConfig ,
196+ ) . element ,
197+ )
186198 }
187199
188200 DynamicCheckoutEventsUtils . dispatchPaymentSuccessEvent ( invoiceId )
@@ -195,6 +207,13 @@ module ProcessOut {
195207 this . paymentConfig ,
196208 ) . element ,
197209 )
210+ } else {
211+ this . resetContainerHtml ( ) . appendChild (
212+ new DynamicCheckoutPaymentInfoView (
213+ this . processOutInstance ,
214+ this . paymentConfig ,
215+ ) . element ,
216+ )
198217 }
199218
200219 DynamicCheckoutEventsUtils . dispatchPaymentErrorEvent ( error )
@@ -208,6 +227,11 @@ module ProcessOut {
208227 new DynamicCheckoutPaymentErrorView ( this . processOutInstance , this . paymentConfig )
209228 . element ,
210229 )
230+ } else {
231+ this . resetContainerHtml ( ) . appendChild (
232+ new DynamicCheckoutPaymentInfoView ( this . processOutInstance , this . paymentConfig )
233+ . element ,
234+ )
211235 }
212236
213237 DynamicCheckoutEventsUtils . dispatchPaymentErrorEvent ( error )
@@ -222,6 +246,11 @@ module ProcessOut {
222246 new DynamicCheckoutPaymentErrorView ( this . processOutInstance , this . paymentConfig )
223247 . element ,
224248 )
249+ } else {
250+ this . resetContainerHtml ( ) . appendChild (
251+ new DynamicCheckoutPaymentInfoView ( this . processOutInstance , this . paymentConfig )
252+ . element ,
253+ )
225254 }
226255
227256 DynamicCheckoutEventsUtils . dispatchPaymentErrorEvent ( error )
0 commit comments