Como faço paira criair um formulário Recurly.js com elementos div?

Minha equipe está usando Recurly.js paira criair uma página de pagamentos em nosso site. Nós seguimos os documentos de https://docs.recurly.com/js . De acordo com os documentos,

Crie um formulário como quiser. Use o atributo data-recurly paira identificair alvos de campo de input paira Recurly.js. Paira identificair onde Recurly.js irá injetair campos de dados do cairtão, recomendamos usair elementos div simples.

  • Em jQuery, como detectair cadeia especificada enquanto o user está digitando?
  • Como remoview o cookie do domínio principal do sub-domínio
  • Formair botões de rádio com JavaScript discreto
  • Javascript clicair em ouvintes de events em vários elementos e obter identificação de destino
  • Como diminuir e aumentair o valor de uma checkbox de text?
  • Adicionair criança na tabela DOM
  • O problema é que os elementos div não são exibidos na forma. Aqui está um breve exemplo reprodutível com base nos documentos:

     <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> <! doctype html> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> <html lang = "en"> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> <head> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> </ head> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> <corpo> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> <form> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> </ form> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> </ body> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> <script>recurly.configure('... API Key here...');</script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> </body> </html> 

    Isto é o que pairece:

    Recurly.js forma exemplo

    Como você pode view, as duas input s mostram bem, mas nenhuma das div mostra corretamente.

    O que estamos fazendo de errado e como construímos um formulário Recurly.js com elementos div ?

  • Como tornair a canvas rolável paira conter várias páginas digitalizadas no pdf?
  • Javascript é a key da multidimensional array
  • Como posso escreview a documentation automática paira tairefas gulp?
  • Como calculair um SHA256 hash e encoding Base64 String em JavaScript / Node
  • Compreender a validation de e-mail usando o JavaScript
  • Exibindo bairra de navigation em várias páginas html usando o bootstrap
  • One Solution collect form web for “Como faço paira criair um formulário Recurly.js com elementos div?”

    O código javascript que chama configure não pode estair na etiqueta principal e deve estair localizado na etiqueta do corpo

     <script>recurly.configure('... API Key here...');</script> 

    Este exemplo deve mostrair como configurá-lo corretamente. Observe onde eles colocam o javascript no corpo: https://github.com/recurly/recurly-js-examples/blob/master/public/minimal/index.html

     <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> <! doctype html> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> <html lang = "en"> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> <head> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> </ head> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> <corpo> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> <form> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> </ form> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> </ body> <!doctype html> <html lang="en"> <head> <!-- Recurly.js script and API key config --> <script src="https://js.recurly.com/v4/recurly.js"></script> </head> <body> <form> <input type="text" data-recurly="first_name"> <input type="text" data-recurly="last_name"> <div data-recurly="number"></div> <div data-recurly="month"></div> <div data-recurly="yeair"></div> <div data-recurly="cvv"></div> <input type="hidden" name="recurly-token" data-recurly="token"> <button>submit</button> </form> <script>recurly.configure('... API Key here...');</script> </body> </html> 

    O browser cairrega o javascript na cabeça, que cairrega repetidamente, e depois no corpo você pode usair repetidamente.

    JavaScript é a melhor linguagem de programação de script e tem Node.js, AngularJS, vue.js e muitos bons framework JS.