<?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: How to specify device fingerprint id in Cybersource REST API in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/84563#M487</link>
    <description>&lt;P&gt;Here is a sample of sending device information for the payment:&amp;nbsp;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/samples/Payments/Payments/authorization-with-decision-manager-device-information.py" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/samples/Payments/Payments/authorization-with-decision-manager-device-information.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For fingerprint field information, you may refer to this:&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Fingerprint Session Id&lt;/H2&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;Field that contains the session ID that you send to Decision Manager to obtain the device fingerprint&lt;BR /&gt;information. The string can contain uppercase and lowercase letters, digits, hyphen (-), and&lt;BR /&gt;underscore (_). However, do not use the same uppercase and lowercase letters to indicate&lt;BR /&gt;different session IDs.&lt;/P&gt;&lt;P&gt;The session ID must be unique for each merchant ID. You can use any string that you are already&lt;BR /&gt;generating, such as an order number or web session ID.&lt;/P&gt;&lt;P&gt;The session ID must be unique for each page load, regardless of an individual’s web session ID.&lt;BR /&gt;If a user navigates to a profiled page and is assigned a web session, navigates away from the&lt;BR /&gt;profiled page, then navigates back to the profiled page, the generated session ID should be different&lt;BR /&gt;and unique. You may use a web session ID, but it is preferable to use an application GUID (Globally&lt;BR /&gt;Unique Identifier). This measure ensures that a unique ID is generated every time the page is&lt;BR /&gt;loaded, even if it is the same user reloading the page.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 16:59:47 GMT</pubDate>
    <dc:creator>rajvpate</dc:creator>
    <dc:date>2022-10-14T16:59:47Z</dc:date>
    <item>
      <title>How to specify device fingerprint id in Cybersource REST API</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/84379#M448</link>
      <description>&lt;P&gt;I'm trying to integrate CyberSource's REST API into a Django (Python) application. I'm following this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/samples/payments/coreservices/process_payment.py" target="_blank" rel="nofollow noopener noreferrer"&gt;GitHub example&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://e-chats.com/omegle" target="_blank" rel="noopener"&gt;/echat&lt;/A&gt;&lt;A href="https://chatspin.download" target="_blank" rel="noopener"&gt;spin&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;example. It works like a charm but it is not clear to me from the example or from the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.cybersource.com/api/reference/api-reference.html" target="_blank" rel="nofollow noopener noreferrer"&gt;documentation&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://echat.date" target="_blank" rel="noopener"&gt;/echat&lt;/A&gt;&lt;A href="https://chatrandom.download" target="_blank" rel="noopener"&gt;random&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;how to specify the device's fingerprint ID.&lt;/P&gt;&lt;P&gt;Here's a snippet of the request I'm sending in case it comes useful (note: this is just a method that lives inside a POPO):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;def&lt;/SPAN&gt; &lt;SPAN class=""&gt;authorize_payment&lt;/SPAN&gt;(&lt;SPAN class=""&gt;self, card_token: &lt;SPAN class=""&gt;str&lt;/SPAN&gt;, total_amount: Money, customer: CustomerInformation = &lt;SPAN class=""&gt;None&lt;/SPAN&gt;,
                      merchant: MerchantInformation = &lt;SPAN class=""&gt;None&lt;/SPAN&gt;&lt;/SPAN&gt;):
    &lt;SPAN class=""&gt;try&lt;/SPAN&gt;:
        request = {
            &lt;SPAN class=""&gt;'payment_information'&lt;/SPAN&gt;: {
                &lt;SPAN class=""&gt;# &lt;SPAN class=""&gt;NOTE:&lt;/SPAN&gt; REQUIRED.&lt;/SPAN&gt;
                &lt;SPAN class=""&gt;'card'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;None&lt;/SPAN&gt;,
                &lt;SPAN class=""&gt;'tokenized_card'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;None&lt;/SPAN&gt;,
                &lt;SPAN class=""&gt;'customer'&lt;/SPAN&gt;: {
                    &lt;SPAN class=""&gt;'customer_id'&lt;/SPAN&gt;: card_token,
                },
            },
            &lt;SPAN class=""&gt;'order_information'&lt;/SPAN&gt;: {
                &lt;SPAN class=""&gt;'amount_details'&lt;/SPAN&gt;: {
                    &lt;SPAN class=""&gt;'total_amount'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;str&lt;/SPAN&gt;(total_amount.amount),
                    &lt;SPAN class=""&gt;'currency'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;str&lt;/SPAN&gt;(total_amount.currency),
                },
            },
        }

        &lt;SPAN class=""&gt;if&lt;/SPAN&gt; customer:
            request[&lt;SPAN class=""&gt;'order_information'&lt;/SPAN&gt;].update({
                &lt;SPAN class=""&gt;'bill_to'&lt;/SPAN&gt;: {
                    &lt;SPAN class=""&gt;'first_name'&lt;/SPAN&gt;: customer.first_name,
                    &lt;SPAN class=""&gt;'last_name'&lt;/SPAN&gt;: customer.last_name,
                    &lt;SPAN class=""&gt;'company'&lt;/SPAN&gt;: customer.company,
                    &lt;SPAN class=""&gt;'address1'&lt;/SPAN&gt;: customer.address1,
                    &lt;SPAN class=""&gt;'address2'&lt;/SPAN&gt;: customer.address2,
                    &lt;SPAN class=""&gt;'locality'&lt;/SPAN&gt;: customer.locality,
                    &lt;SPAN class=""&gt;'country'&lt;/SPAN&gt;: customer.country,
                    &lt;SPAN class=""&gt;'email'&lt;/SPAN&gt;: customer.email,
                    &lt;SPAN class=""&gt;'phone_number'&lt;/SPAN&gt;: customer.phone_number,
                    &lt;SPAN class=""&gt;'administrative_area'&lt;/SPAN&gt;: customer.administrative_area,
                    &lt;SPAN class=""&gt;'postalCode'&lt;/SPAN&gt;: customer.zip_code,
                }
            })

        serialized_request = json.dumps(request)
        data, status, body = self._payment_api_client.create_payment(create_payment_request=serialized_request)

        &lt;SPAN class=""&gt;return&lt;/SPAN&gt; data.&lt;SPAN class=""&gt;id&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;except&lt;/SPAN&gt; Exception &lt;SPAN class=""&gt;as&lt;/SPAN&gt; e:
        &lt;SPAN class=""&gt;raise&lt;/SPAN&gt; AuthorizePaymentError &lt;SPAN class=""&gt;from&lt;/SPAN&gt; e&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 05:30:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/84379#M448</guid>
      <dc:creator>CarmosKarran</dc:creator>
      <dc:date>2022-10-04T05:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify device fingerprint id in Cybersource REST API</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/84563#M487</link>
      <description>&lt;P&gt;Here is a sample of sending device information for the payment:&amp;nbsp;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/samples/Payments/Payments/authorization-with-decision-manager-device-information.py" target="_blank" rel="noopener"&gt;https://github.com/CyberSource/cybersource-rest-samples-python/blob/master/samples/Payments/Payments/authorization-with-decision-manager-device-information.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For fingerprint field information, you may refer to this:&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Fingerprint Session Id&lt;/H2&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;Field that contains the session ID that you send to Decision Manager to obtain the device fingerprint&lt;BR /&gt;information. The string can contain uppercase and lowercase letters, digits, hyphen (-), and&lt;BR /&gt;underscore (_). However, do not use the same uppercase and lowercase letters to indicate&lt;BR /&gt;different session IDs.&lt;/P&gt;&lt;P&gt;The session ID must be unique for each merchant ID. You can use any string that you are already&lt;BR /&gt;generating, such as an order number or web session ID.&lt;/P&gt;&lt;P&gt;The session ID must be unique for each page load, regardless of an individual’s web session ID.&lt;BR /&gt;If a user navigates to a profiled page and is assigned a web session, navigates away from the&lt;BR /&gt;profiled page, then navigates back to the profiled page, the generated session ID should be different&lt;BR /&gt;and unique. You may use a web session ID, but it is preferable to use an application GUID (Globally&lt;BR /&gt;Unique Identifier). This measure ensures that a unique ID is generated every time the page is&lt;BR /&gt;loaded, even if it is the same user reloading the page.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 16:59:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/84563#M487</guid>
      <dc:creator>rajvpate</dc:creator>
      <dc:date>2022-10-14T16:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify device fingerprint id in Cybersource REST API</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/89949#M1679</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22777"&gt;@rajvpate&lt;/a&gt;&amp;nbsp;thanks for the pointer. I find below text quoted in CyberSource developer guide:&lt;/P&gt;&lt;P&gt;"&lt;SPAN class=""&gt;Important:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;The CyberSource generated device fingerprint ID overrides the merchant generated device fingerprint ID."&lt;/P&gt;&lt;P&gt;How do I get a handle of "CyberSource generated device fingerprint ID" instead of using one of our own?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 23:08:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/How-to-specify-device-fingerprint-id-in-Cybersource-REST-API/m-p/89949#M1679</guid>
      <dc:creator>sdhar</dc:creator>
      <dc:date>2024-08-19T23:08:46Z</dc:date>
    </item>
  </channel>
</rss>

