<?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>topic Re: Pre-Fill Accept.js fields in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75015#M46712</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;Thanks again.&amp;nbsp; I'm not sure if we're on the same page, though.&amp;nbsp; Our current flow is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;customer picks item&lt;/LI&gt;&lt;LI&gt;adds to cart&lt;/LI&gt;&lt;LI&gt;goes to order detail&lt;/LI&gt;&lt;LI&gt;fills out name, email, zip (other details... etc)&lt;/LI&gt;&lt;LI&gt;clicks "Pay" button&lt;/LI&gt;&lt;LI&gt;Accept.js Model opens&lt;/LI&gt;&lt;LI&gt;Then they have to re-fill name, email, zip even though they had just entered it.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That last step (7) is the one I'd like to avoid.&amp;nbsp; I understand I can pass relevant customer details to the create payment request endpoint.&amp;nbsp; Thanks again.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 16:10:09 GMT</pubDate>
    <dc:creator>rob</dc:creator>
    <dc:date>2021-02-12T16:10:09Z</dc:date>
    <item>
      <title>Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75002#M46701</link>
      <description>&lt;P&gt;Sorry if this has been asked but I couldn't find it by Googling and the forum was changing the search "accept.js prefill" to "accept.PS refill" ;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I pre-fill first &amp;amp; last name and the zip code field(s)?&amp;nbsp; We already collect that and don't want to have the customer re-enter it.&amp;nbsp; I'm looking at the hosted Accept.js form.&amp;nbsp; TIA&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 21:24:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75002#M46701</guid>
      <dc:creator>rob</dc:creator>
      <dc:date>2021-02-11T21:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75011#M46708</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/14697"&gt;@rob&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, prefilling the form for Accept.js is very simple. Just pre-populate the form fields by dynamically generating the page or you can make an Ajax request to retrieve the values based on a criteria, such as customer ID.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:12:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75011#M46708</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-02-12T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75012#M46709</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;! Can you confirm this works for "Accept.js *Hosted*" (link below)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_Hosted_Payment_Information_Form" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_Hosted_Payment_Information_Form&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume for security / PCI that I don't have access to the form elements of the iframe.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stripe has a version of this where you pass the pre-filled fields via the form itself similar to how `data-acceptUIFormBtnTxt` works (&lt;A href="https://stripe.com/docs/legacy-checkout#integration-simple-options" target="_blank" rel="noopener"&gt;https://stripe.com/docs/legacy-checkout#integration-simple-options&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:25:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75012#M46709</guid>
      <dc:creator>rob</dc:creator>
      <dc:date>2021-02-12T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75014#M46711</link>
      <description>&lt;P&gt;Yes, you can pass all of the same fields with an Accept nonce/token that you can with a credit card. When&amp;nbsp;sending an Accept nonce/token, you can use any of the fields specified in the API Reference: &lt;A href="http://developer.authorize.net/api/reference/#payment-transactions-create-an-accept-payment-transaction" target="_self" rel="nofollow noopener noreferrer"&gt;Create an Accept Payment Transaction&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have the address fields set to display in the form, you can pre-populate them in your token request. If the fields are not set to display, any address information sent in the token request is discarded.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 15:10:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75014#M46711</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-02-12T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75015#M46712</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;Thanks again.&amp;nbsp; I'm not sure if we're on the same page, though.&amp;nbsp; Our current flow is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;customer picks item&lt;/LI&gt;&lt;LI&gt;adds to cart&lt;/LI&gt;&lt;LI&gt;goes to order detail&lt;/LI&gt;&lt;LI&gt;fills out name, email, zip (other details... etc)&lt;/LI&gt;&lt;LI&gt;clicks "Pay" button&lt;/LI&gt;&lt;LI&gt;Accept.js Model opens&lt;/LI&gt;&lt;LI&gt;Then they have to re-fill name, email, zip even though they had just entered it.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That last step (7) is the one I'd like to avoid.&amp;nbsp; I understand I can pass relevant customer details to the create payment request endpoint.&amp;nbsp; Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 16:10:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75015#M46712</guid>
      <dc:creator>rob</dc:creator>
      <dc:date>2021-02-12T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75018#M46715</link>
      <description>&lt;P&gt;You have your payment form, such as: &lt;A href="https://nexwebhost.com/authorizenet/acceptjs/" target="_blank"&gt;Sample form (nexwebhost.com)&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;where you can pre-populate the shipping or billing address information. These could be read only or hidden form fields. In the button parameters you would have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;data-billingAddressOptions='{"show":false, "required":false}'&lt;/FONT&gt;&lt;BR /&gt;which would prevent the address fields from being shown on the credit card iframe form.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the pay button is clicked, the form data, including the address information is then sent along with the token request to Authorize.net's request.api, which returns the payment nonce (token) and any additional data you sent(such as the address information) to your payment processing script:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;dataValue: eyJjb2RlIjoiNTBfMl8wNjAwEB...
dataDescriptor: COMMON.ACCEPT.INAPP.PAYMENT
firstName: Thomas
lastName: Bayles
address: 12 Main Street
city: Pecan Springs
state: TX
zip: 4462&lt;/PRE&gt;&lt;P&gt;Then your payment processing script would post a&amp;nbsp;&lt;FONT color="#339966"&gt;createTransactionRequest&lt;/FONT&gt; with the token in place of the card data and the relevant address information.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 22:49:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75018#M46715</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-02-12T22:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75019#M46716</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;I understand what you were saying now.&amp;nbsp; The part I wasn't getting was you don't pre-fill any fields you disable them.&amp;nbsp; So the key was this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data-billingAddressOptions='{&lt;STRONG&gt;"show":false,&lt;/STRONG&gt; "required":false}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sort of assumed the zip was needed in the tokenization request for AVS matches but I guess that happens downstream (in createTransactionRequest)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate you taking the time!&amp;nbsp; Thank you and have a great weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 23:12:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75019#M46716</guid>
      <dc:creator>rob</dc:creator>
      <dc:date>2021-02-12T23:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-Fill Accept.js fields</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75020#M46717</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you use the hosted payment information form's postal (ZIP) code field, the Accept.js nonce will include the postal code, in which case the nonce's postal code will be used in Address Verification Service (AVS) checks. &lt;STRONG&gt;Optionally, you can pass the nonce along with the customer's billing address in your&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="https://developer.authorize.net/api/reference/#payment-transactions" target="_blank" rel="noopener"&gt;createTransactionRequest&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;API call&lt;/STRONG&gt;, in which case the postal code included in the API call will be used in AVS checks instead. For AVS checks, the postal code used with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;createTransactionRequest&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;takes precedence over the value in the nonce.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you. Have a great weekend.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 23:26:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Pre-Fill-Accept-js-fields/m-p/75020#M46717</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2021-02-12T23:26:09Z</dc:date>
    </item>
  </channel>
</rss>

