Payment Plugin for Payfort

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
FormCollection will not go with the URL so I think you need to add [HttpPost] attribute on the Action method. Can you please try that?
7 years ago
SuperNopCommerce wrote:
FormCollection will not go with the URL so I think you need to add [HttpPost] attribute on the Action method. Can you please try that?


I'll try that and get back to you if that helps.

Regards.
7 years ago
SuperNopCommerce wrote:
FormCollection will not go with the URL so I think you need to add [HttpPost] attribute on the Action method. Can you please try that?


I tried but still I'm getting the same page not found error.

When the payment gateway redirects to our store, they append the data in the URL. Please try one sample transaction. I'll PM you the card details.

Regards.
7 years ago
Ok I will check and let you know.
7 years ago
Hi I tried, It shows message like Signature is mismatched.
Please check this error in the your payment gateway error codes. You can find that in their support documents. Else you can try this in localhost and debug full plugin.
Other than this can't help you blindly
7 years ago
SuperNopCommerce wrote:
Hi I tried, It shows message like Signature is mismatched.
Please check this error in the your payment gateway error codes. You can find that in their support documents. Else you can try this in localhost and debug full plugin.
Other than this can't help you blindly


Thanks for checking out.

Yes! I've found the error which was causing that.

I'll explicitly given that error message for testing. I'm now almost done with the plugin. Will share the cause of error once I complete the plugin.

Regards.

Pramil
7 years ago
Fine. Please share here so we can also use your findings in future :)
7 years ago
Hi

I am also struck in the credit card payment plugin , MVC is new for me.

I don't understand that how to handle post back url. I see your questions in the forum, I face the same problem.

If you share your plugin with me its a great help for me to complete my plugin.

I shall be very thankful to you for this act of kindness.

Waiting your earliest response.

My Email address is [email protected]

Thanks
7 years ago
sm4pk wrote:
Hi

I am also struck in the credit card payment plugin , MVC is new for me.

I don't understand that how to handle post back url. I see your questions in the forum, I face the same problem.

If you share your plugin with me its a great help for me to complete my plugin.

I shall be very thankful to you for this act of kindness.

Waiting your earliest response.

My Email address is [email protected]

Thanks


Thanks for seeking help.

In the return method collect all the parameters sent by Payfort using FormCollection.

access_code = Request["access_code"];
            amount = Request["amount"];
            command = Request["command"];
            currency = Request["currency"];
            customer_email = Request["customer_email"];
            language = Request["language"];
            merchant_identifier = Request["merchant_identifier"];
            signature = Request["signature"];
            response_message = Request["response_message"];
            orderId = Request["merchant_reference"];
            card_number = Request["card_number"];
            customer_ip = Request["customer_ip"];
            customer_name = Request["customer_name"];
            eci = Request["eci"];
            expiry_date = Request["expiry_date"];
            fort_id = Request["fort_id"];
            payment_option = Request["payment_option"];
            response_code = Request["response_code"];
            status = Request["status"];
            number_of_installments= Request["number_of_installments"];

These were the parameters which I was getting.

Use requestb.in to check which parameters are being sent.

Also enter the Return URL in Payfort settings properly.

I was using the wrong return URL due to which I was not getting the results.

Reply if you face any further problems.

Regards.
7 years ago
Hi,

please let me know if you have completed the plugin for payfort because i need this plugin also
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.