<?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: sample using iframe and lightbox for asp.net in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/64913#M38690</link>
    <description>&lt;P&gt;Hi NexusSoftware,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking the sample for integrating the authorizeNet using iframe as you shown in below example in java. So can you share the link or source code for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 05:26:50 GMT</pubDate>
    <dc:creator>saketk</dc:creator>
    <dc:date>2018-10-31T05:26:50Z</dc:date>
    <item>
      <title>sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59456#M34039</link>
      <description>&lt;P&gt;i am trying to find a good sample of using the authorize.net payment form in an iframe and also sample of lightbox. I am doing this so that the customer can see which one they want. I can get the payment form to show on authorize.net website page. but can not seem to find an good exaple on the other ways&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 17:44:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59456#M34039</guid>
      <dc:creator>rrr944276</dc:creator>
      <dc:date>2017-08-19T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59458#M34041</link>
      <description>There is a very basic example of each method at : &lt;A href="http://45.55.195.86:8080/accepthosted/" target="_blank"&gt;http://45.55.195.86:8080/accepthosted/&lt;/A&gt;</description>
      <pubDate>Sat, 19 Aug 2017 19:22:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59458#M34041</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-08-19T19:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59462#M34045</link>
      <description>&lt;P&gt;This is the finshed product but not the code. The simple code how to use iframe in asp.net to use the post in a form is what i need.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:50:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59462#M34045</guid>
      <dc:creator>rrr944276</dc:creator>
      <dc:date>2017-08-21T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59463#M34046</link>
      <description>&lt;P&gt;Actually that one is in Java, this one&amp;nbsp;&lt;A href="https://nexwebsites.com/authorizenet/" target="_blank"&gt;https://nexwebsites.com/authorizenet/&lt;/A&gt; is in C#, but the code you use to get the token is arbitrary. You say are able to get the payment form to show on Authorize.net? The only difference would be to target an iframe or modal with your form, as the case may be.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:56:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59463#M34046</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-08-21T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59506#M34089</link>
      <description>&lt;P&gt;Do you have the source for that C# sample that can be shared? I am having a heck of a time getting it to work in my asp.net project.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:47:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59506#M34089</guid>
      <dc:creator>jgoldsack</dc:creator>
      <dc:date>2017-08-23T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59511#M34094</link>
      <description>&lt;P&gt;Getting an Accept Hosted payment page is even simpler using .NetCore:&lt;/P&gt;&lt;PRE&gt;    public IActionResult Index()
        {

			HttpClient client = new HttpClient();
			client.BaseAddress = new Uri(@"https://apitest.authorize.net/");
			client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/xml"));
			HttpContent content = new StringContent(@"&amp;lt;getHostedPaymentPageRequest xmlns=""AnetApi/xml/v1/schema/AnetApiSchema.xsd""&amp;gt;
    &amp;lt;merchantAuthentication&amp;gt;
        &amp;lt;name&amp;gt;YOUR_API_LOGIN&amp;lt;/name&amp;gt;
        &amp;lt;transactionKey&amp;gt;YOUR_TRANSACTION_KEY&amp;lt;/transactionKey&amp;gt;
    &amp;lt;/merchantAuthentication&amp;gt;
    &amp;lt;transactionRequest&amp;gt;
        &amp;lt;transactionType&amp;gt;authCaptureTransaction&amp;lt;/transactionType&amp;gt;
        &amp;lt;amount&amp;gt;20.00&amp;lt;/amount&amp;gt;
    &amp;lt;/transactionRequest&amp;gt;
    &amp;lt;hostedPaymentSettings&amp;gt;
        &amp;lt;setting&amp;gt;
            &amp;lt;settingName&amp;gt;hostedPaymentBillingAddressOptions&amp;lt;/settingName&amp;gt;
            &amp;lt;settingValue&amp;gt;{""show"": true, ""required"":true}&amp;lt;/settingValue&amp;gt;
        &amp;lt;/setting&amp;gt;
        &amp;lt;setting&amp;gt;
            &amp;lt;settingName&amp;gt;hostedPaymentButtonOptions&amp;lt;/settingName&amp;gt;
            &amp;lt;settingValue&amp;gt;{""text"": ""Pay""}&amp;lt;/settingValue&amp;gt;
        &amp;lt;/setting&amp;gt;
        &amp;lt;setting&amp;gt;
            &amp;lt;settingName&amp;gt;hostedPaymentReturnOptions&amp;lt;/settingName&amp;gt;
            &amp;lt;settingValue&amp;gt;{""url"":""https://yourstore.com/good"",""urlText"":""Continue"",""cancelUrl"":""https://yourstore.com/cancel"",""cancelUrlText"":""Cancel""}&amp;lt;/settingValue&amp;gt;
        &amp;lt;/setting&amp;gt;
    &amp;lt;/hostedPaymentSettings&amp;gt;
&amp;lt;/getHostedPaymentPageRequest&amp;gt;", System.Text.Encoding.UTF8, "application/xml"); 

			HttpResponseMessage result = client.PostAsync("xml/v1/request.api", content).Result;
            result.EnsureSuccessStatusCode();
			var resultContent = result.Content.ReadAsStreamAsync().Result;
			XDocument incomingXml = XDocument.Load(resultContent);

			var token = incomingXml.Descendants()
				.Where(a =&amp;gt; a.Name.LocalName == "token")
				.FirstOrDefault().Value;
         
		ViewData["Message"] = token;
            return View();
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://nexwebhost.com/images/authorizeNetCore.jpg" border="0" alt="" width="674" height="329" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 21:44:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59511#M34094</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-08-23T21:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59565#M34147</link>
      <description>&lt;P&gt;&amp;nbsp;My issue that I am having isn't getting the token and payment page, it is after that. I understand I am supposed to have a listener page and then that processes the response back on my end, but that is where I am getting lost in what needs to be done.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 19:14:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59565#M34147</guid>
      <dc:creator>jgoldsack</dc:creator>
      <dc:date>2017-08-28T19:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59567#M34149</link>
      <description>&lt;P&gt;The response is conveyed to your parent page via your specified hostedPaymentIFrameCommunicatorUrl.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;lt;settingName&amp;gt;hostedPaymentIFrameCommunicatorUrl&amp;lt;/settingName&amp;gt;
&amp;lt;settingValue&amp;gt;{"url":"https://yourstore.com/checkout/IFrameCommunicator.html"}&amp;lt;/settingValue&amp;gt;
&amp;lt;/setting&amp;gt;&lt;/PRE&gt;&lt;P&gt;In your parent page you could have something like the following:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;script&amp;gt;
    window.CommunicationHandler = {};
    function parseQueryString(str) {
        var vars = [];
        var arr = str.split('&amp;amp;');
        var pair;
        for (var i = 0; i &amp;lt; arr.length; i++) {
            pair = arr[i].split('=');
            vars[pair[0]] = unescape(pair[1]);
        }
        return vars;
    }
    window.CommunicationHandler.onReceiveCommunication = function (argument) {
        params = parseQueryString(argument.qstr)
        parentFrame = argument.parent.split('/')[4];
        switch (params['action']) {
            case "transactResponse":
                var transResponse = JSON.parse(params['response']);
                $('#demo').html("Thank you. Your Transaction Id is: "+transResponse.transId);
                             
        }

    }

&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;What you do with the response is going to depend on what information you require and how you have your application set up.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 20:48:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/59567#M34149</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-08-28T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/60120#M34686</link>
      <description>&lt;P&gt;Hi Nexussoftware,&lt;/P&gt;&lt;P&gt;Thanks for updating on .net core support.&lt;/P&gt;&lt;P&gt;Can you please share link of any walkthrough for implementing same or link of source code you shared.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 05:32:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/60120#M34686</guid>
      <dc:creator>vishalgiri</dc:creator>
      <dc:date>2017-10-05T05:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/64912#M38689</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Nexussoftware,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am able to make the payment as you shown the example using iframe but unable to get response which shown on the iframe like transaaction id and details to our controller so i can use these data. So may you&amp;nbsp;guide what should i do? Even i am getting error in console when i am using iframe.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 05:19:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/64912#M38689</guid>
      <dc:creator>saketk</dc:creator>
      <dc:date>2018-10-31T05:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/64913#M38690</link>
      <description>&lt;P&gt;Hi NexusSoftware,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking the sample for integrating the authorizeNet using iframe as you shown in below example in java. So can you share the link or source code for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 05:26:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/64913#M38690</guid>
      <dc:creator>saketk</dc:creator>
      <dc:date>2018-10-31T05:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/65279#M38968</link>
      <description>&lt;P&gt;The example is related to .net core. Anything specific to asp.net webforms related to iframe accept hosted payment page. The php example is not helping me much (I apologies for that as am new to web development). If I had an example in asp.net webform I could use it to modify accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to integrate asp.net webform with webhooks and accept hosted authorize payment page. Am trying now for iframe one.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:42:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/65279#M38968</guid>
      <dc:creator>mvkotekar1983</dc:creator>
      <dc:date>2018-12-06T14:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/67586#M40964</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/27331"&gt;@mvkotekar1983&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide me code for asp.net webform with webhooks and did you get code iframe too?&lt;/P&gt;&lt;P&gt;Please send me that code too if you have&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 11:13:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/67586#M40964</guid>
      <dc:creator>Sahithi</dc:creator>
      <dc:date>2019-05-02T11:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: sample using iframe and lightbox for asp.net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/67604#M40982</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/mvkotekar" target="_blank"&gt;https://github.com/mvkotekar&lt;/A&gt;&amp;nbsp;this contains some exampls of authorize.net usage. THey were in working condition earlier, not sure if it works now or not. The versions of authorize.net has been changing frequently and many passvity breaks.&lt;/P&gt;</description>
      <pubDate>Sat, 04 May 2019 04:35:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/sample-using-iframe-and-lightbox-for-asp-net/m-p/67604#M40982</guid>
      <dc:creator>mvkotekar1983</dc:creator>
      <dc:date>2019-05-04T04:35:30Z</dc:date>
    </item>
  </channel>
</rss>

