Developer forum

Forum » Development » PaymentProvider base url

PaymentProvider base url

Ivan Marijanović
Ivan Marijanović
Reply

Hi!

I developed custom Payment provider and it works ok while my web site is on http.

When we switch to https we have issue because paymant gateway returns data in post and my return url is allways http (I get it like this  returnURL = this.GetBaseUrl(order);). Response gets redirected to correct address but it loses post data in redirections. 

How can je get https address as return url?

Ivan


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Ivan

That method should return the right url scheme (http vs. https) - see attachment.

But if your ssl is handled by a proxy that forwards traffic to the Dynamicweb server over regular http, that method will not work since the Dynamicweb server then does not execute as https. So maybe that is the case?

BR Nicolai

Capture.PNG
Votes for this answer: 1
 
Ivan Marijanović
Ivan Marijanović
Reply

Hi Nicolai 

You are right. DW server is http. 

Thanks

Ivan

 

You must be logged in to post in the forum