<?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 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87689#M55208</link>
    <description>&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;CreateCustomerProfileFromTransactionController&amp;nbsp; class we have included the response class&amp;nbsp;net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse. But it is not in PHP SDK latest version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the error showing is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Throwable - : Class "net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse" not found on File /var/www/html/web/application/libraries/sdk-php-master/lib/net/authorize/api/controller/base/ApiOperationBase.php at Line no. 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anybody faced this issue and solved ,Please help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 17:10:04 GMT</pubDate>
    <dc:creator>sanjo</dc:creator>
    <dc:date>2023-09-27T17:10:04Z</dc:date>
    <item>
      <title>PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87688#M55207</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;When I am using this api&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CreateCustomerProfileFromTransactionController the response class included below is not in this path and the sdk&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So I am getting error&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If anybody know Please help&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Sep 2023 16:09:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87688#M55207</guid>
      <dc:creator>sanjo</dc:creator>
      <dc:date>2023-09-27T16:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87689#M55208</link>
      <description>&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;CreateCustomerProfileFromTransactionController&amp;nbsp; class we have included the response class&amp;nbsp;net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse. But it is not in PHP SDK latest version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the error showing is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Throwable - : Class "net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse" not found on File /var/www/html/web/application/libraries/sdk-php-master/lib/net/authorize/api/controller/base/ApiOperationBase.php at Line no. 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anybody faced this issue and solved ,Please help&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:10:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87689#M55208</guid>
      <dc:creator>sanjo</dc:creator>
      <dc:date>2023-09-27T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87735#M55249</link>
      <description>&lt;P&gt;The code we used is below&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;function createCustomerProfile($transactionId) {&lt;BR /&gt;$this-&amp;gt;paymentLog($transactionId, 'Webhook Response - Visited 1 - 9: ', 3, '', "Response : ");&lt;BR /&gt;$PaymentConfig = get_payment_config(null);&lt;BR /&gt;$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();&lt;BR /&gt;$merchantAuthentication-&amp;gt;setName($PaymentConfig['anet_api_login_id']);&lt;BR /&gt;$merchantAuthentication-&amp;gt;setTransactionKey($PaymentConfig['anet_translation_key']);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;//$customerProfile = new AnetAPI\CustomerProfileType();&lt;BR /&gt;$customerProfile = new AnetAPI\CustomerProfileBaseType();&lt;BR /&gt;//$customerProfile-&amp;gt;setMerchantCustomerId("123212");&lt;BR /&gt;//$customerProfile-&amp;gt;setEmail(rand(0, 10000) . "@test" .".com");&lt;BR /&gt;//$customerProfile-&amp;gt;setDescription(rand(0, 10000) ."sample description");&lt;BR /&gt;$customerProfile-&amp;gt;setDescription('Transaction:'.$transactionId);&lt;BR /&gt;&lt;BR /&gt;//$request = new AnetAPI\CreateCustomerProfileRequest();&lt;BR /&gt;//$request-&amp;gt;setMerchantAuthentication($merchantAuthentication);&lt;BR /&gt;//$request-&amp;gt;setProfile($customerProfile);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;$request = new AnetAPI\CreateCustomerProfileFromTransactionRequest();&lt;BR /&gt;$request-&amp;gt;setMerchantAuthentication($merchantAuthentication);&lt;BR /&gt;$request-&amp;gt;setTransId($transactionId);&lt;BR /&gt;$request-&amp;gt;setCustomer($customerProfile);&lt;BR /&gt;&lt;BR /&gt;//$controller = new AnetController\CreateCustomerProfileController($request);&lt;BR /&gt;$controller = new AnetController\CreateCustomerProfileFromTransactionController($request);&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;SPAN&gt;$controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$this-&amp;gt;paymentLog($transactionId, 'Webhook Response - Visited after controller 2 - 9: ', 14, '', "Response : ".json_encode($response));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;&lt;SPAN&gt;if ($response != null &amp;amp;&amp;amp; $response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok") {&lt;BR /&gt;&lt;BR /&gt;$customerProfileId = $response-&amp;gt;getCustomerProfileId();&lt;BR /&gt;$this-&amp;gt;paymentLog($transactionId, 'Webhook Response - Visited 3 - 9: profile Id:'.$customerProfileId, 16, '', "Response : ");&lt;BR /&gt;} else {&lt;BR /&gt;// Handle customer profile creation errors&lt;BR /&gt;$customerProfileId = 0;&lt;BR /&gt;//$errorMessages = $response-&amp;gt;getMessages()-&amp;gt;getMessage();&lt;BR /&gt;$this-&amp;gt;paymentLog($transactionId, 'Webhook Response - Visited 1 - 9: profile ID'.$customerProfileId, 16, '', "Response : ");&lt;BR /&gt;}&lt;BR /&gt;return $customerProfileId;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:04:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK/m-p/87735#M55249</guid>
      <dc:creator>sanjo</dc:creator>
      <dc:date>2023-10-05T14:04:15Z</dc:date>
    </item>
  </channel>
</rss>

