<?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 what is the best way to tokenize a credit card and then charge it later? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62158#M36529</link>
    <description>&lt;P&gt;What is the best way to tokenize a credit card, and then charge it later?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that I can call getHostedPaymentPageRequest and then use the token in the response to display a page with an iframe that POSTs the token to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But, I'm having a couple of problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I'm required to enter a non-zero amount in the getHostedPaymentPageRequest. If I use transactionType=authOnlyTransaction, then it doesn't display the amount on the hosted payment page, but I assume it is going to perform an authorization, and the merchant would pay transaction fees for that transaction. Is that correct? Is there a way to tokenize a credit card without the merchant paying gateway and merchant services transaction fees?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When the card number is saved on the hosted payment page, it calls my CommunicationHandler.onReceiveCommunication handler with this information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;qstr=action=transactResponse&amp;amp;response={"accountType":"Visa","accountNumber":"XXXX1111","transid":"40011483086","responseCode":"1","authorization":"H1CB99","billTo":{"firstName":"Ellen",...,"country":"USA"},"totalAmount":"1.00","dateTime":"3/16/2018 8:30:26PM"}&lt;BR /&gt;parent=&lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to charge the card later, I believe I would need a credit card token. Isn't that what I would pass in the createTransactionRequest request? How do I get that credit card token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 21:08:13 GMT</pubDate>
    <dc:creator>newuser2018</dc:creator>
    <dc:date>2018-03-16T21:08:13Z</dc:date>
    <item>
      <title>what is the best way to tokenize a credit card and then charge it later?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62158#M36529</link>
      <description>&lt;P&gt;What is the best way to tokenize a credit card, and then charge it later?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that I can call getHostedPaymentPageRequest and then use the token in the response to display a page with an iframe that POSTs the token to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;But, I'm having a couple of problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I'm required to enter a non-zero amount in the getHostedPaymentPageRequest. If I use transactionType=authOnlyTransaction, then it doesn't display the amount on the hosted payment page, but I assume it is going to perform an authorization, and the merchant would pay transaction fees for that transaction. Is that correct? Is there a way to tokenize a credit card without the merchant paying gateway and merchant services transaction fees?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When the card number is saved on the hosted payment page, it calls my CommunicationHandler.onReceiveCommunication handler with this information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;qstr=action=transactResponse&amp;amp;response={"accountType":"Visa","accountNumber":"XXXX1111","transid":"40011483086","responseCode":"1","authorization":"H1CB99","billTo":{"firstName":"Ellen",...,"country":"USA"},"totalAmount":"1.00","dateTime":"3/16/2018 8:30:26PM"}&lt;BR /&gt;parent=&lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to charge the card later, I believe I would need a credit card token. Isn't that what I would pass in the createTransactionRequest request? How do I get that credit card token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 21:08:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62158#M36529</guid>
      <dc:creator>newuser2018</dc:creator>
      <dc:date>2018-03-16T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way to tokenize a credit card and then charge it later?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62159#M36530</link>
      <description>&lt;P&gt;Use Customer Profiles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/customer_profiles.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/customer_profiles.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create an empty profile&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a payment profile using the /addPayment form action&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-get-accept-customer-profile-page" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-get-accept-customer-profile-page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get the customer profile and save the payment profile id&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then when you charge, use the customer profile id and payment profile id.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you let them edit, then use the /editPayment form action URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 22:00:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62159#M36530</guid>
      <dc:creator>starrychloe</dc:creator>
      <dc:date>2018-03-16T22:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: what is the best way to tokenize a credit card and then charge it later?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62162#M36533</link>
      <description>&lt;P&gt;Thank you for this information; that was very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question, is it possible to default the billing address on the addPayment form using this method? I found this post:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Customize-billing-information-in-hosted-CIM-option/m-p/15744/highlight/true#M8943" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Customize-billing-information-in-hosted-CIM-option/m-p/15744/highlight/true#M8943&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which seems to indicate that it is not possible, but the thread is old, so I thought maybe there has been a work-around added since then. Does anyone know of one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 05:21:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/what-is-the-best-way-to-tokenize-a-credit-card-and-then-charge/m-p/62162#M36533</guid>
      <dc:creator>newuser2018</dc:creator>
      <dc:date>2018-03-17T05:21:08Z</dc:date>
    </item>
  </channel>
</rss>

