<?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 Retrieving shipping after checkout completion (with Hosted Checkout) in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Retrieving-shipping-after-checkout-completion-with-Hosted/m-p/191546#M93528</link>
    <description>&lt;DIV class="lia-quilt-row lia-quilt-row-header"&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;So I am using the PHP API. I create a checkout Object and put setAskForShippingAddress() to true, and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;it does indeed collect shipping address during the hosted checkout. However, the API Docs do not specify as to how to fetch that back. Your payment.updated webhook does not send back shipping address either. I do however get the payment_id and order_id, but neither the payment or order api contains the shipping address. Help.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 31 Jul 2020 09:25:20 GMT</pubDate>
    <dc:creator>Hackinet</dc:creator>
    <dc:date>2020-07-31T09:25:20Z</dc:date>
    <item>
      <title>Retrieving shipping after checkout completion (with Hosted Checkout)</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Retrieving-shipping-after-checkout-completion-with-Hosted/m-p/191546#M93528</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-header"&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;So I am using the PHP API. I create a checkout Object and put setAskForShippingAddress() to true, and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;it does indeed collect shipping address during the hosted checkout. However, the API Docs do not specify as to how to fetch that back. Your payment.updated webhook does not send back shipping address either. I do however get the payment_id and order_id, but neither the payment or order api contains the shipping address. Help.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Jul 2020 09:25:20 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Retrieving-shipping-after-checkout-completion-with-Hosted/m-p/191546#M93528</guid>
      <dc:creator>Hackinet</dc:creator>
      <dc:date>2020-07-31T09:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving shipping after checkout completion (with Hosted Checkout)</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Retrieving-shipping-after-checkout-completion-with-Hosted/m-p/192397#M93529</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/308649"&gt;@Hackinet&lt;/a&gt; - when a checkout completes, it redirects to your URL and includes a &lt;STRONG&gt;transactionId&lt;/STRONG&gt;. You can use this &lt;STRONG&gt;id&lt;/STRONG&gt; to call &lt;A href="https://developer.squareup.com/reference/square/transactions-api/retrieve-transaction" target="_blank"&gt;RetrieveTransaction&lt;/A&gt;,&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;which would have a &lt;STRONG&gt;customer_id&lt;/STRONG&gt;. The address will be a part of the customer, which can be retrieved using &lt;A href="https://developer.squareup.com/reference/square/customers-api/retrieve-customer" target="_blank"&gt;RetrieveCustomer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps! If you're still stuck, &lt;A href="https://squareup.com/help/us/en/contact?panel=FAB456B04971&amp;amp;skip_unit_select=true" target="_blank"&gt;shoot a message our way&lt;/A&gt; so we can connect you with an API team member directly.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 17:32:46 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Retrieving-shipping-after-checkout-completion-with-Hosted/m-p/192397#M93529</guid>
      <dc:creator>Valentina</dc:creator>
      <dc:date>2020-08-03T17:32:46Z</dc:date>
    </item>
  </channel>
</rss>

