I am developing my custom payment plugin on 3.8. The goal is to redirect the user to the wari site so that he can complete the payment. After reading the documentation, I understood that I needed to implement the PostProcessPayment method in my wariwebPaymentProcessor class.
Currently I have everything I need to access the wari site (Merchant, url ...), I really try to imitate several examples that I saw on the forums nop unfortunately I do not understand always nothing. So can someone clear me on the subject? if so, how could I implement this method as simply as possible to redirect my users to the third party site.
And also, what method I must implement to receive the identifiers (token, code succes, code error etc ...) that the wari returns me
Here is the third party website URL (wari)
https://www.wariglobalpay.com/testpayementws
And the method
public void PostProcessPayment(PostProcessPaymentRequest postProcessPaymentRequest)
{
RedirectToWariWebModel model = new RedirectToWariWebModel();
model.OrderGuid = postProcessPaymentRequest.Order.OrderGuid;
_httpContext.Response.RedirectToRoute("Plugin.Payments.WariWeb.RedirectInfo", model);
}