The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Payment Plugin With 3rd Party redirection Troubles

Posted: October 27, 2015 at 5:14 PM Quote #153864
Hi,

I'm developing a payement plugin. Everything is ok, till i try to redirect to Payment Gateway.
I've got a redirect url like : http://localhost/checkout/URLOFTHIRDParty

Any help?

10x at advance.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 27, 2015 at 6:04 PM Quote #153865
I've found the solution.
That was using URL.Encode method that causes the error.
I've just used simple URL without encoding and it works.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 17, 2019 at 7:26 AM Quote #244786
I am having trouble with redirecting to 3rd Party URL. It redirects to the cart url. Cant figure out why?

My code :

            

public void PostProcessPayment(PostProcessPaymentRequest postProcessPaymentRequest)
{

             var baseUrl = "https://example.com"
            _httpContextAccessor.HttpContext.Response.Redirect(baseUrl);

}

I would appreciate if anyone can help me.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: August 18, 2019 at 4:25 AM Quote #244808
How did you go ?
I add the code above to the top of the PayPalStandard Plugin (with a semicolon added ) as a test and it worked fine

        public void PostProcessPayment(PostProcessPaymentRequest postProcessPaymentRequest)
        {

            var baseUrl = "https://example.com";
            _httpContextAccessor.HttpContext.Response.Redirect(baseUrl);
            return;
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
www.SelectSystems.com.au
Select Systems International is a computer systems technology solution developer and integration service provider.
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more