<?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: PHP SDK - how to set Invoice Number in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83141#M52424</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/61183"&gt;@boyandev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt; $orderType = new AnetAPI\OrderType();
 $orderType-&amp;gt;setInvoiceNumber($invoiceNumber);
 $orderType-&amp;gt;setDescription($description);
 $transactionRequestType-&amp;gt;setOrder($orderType);
//I think you can omit the description. Try it and see.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find this post helpful, please mark it as the solution and hit the kudos button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 00:45:11 GMT</pubDate>
    <dc:creator>Renaissance</dc:creator>
    <dc:date>2022-06-16T00:45:11Z</dc:date>
    <item>
      <title>PHP SDK - how to set Invoice Number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83137#M52421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using PHP SDK to charge already created "Customer Porifle" in Authorize. My question is: "How to attach Invoice Number to a&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;TransactionRequest&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;"?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;$profileToCharge = new AnetAPI\CustomerProfilePaymentType();
$profileToCharge-&amp;gt;setCustomerProfileId($profileId);
$paymentProfile = new AnetAPI\PaymentProfileType();
$paymentProfile-&amp;gt;setPaymentProfileId($paymentProfileId);
$paymentProfile-&amp;gt;setCardCode($cvv);
$profileToCharge-&amp;gt;setPaymentProfile($paymentProfile);

$transactionRequestType = new AnetAPI\TransactionRequestType();
$transactionRequestType-&amp;gt;setTransactionType("authCaptureTransaction"); 
$transactionRequestType-&amp;gt;setAmount($amount);
$transactionRequestType-&amp;gt;setProfile($profileToCharge);

$request = new AnetAPI\CreateTransactionRequest();
$request-&amp;gt;setMerchantAuthentication($this-&amp;gt;merchantAuthentication);
$request-&amp;gt;setRefId($this-&amp;gt;refId);
$request-&amp;gt;setTransactionRequest($transactionRequestType);
$controller = new AnetController\CreateTransactionController($request);

$response = $this-&amp;gt;executeRequest($controller);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:47:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83137#M52421</guid>
      <dc:creator>boyandev</dc:creator>
      <dc:date>2022-06-15T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - how to set Invoice Number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83141#M52424</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/61183"&gt;@boyandev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt; $orderType = new AnetAPI\OrderType();
 $orderType-&amp;gt;setInvoiceNumber($invoiceNumber);
 $orderType-&amp;gt;setDescription($description);
 $transactionRequestType-&amp;gt;setOrder($orderType);
//I think you can omit the description. Try it and see.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find this post helpful, please mark it as the solution and hit the kudos button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 00:45:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83141#M52424</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2022-06-16T00:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - how to set Invoice Number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83146#M52427</link>
      <description>&lt;P&gt;Thanks you so much! It works!&lt;BR /&gt;Is it description required property for OrderType?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 06:26:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83146#M52427</guid>
      <dc:creator>boyandev</dc:creator>
      <dc:date>2022-06-16T06:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - how to set Invoice Number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83161#M52437</link>
      <description>&lt;P&gt;I don't think so. For the client that I wrote that script for, they used it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 21:49:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83161#M52437</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2022-06-17T21:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - how to set Invoice Number</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83201#M52462</link>
      <description>&lt;PRE&gt; $orderType = new AnetAPI\OrderType();
 $orderType-&amp;gt;setInvoiceNumber($invoiceNumber);
 $orderType-&amp;gt;setDescription($description);
 $transactionRequestType-&amp;gt;setOrder($orderType);
//I think you can omit the description. Try it and see.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find this post helpful, please mark it as the solution and hit the kudos button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 20:39:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-how-to-set-Invoice-Number/m-p/83201#M52462</guid>
      <dc:creator>janetwilson</dc:creator>
      <dc:date>2022-06-21T20:39:39Z</dc:date>
    </item>
  </channel>
</rss>

