<?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 Merchant name and line items not showing gethostedpaymentpage in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59390#M33979</link>
    <description>&lt;P&gt;I have the following code implemented and everything is working fine except when the payment form comes up the merchant name and line items are not shown. There is no error, they just are not there. The transaction amount is shown, the bill to information is populated correctly just the merchant name and line items. What am I missing?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Function GetHostedPaymentPageResponse(ApiLoginID As [String], ApiTransactionKey As [String], amount As Decimal) As ANetApiResponse

ApiOperationBase(Of ANetApiRequest, ANetApiResponse).RunEnvironment = AuthorizeNet.Environment.SANDBOX
Dim merchantAuthenticationType As New merchantAuthenticationType()
merchantAuthenticationType.name = ApiLoginID
merchantAuthenticationType.ItemElementName = ItemChoiceType.transactionKey
merchantAuthenticationType.Item = ApiTransactionKey
ApiOperationBase(Of ANetApiRequest, ANetApiResponse).MerchantAuthentication = merchantAuthenticationType

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12
Dim settings As settingType() = New settingType(1) {}

settings(0) = New settingType()
settings(0).settingName = settingNameEnum.hostedPaymentButtonOptions.ToString()
settings(0).settingValue = "{""text"": ""Pay Now""}"

settings(1) = New settingType()
settings(1).settingName = settingNameEnum.hostedPaymentOrderOptions.ToString()
settings(1).settingValue = "{""show"": true, ""merchantName"":""My Company""}"

Dim MylineItems(0) As AuthorizeNet.Api.Contracts.V1.lineItemType
Dim thisLineItem As New AuthorizeNet.Api.Contracts.V1.lineItemType

thisLineItem.itemId = "a100"
thisLineItem.quantity = 1
thisLineItem.name = "test"
thisLineItem.description = "Software Training"
thisLineItem.unitPrice = 3500.0
MylineItems(0) = thisLineItem
Dim thisCustomerType As New AuthorizeNet.Api.Contracts.V1.customerAddressType
thisCustomerType.address = "123 main"
thisCustomerType.city = "Santa Barbara"
thisCustomerType.state = "CA"
thisCustomerType.country = "USA"
thisCustomerType.zip = "93111"

' authorize capture only
Dim transactionRequest = New transactionRequestType() With { _
.transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), _
.amount = amount, _
.lineItems = MylineItems, _
.billTo = thisCustomerType _
}

Dim request = New getHostedPaymentPageRequest()
request.transactionRequest = transactionRequest
request.hostedPaymentSettings = settings

' instantiate the contoller that will call the service
Dim controller = New getHostedPaymentPageController(request)
controller.Execute()

' get the response from the service (errors contained if any)
Dim response1 = controller.GetApiResponse()
Response.Clear()
Dim posturl As String = "https://test.authorize.net/payment/payment"
Dim sb As New StringBuilder
sb.Append("")

sb.AppendFormat("")
sb.AppendFormat("
", posturl)
sb.AppendFormat("", response1.token)
sb.Append("
")
sb.Append("")
sb.Append("")
sb.Append("")
Response.Write(sb.ToString())
Response.End()


Return response1
End Function&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2017 17:28:02 GMT</pubDate>
    <dc:creator>jmorgret</dc:creator>
    <dc:date>2017-08-15T17:28:02Z</dc:date>
    <item>
      <title>Merchant name and line items not showing gethostedpaymentpage</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59390#M33979</link>
      <description>&lt;P&gt;I have the following code implemented and everything is working fine except when the payment form comes up the merchant name and line items are not shown. There is no error, they just are not there. The transaction amount is shown, the bill to information is populated correctly just the merchant name and line items. What am I missing?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Function GetHostedPaymentPageResponse(ApiLoginID As [String], ApiTransactionKey As [String], amount As Decimal) As ANetApiResponse

ApiOperationBase(Of ANetApiRequest, ANetApiResponse).RunEnvironment = AuthorizeNet.Environment.SANDBOX
Dim merchantAuthenticationType As New merchantAuthenticationType()
merchantAuthenticationType.name = ApiLoginID
merchantAuthenticationType.ItemElementName = ItemChoiceType.transactionKey
merchantAuthenticationType.Item = ApiTransactionKey
ApiOperationBase(Of ANetApiRequest, ANetApiResponse).MerchantAuthentication = merchantAuthenticationType

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12
Dim settings As settingType() = New settingType(1) {}

settings(0) = New settingType()
settings(0).settingName = settingNameEnum.hostedPaymentButtonOptions.ToString()
settings(0).settingValue = "{""text"": ""Pay Now""}"

settings(1) = New settingType()
settings(1).settingName = settingNameEnum.hostedPaymentOrderOptions.ToString()
settings(1).settingValue = "{""show"": true, ""merchantName"":""My Company""}"

Dim MylineItems(0) As AuthorizeNet.Api.Contracts.V1.lineItemType
Dim thisLineItem As New AuthorizeNet.Api.Contracts.V1.lineItemType

thisLineItem.itemId = "a100"
thisLineItem.quantity = 1
thisLineItem.name = "test"
thisLineItem.description = "Software Training"
thisLineItem.unitPrice = 3500.0
MylineItems(0) = thisLineItem
Dim thisCustomerType As New AuthorizeNet.Api.Contracts.V1.customerAddressType
thisCustomerType.address = "123 main"
thisCustomerType.city = "Santa Barbara"
thisCustomerType.state = "CA"
thisCustomerType.country = "USA"
thisCustomerType.zip = "93111"

' authorize capture only
Dim transactionRequest = New transactionRequestType() With { _
.transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), _
.amount = amount, _
.lineItems = MylineItems, _
.billTo = thisCustomerType _
}

Dim request = New getHostedPaymentPageRequest()
request.transactionRequest = transactionRequest
request.hostedPaymentSettings = settings

' instantiate the contoller that will call the service
Dim controller = New getHostedPaymentPageController(request)
controller.Execute()

' get the response from the service (errors contained if any)
Dim response1 = controller.GetApiResponse()
Response.Clear()
Dim posturl As String = "https://test.authorize.net/payment/payment"
Dim sb As New StringBuilder
sb.Append("")

sb.AppendFormat("")
sb.AppendFormat("
", posturl)
sb.AppendFormat("", response1.token)
sb.Append("
")
sb.Append("")
sb.Append("")
sb.Append("")
Response.Write(sb.ToString())
Response.End()


Return response1
End Function&lt;/PRE&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 17:28:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59390#M33979</guid>
      <dc:creator>jmorgret</dc:creator>
      <dc:date>2017-08-15T17:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Merchant name and line items not showing gethostedpaymentpage</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59552#M34135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22162"&gt;@jmorgret&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, there's nothing on the form that would show lineItems that were submitted,&amp;nbsp;but I can definitely see the usefulness in such a scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd encourage you to post this onto our &lt;A href="https://community.developer.cybersource.com/t5/Ideas/idb-p/ideas" target="_self"&gt;Ideas Forum&lt;/A&gt; where others can take a look, contribute feedback, and vote for new features.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Merchant Name is for the receipt page that's optionally shown after the payment information is submitted.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Aug 2017 00:19:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59552#M34135</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-08-26T00:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merchant name and line items not showing gethostedpaymentpage</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59592#M34171</link>
      <description>&lt;P&gt;Ok, thank you.&amp;nbsp; I guess what I was looking for was the Order description.&amp;nbsp; I added that it is what I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 20:24:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/59592#M34171</guid>
      <dc:creator>jmorgret</dc:creator>
      <dc:date>2017-08-29T20:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merchant name and line items not showing gethostedpaymentpage</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/63037#M37242</link>
      <description>&lt;P&gt;Has there been any development on this. We are also trying to display the line item but could not find any example.&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 20:43:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/63037#M37242</guid>
      <dc:creator>minakshipokhare</dc:creator>
      <dc:date>2018-05-11T20:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merchant name and line items not showing gethostedpaymentpage</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/66159#M39737</link>
      <description>&lt;P&gt;I know not ideal, but I wonder if you could combine the line item description into the main order description? You have up to 255 chars for the order description.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 19:54:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Merchant-name-and-line-items-not-showing-gethostedpaymentpage/m-p/66159#M39737</guid>
      <dc:creator>ben_hamelin</dc:creator>
      <dc:date>2019-01-29T19:54:43Z</dc:date>
    </item>
  </channel>
</rss>

