<?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 Accept.js Saving Payment Method in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-Saving-Payment-Method/m-p/69447#M42461</link>
    <description>&lt;P&gt;I have been trying to integrate Accept.js and the CIM into my website and so far it has been rather straight forward but I have run into a bit of a road block as far as payment workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How my workflow works is pretty similar to a lot of checkout processes.&amp;nbsp; I gather the address and card information, I use Accept.js to tokenize the card and then send that and the address back to my server.&amp;nbsp; At that point I think I want to run the sale, and then if the transaction is accepted, and the customer checked the box to save the payment method then I use the Create Customer With Transaction ID API endpoint.&amp;nbsp; From what I can tell that is really the only way to handle this when using Accept.js because once I use the nonce to run the sale I can't reuse it to create a payment profile on a customer account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I have been having is that I'm not sure how to handle this when the customer already has one saved payment profile and they want to save another one.&amp;nbsp; If I run the sale first I have used up the nonce so I can't save it to the customerID that I already have.&amp;nbsp; Would I have to use the same Create Customer With Transaction ID endpoint and hope that the CIM duplicate detection is perfect?&amp;nbsp; So far in testing the problem with this is that if the transaction triggers the fraud detection it won't save the profile, even if we discover that the transaction wasn't fraudulent.&lt;/P&gt;&lt;P&gt;The other option is that I could save the payment profile to the customer, and then charge that payment profile through the API, but I'm unsure if I should be sending those 2 operations through the API that quickly since in the sandbox sometimes things aren't quite updated that fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something obvious?&lt;/P&gt;</description>
    <pubDate>Sat, 19 Oct 2019 18:31:52 GMT</pubDate>
    <dc:creator>bjrice88</dc:creator>
    <dc:date>2019-10-19T18:31:52Z</dc:date>
    <item>
      <title>Accept.js Saving Payment Method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-Saving-Payment-Method/m-p/69447#M42461</link>
      <description>&lt;P&gt;I have been trying to integrate Accept.js and the CIM into my website and so far it has been rather straight forward but I have run into a bit of a road block as far as payment workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How my workflow works is pretty similar to a lot of checkout processes.&amp;nbsp; I gather the address and card information, I use Accept.js to tokenize the card and then send that and the address back to my server.&amp;nbsp; At that point I think I want to run the sale, and then if the transaction is accepted, and the customer checked the box to save the payment method then I use the Create Customer With Transaction ID API endpoint.&amp;nbsp; From what I can tell that is really the only way to handle this when using Accept.js because once I use the nonce to run the sale I can't reuse it to create a payment profile on a customer account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that I have been having is that I'm not sure how to handle this when the customer already has one saved payment profile and they want to save another one.&amp;nbsp; If I run the sale first I have used up the nonce so I can't save it to the customerID that I already have.&amp;nbsp; Would I have to use the same Create Customer With Transaction ID endpoint and hope that the CIM duplicate detection is perfect?&amp;nbsp; So far in testing the problem with this is that if the transaction triggers the fraud detection it won't save the profile, even if we discover that the transaction wasn't fraudulent.&lt;/P&gt;&lt;P&gt;The other option is that I could save the payment profile to the customer, and then charge that payment profile through the API, but I'm unsure if I should be sending those 2 operations through the API that quickly since in the sandbox sometimes things aren't quite updated that fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something obvious?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 18:31:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-Saving-Payment-Method/m-p/69447#M42461</guid>
      <dc:creator>bjrice88</dc:creator>
      <dc:date>2019-10-19T18:31:52Z</dc:date>
    </item>
  </channel>
</rss>

