Reply
Member
Posts: 7
Registered: ‎06-04-2019

Payment processing issue while using Accept HOST( embedded iframe method)

Hi,

 

I have a requirement in integrating the Authorize.net has an accept hosted page. I have tried 2 approaches.

 

1. Tried using the redirect method, but this wasn't returning me any response and when researched a bit came to know webhooks is required for the response is this the only solution or any other approach is there?

 

2. While using an embedded iframe approach I get an error in browser console as 

Refused to display 'https://localhost:9002/authorizeadapter/iframeCommunicatore#action=resizeWindow&width=750&height=699.109' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

how to handle this issue?

And also came to know that iframe has been deprecated from one of the resources is right?

 

If deprecated what should be approach in integrating Authorize.net.

 

Thanks all!

Sai

All Star
Posts: 685
Registered: ‎11-05-2018

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@sai_06 

 

There isn't a suitable alternative to webhooks that I know, and that's not a bad thing. They work extremely well. I am using iframes on my current and future projects, and I still use webhooks to get responses.

 

Your cross-origin issue has been documented by others and you can search the forum for solutions.

Member
Posts: 7
Registered: ‎06-04-2019

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@Renaissance 

 

Even after using iframe are using webhooks to get the response?

And how much time does it take for the response after a transaction is made?

 

All Star
Posts: 685
Registered: ‎11-05-2018

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@sai_06 

 

99% + come withing 3 to 5 seconds of the transaction being successful. You use your return URL as normal, but your db updates and whatever other order processing you might run happen based on the webhook. 

Member
Posts: 7
Registered: ‎06-04-2019

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@Renaissance 

 

Thanks for your response.

Regarding the same origin issue which is occurring only in chrome, I wasn't able to get any solution from the forum that worked out. Could you help me on these if possible?

 

And also came to know that iframe got deprecated and it's not recommended to use is it true?

 

 

All Star
Posts: 685
Registered: ‎11-05-2018

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@sai_06 

 

No the iframe isn't deprecated. Not sure where that idea came from.  I will look at this at breakfast tomorrow. This issue has been addressed on this forum many times.  

Member
Posts: 7
Registered: ‎06-04-2019

Re: Payment processing issue while using Accept HOST( embedded iframe method)

 

@Renaissance 

 

Thanks for your help. The same origin issue has been solved.

All Star
Posts: 685
Registered: ‎11-05-2018

Re: Payment processing issue while using Accept HOST( embedded iframe method)

[ Edited ]
@sai_06

Excellent. Now set up webhooks and you’ll be on your way.
Member
Posts: 7
Registered: ‎06-04-2019

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@Renaissance 

 

Without the webhooks I am able to get the response once the transaction is done, I have implemented the embedded Iframe approach.

 

All Star
Posts: 685
Registered: ‎11-05-2018

Re: Payment processing issue while using Accept HOST( embedded iframe method)

@sai_06 

Yep you sure are, but you can get a webhook followed up with a method call for the transaction details and get a more complete response.  Look at the getTransactionDetails method call in the API reference and compare that with the response fields in the iframe.