[Skip to main content](#vessel-content)

#   Authorize.net using DPM API, Return URL in iframe

##

- **[Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")**
- [![Billymb3's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8027-billymb3 "View Billymb3's Profile") Topic Author
- [ Offline](/forum/user/8027-billymb3)

Less More

- Posts: 8
- Thank you received: 3
-
-

14 years 1 month ago [\#67988](#67988) by [Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")  *[Authorize.net using DPM API, Return URL in iframe](/forum/4-how-to/67988-authorize-net-using-dpm-api-return-url-in-iframe#67988 "I am using the Authorize.net plugin with the DPM API working nicely on everything but the return back to the site. Upon completing the transaction you are posted with a message asking if you would...")* was created by *[Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")*

I am using the Authorize.net plugin with the DPM API working nicely on everything but the return back to the site. Upon completing the transaction you are posted with a message asking if you would like to go back to the store or not (I think pulling from the file authorize_thankyou.php). This is all still in the iframe and when click on the link to go back to the store it loads the thank-you page in the same iframe instead of closing the iframe and returning back to the main window.

My first thought was to use a php header redirect but I still need to close the iframe so I believe I need to use Javascript to close the window and direct the parent window to the thank-you page (where I will hopefully be able to show the order summary from com_hikashop&amp;ctrl=checkout&amp;task=after_end).

Am I overlooking something? Has someone encountered this problem? Any thoughts would be greatly appreciated, thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3OTg4LWF1dGhvcml6ZS1uZXQtdXNpbmctZHBtLWFwaS1yZXR1cm4tdXJsLWluLWlmcmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")**
- [![Billymb3's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8027-billymb3 "View Billymb3's Profile") Topic Author
- [ Offline](/forum/user/8027-billymb3)

Less More

- Posts: 8
- Thank you received: 3
-
-

14 years 1 month ago [\#67991](#67991) by [Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")  Replied by *[Billymb3](/forum/user/8027-billymb3 "View Billymb3's Profile")* on topic *[Re: Authorize.net using DPM API, Return URL in iframe](/forum/4-how-to/67988-authorize-net-using-dpm-api-return-url-in-iframe#67991 "I am using the Authorize.net plugin with the DPM API working nicely on everything but the return back to the site. Upon completing the transaction you are posted with a message asking if you would...")*

Figured it out with some javascript.
Code:

&lt;script type="text/javascript"&gt; function redirect(){ window.top.location.href = "http://www.url.com/thank-you-page" } document.onload = redirect(); &lt;/script&gt;

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3OTg4LWF1dGhvcml6ZS1uZXQtdXNpbmctZHBtLWFwaS1yZXR1cm4tdXJsLWluLWlmcmFtZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.040 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
