Add button preview in settings

This commit is contained in:
Alex P 2022-10-19 11:38:49 +03:00
parent e347bd8416
commit ab618b200e
13 changed files with 294 additions and 19 deletions

View file

@ -45,7 +45,9 @@ class Renderer {
}
}
this.creditCardRenderer.render(settings.hosted_fields.wrapper, contextConfig);
if (this.creditCardRenderer) {
this.creditCardRenderer.render(settings.hosted_fields.wrapper, contextConfig);
}
for (const [fundingSource, data] of Object.entries(enabledSeparateGateways)) {
this.renderButtons(