<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>thread Re: Transactions API - Generating a &amp;quot;minimal payment form&amp;quot; using JS in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/79832#M44070</link>
    <description>&lt;P&gt;Hi again &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/106186"&gt;@Bakelite&lt;/a&gt;. Sorry for the delay. I just checked with our API specialist team who confirmed you won't be able to load the payment form dynamically.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;They suggested as a&amp;nbsp;possible workaround your count try putting the payment form in a hidden div. It’s a warning in our developer doc: &lt;A href="https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-2-add-the-html-form-to-your-payment-page" target="_blank"&gt;https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-2-add-the-html-form-to-your-payment-page&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
Furthermore, you can show the payment form when needed.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 19:53:10 GMT</pubDate>
    <dc:creator>Helen</dc:creator>
    <dc:date>2018-04-30T19:53:10Z</dc:date>
    <item>
      <title>Transactions API - Generating a "minimal payment form" using JS</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/78362#M44067</link>
      <description>&lt;P&gt;We're able to generate and successfully test the sqPaymentForm (&lt;A href="https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-5-set-your-application-and-location-id" target="_blank"&gt;outlined here&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;But when we try to do the same thing, generating the form dynamically using JS, the Square-hosted sqPaymentForm library doesn't recognize it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get this to work?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 06:13:10 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/78362#M44067</guid>
      <dc:creator>Bakelite</dc:creator>
      <dc:date>2018-04-18T06:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions API - Generating a "minimal payment form" using JS</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/78643#M44068</link>
      <description>&lt;P&gt;Sorry for the confusion &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/106186"&gt;@Bakelite&lt;/a&gt;. At this time it's not possible to generate&amp;nbsp;the form dynamically using JS with our payment form. We'll share your request with the API team. Thanks for your post!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 23:28:10 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/78643#M44068</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2018-04-19T23:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions API - Generating a "minimal payment form" using JS</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/79444#M44069</link>
      <description>&lt;P&gt;Helen, thanks for your response. &amp;nbsp;Actually&amp;nbsp;in thinking through what we're trying to do, it would seem possible with our without support. &amp;nbsp;Of course I may be misunderstanding something, but here's the logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating the "&lt;SPAN&gt;sqPaymentForm" involves 3 elements,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1 - An HTML form (the id-"nonce" form) described &lt;A href="https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-5-set-your-application-and-location-id" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2 - The "SqPaymentForm library" at&amp;nbsp;&lt;A href="https://js.squareup.com/v2/paymentform" target="_blank"&gt;https://js.squareup.com/v2/paymentform&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 - The "local SqPaymentForm initialization" library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Correct me if I'm wrong: It shouldn't matter whether #1 is static HTML on the page or was generated by custom JS, as long as the order of things is correct. &amp;nbsp;I would assume the following order:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;a - The form has to be on the page&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;b - The "SqPaymentForm library" is loaded&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;c - The "local SqPaymentForm initialization" triggers the Form's contained DIVs to become Inputs embedded in iFrames.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Neither steps B or C should care nor even be able to distinguish whether the form was&amp;nbsp;static HTML or JS -generated. &amp;nbsp;Since&amp;nbsp;my attempts to do the above failed, no doubt I'm overlooking something.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The reason we're interested in making this work is twofold: 1) most all the pages we generate are dynamic -- for more control over the UX; 2) We want to be able have the payment&amp;nbsp;process on one page via ajax, not require multiple pages.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can we make this happen?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 17:43:54 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/79444#M44069</guid>
      <dc:creator>Bakelite</dc:creator>
      <dc:date>2018-04-26T17:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions API - Generating a "minimal payment form" using JS</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/79832#M44070</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/106186"&gt;@Bakelite&lt;/a&gt;. Sorry for the delay. I just checked with our API specialist team who confirmed you won't be able to load the payment form dynamically.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;They suggested as a&amp;nbsp;possible workaround your count try putting the payment form in a hidden div. It’s a warning in our developer doc: &lt;A href="https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-2-add-the-html-form-to-your-payment-page" target="_blank"&gt;https://docs.connect.squareup.com/payments/sqpaymentform/sqpaymentform-setup#step-2-add-the-html-form-to-your-payment-page&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
Furthermore, you can show the payment form when needed.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:53:10 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Transactions-API-Generating-a-quot-minimal-payment-form-quot/m-p/79832#M44070</guid>
      <dc:creator>Helen</dc:creator>
      <dc:date>2018-04-30T19:53:10Z</dc:date>
    </item>
  </channel>
</rss>

