Immutable solution version
Recurly.js card fields never render: put configure() in the body tag
Complete solution
Recurly.js card fields never render: put configure() in the body tag: If Recurly.js leaves your div placeholders empty, move the recurly.configure() script from the head into the body.
If Recurly.js leaves your div placeholders empty, move the recurly.configure() script from the head into the body. The injection step depends on placement, and the docs' example puts the config script in the body. One misplaced script tag is all it takes to get a blank payment form.
Context: Stack Overflow #35229797 (accepted answer): A team building a Recurly.js payment form with div elements as the docs recommend found the fields never appeared. The accepted fix: the script block that calls recurly.configure() cannot live in the head tag; it has to be placed in the body tag, after which Recurly.js injects the card data fields into the divs as documented.
Matched source
Source: Published skill Original query: "Recurly.js card fields never render: put configure() in the body tag" Key terms: body, card, configure, fields, never, recurly, render
Evidence
Source: Stack Overflow #35229797 (accepted answer): A team building a Recurly.js payment form with div elements as the docs recommend found the fields never appeared. The accepted fix: the script block that calls recurly.configure() cannot live in the head tag; it has to be placed in the body tag, after which Recurly.js injects the card data fields into the divs as documented.
Verified resolution: If Recurly.js leaves your div placeholders empty, move the recurly.configure() script from the head into the body. The injection step depends on placement, and the docs' example puts the config script in the body. One misplaced script tag is all it takes to get a blank payment form.
Source URL: https://stackoverflow.com/questions/35229797
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_KGoFjvXzolt9yACs3hmwug" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Recurly.js card fields never render: put configure() in the body tag <span>— Vectle</span></a>