<?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: Unable to set return options using hostedPaymentReturnOptions setting in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61494#M35931</link>
    <description>&lt;P&gt;I dont see the setting values correct. Please use the following code, it should workout.&lt;/P&gt;&lt;P&gt;Let us know if you see any other issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bhavana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            settingType[] settings = new settingType[3];

            settings[0] = new settingType();
            settings[0].settingName = settingNameEnum.hostedPaymentButtonOptions.ToString();
            settings[0].settingValue = "{\"text\": \"Pay\"}";
            
            settings[1] = new settingType();
            settings[1].settingName = settingNameEnum.hostedPaymentOrderOptions.ToString();
            settings[1].settingValue = "{\"show\": false}";


			settings[2] = new settingType();
			settings[2].settingName = settingNameEnum.hostedPaymentReturnOptions.ToString();
			settings[2].settingValue = "{\"showReceipt\": true, \"url\": \"https://mysite.com/receipt\", \"urlText\": \"Continue\", \"cancelUrl\": \"https://mysite.com/cancel\", \"cancelUrlText\": \"Cancel\"}";

			var transactionRequest = new transactionRequestType
            {
                transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),    // authorize capture only
                amount = amount
            };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Feb 2018 01:02:23 GMT</pubDate>
    <dc:creator>bhav</dc:creator>
    <dc:date>2018-02-03T01:02:23Z</dc:date>
    <item>
      <title>Unable to set return options using hostedPaymentReturnOptions setting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61467#M35911</link>
      <description>&lt;P&gt;I have been trying to set the url for the Continue button on the Receipt page using the following code:&lt;/P&gt;&lt;PRE&gt;settings(3) = New settingType
settings(3).settingName = settingNameEnum.hostedPaymentReturnOptions.ToString
settings(3).settingValue = "{""showReceipt"": true, ""url"": ""http://mysite.com/training-center/training-locations"", ""urlText"": ""Continue"", ""cancelURL"": ""http://mysite.com/training-center/training-schedule"", ""cancelUrlText"": ""Cancel""}"&lt;/PRE&gt;&lt;P&gt;The other settings I have are hostedPaymentOrderOptions, hostedPaymentButtonOptions and hostedPaymentCustomerOptions and these do not cause any problems.&amp;nbsp; If I include hostedPaymentReturnOptions, I get the error "Missing or invalid token".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was guessing this is some typo in my string but I can't find it.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 23:56:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61467#M35911</guid>
      <dc:creator>jmorgret</dc:creator>
      <dc:date>2018-02-01T23:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set return options using hostedPaymentReturnOptions setting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61494#M35931</link>
      <description>&lt;P&gt;I dont see the setting values correct. Please use the following code, it should workout.&lt;/P&gt;&lt;P&gt;Let us know if you see any other issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Bhavana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            settingType[] settings = new settingType[3];

            settings[0] = new settingType();
            settings[0].settingName = settingNameEnum.hostedPaymentButtonOptions.ToString();
            settings[0].settingValue = "{\"text\": \"Pay\"}";
            
            settings[1] = new settingType();
            settings[1].settingName = settingNameEnum.hostedPaymentOrderOptions.ToString();
            settings[1].settingValue = "{\"show\": false}";


			settings[2] = new settingType();
			settings[2].settingName = settingNameEnum.hostedPaymentReturnOptions.ToString();
			settings[2].settingValue = "{\"showReceipt\": true, \"url\": \"https://mysite.com/receipt\", \"urlText\": \"Continue\", \"cancelUrl\": \"https://mysite.com/cancel\", \"cancelUrlText\": \"Cancel\"}";

			var transactionRequest = new transactionRequestType
            {
                transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),    // authorize capture only
                amount = amount
            };&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 01:02:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61494#M35931</guid>
      <dc:creator>bhav</dc:creator>
      <dc:date>2018-02-03T01:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set return options using hostedPaymentReturnOptions setting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61521#M35955</link>
      <description>&lt;P&gt;Here is the code I currently have:&lt;/P&gt;&lt;PRE&gt; Dim settings As settingType() = New settingType(3) {}
settings(0) = New settingType
        settings(0).settingName = settingNameEnum.hostedPaymentCustomerOptions.ToString
        settings(0).settingValue = "{""showEmail"":true,""requiredEmail"":true}"
        settings(1) = New settingType()
        settings(1).settingName = settingNameEnum.hostedPaymentButtonOptions.ToString()
        settings(1).settingValue = "{""text"": ""Pay Now""}"

        settings(2) = New settingType()
        settings(2).settingName = settingNameEnum.hostedPaymentOrderOptions.ToString()
        settings(2).settingValue = "{""show"": true, ""merchantName"":""My Company, Inc.""}"

        settings(3) = New settingType
        settings(3).settingName = settingNameEnum.hostedPaymentReturnOptions.ToString
        settings(3).settingValue = "{""showReceipt"": true, ""url"": ""http://mysite.com/training-center/training-locations"", ""urlText"": ""Continue"", ""cancelURL"": ""http://mysite.com/training-center/training-schedule"", ""cancelUrlText"": ""Cancel""}"
        &lt;/PRE&gt;&lt;P&gt;When the customer pays, they are taken to an Authorize.net generated receipt page that displays my company name as set in the hostedPaymentOrderOptions setting.&amp;nbsp; It also&amp;nbsp;displays a button that says "Continue".&amp;nbsp; How do I set the url for that button?&amp;nbsp; It was my understanding that I should use the hostedPaymentReturnOptions setting and set the url value to the url I would like the user to be directed to&amp;nbsp;from the auto-generated receipt page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that the case?&amp;nbsp; If not where can you set the url for this button?&amp;nbsp; If it is the case, then is there something wrong with my syntax that I am not seeing or something else I need to do because every time I insert this code, instead of being taken to the payment page, I get the error "Missing or invalid token".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 17:38:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61521#M35955</guid>
      <dc:creator>jmorgret</dc:creator>
      <dc:date>2018-02-06T17:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to set return options using hostedPaymentReturnOptions setting</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61786#M36189</link>
      <description>&lt;P&gt;Anyone have any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 19:44:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Unable-to-set-return-options-using-hostedPaymentReturnOptions/m-p/61786#M36189</guid>
      <dc:creator>jmorgret</dc:creator>
      <dc:date>2018-02-20T19:44:09Z</dc:date>
    </item>
  </channel>
</rss>

