<?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 Issue taking payments using API in live mode in Payments Troubleshooting</title>
    <link>https://community.squareup.com/t5/Payments-Troubleshooting/Issue-taking-payments-using-API-in-live-mode/m-p/840333#M67271</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, we are using the payments API to send a payment from our new website. But we are getting an error "UnexpectedError: An unexpected error occurred while verifying buyer."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We're using JS CC Iframe:&lt;BR /&gt;&lt;A href="https://web.squarecdn.com/v1/square.js" target="_blank" rel="noopener"&gt;https://web.squarecdn.com/v1/square.js&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const payments = Square.payments(application_id, location_id);&lt;BR /&gt;const card = await payments.card();&lt;BR /&gt;await card.attach('#card-container');&lt;BR /&gt;&lt;BR /&gt;// 2. Perform verification&lt;BR /&gt;const verificationDetails = {&lt;BR /&gt;amount: ${amount},&lt;BR /&gt;currencyCode: 'GBP',&lt;BR /&gt;intent: 'CHARGE',&lt;BR /&gt;customerInitiated: true,&lt;BR /&gt;sellerKeyedIn: false,&lt;BR /&gt;billingContact: {&lt;BR /&gt;addressLines: [''], //['1 The Square'],&lt;BR /&gt;familyName: family_name,&lt;BR /&gt;givenName: given_name,&lt;BR /&gt;email: email,&lt;BR /&gt;eventDate: event_date,&lt;BR /&gt;pageName: pageName,&lt;BR /&gt;phone: '', //'+[Redacted]',&lt;BR /&gt;city: '', //'Abingdon',&lt;BR /&gt;state: '', //'Oxfordshire',&lt;BR /&gt;postalCode: '', //'97128',&lt;BR /&gt;countryCode: 'GB', //'GB',&lt;BR /&gt;},&lt;BR /&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Very generic error, so wondering what we are doing wrong or not doing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It test mode it worked fine, this is just in live/production&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2026 11:14:44 GMT</pubDate>
    <dc:creator>madesimplemedia</dc:creator>
    <dc:date>2026-04-07T11:14:44Z</dc:date>
    <item>
      <title>Issue taking payments using API in live mode</title>
      <link>https://community.squareup.com/t5/Payments-Troubleshooting/Issue-taking-payments-using-API-in-live-mode/m-p/840333#M67271</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, we are using the payments API to send a payment from our new website. But we are getting an error "UnexpectedError: An unexpected error occurred while verifying buyer."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We're using JS CC Iframe:&lt;BR /&gt;&lt;A href="https://web.squarecdn.com/v1/square.js" target="_blank" rel="noopener"&gt;https://web.squarecdn.com/v1/square.js&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;const payments = Square.payments(application_id, location_id);&lt;BR /&gt;const card = await payments.card();&lt;BR /&gt;await card.attach('#card-container');&lt;BR /&gt;&lt;BR /&gt;// 2. Perform verification&lt;BR /&gt;const verificationDetails = {&lt;BR /&gt;amount: ${amount},&lt;BR /&gt;currencyCode: 'GBP',&lt;BR /&gt;intent: 'CHARGE',&lt;BR /&gt;customerInitiated: true,&lt;BR /&gt;sellerKeyedIn: false,&lt;BR /&gt;billingContact: {&lt;BR /&gt;addressLines: [''], //['1 The Square'],&lt;BR /&gt;familyName: family_name,&lt;BR /&gt;givenName: given_name,&lt;BR /&gt;email: email,&lt;BR /&gt;eventDate: event_date,&lt;BR /&gt;pageName: pageName,&lt;BR /&gt;phone: '', //'+[Redacted]',&lt;BR /&gt;city: '', //'Abingdon',&lt;BR /&gt;state: '', //'Oxfordshire',&lt;BR /&gt;postalCode: '', //'97128',&lt;BR /&gt;countryCode: 'GB', //'GB',&lt;BR /&gt;},&lt;BR /&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Very generic error, so wondering what we are doing wrong or not doing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It test mode it worked fine, this is just in live/production&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 11:14:44 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Payments-Troubleshooting/Issue-taking-payments-using-API-in-live-mode/m-p/840333#M67271</guid>
      <dc:creator>madesimplemedia</dc:creator>
      <dc:date>2026-04-07T11:14:44Z</dc:date>
    </item>
  </channel>
</rss>

