0

I am new in magento development. i am developing payment gateway and i am stucked on checkout process please help me to out. I couldn't find how to do this let say

I don't find how to do following tasks

  1. User submit checkout page then he will redirect to third party site fill credentials on site and site will redirect to specific url for complete checkout

  2. How generate Cancel Url and Accept url ( url for complete checkout process ) because gateway need. Gateway will redirect to Cancel url if user click on cancel button on gateway site but if he successfull in payment then redirect to complete url with some post data

Please help me to solve this problem; i can't use curl or any sort of php server side post validations

2 Answers 2

1

You don't want to use any curl or server side stuff. This would mean the user submits his credentials to you and not the payment provider. Man in the middle for free.

Have a look on the paypal redirect: \Mage_Paypal_Block_Standard_Redirect.

Use a <form> with all the informations and submit it with JavaScript

3
  • its not working
    – Karan Dare
    Commented Jun 12, 2013 at 9:32
  • now i don't know my payment gateways model is loading but its not available in payment gateway list on frontend did you have idea why this is happen
    – Karan Dare
    Commented Jun 12, 2013 at 10:51
  • With this small information? no. I'm not experienced with payment gateways and don't know the usual problems Commented Jun 12, 2013 at 10:54
0

google on below points you can solve the redirect issue + cancel issue. You need to implement below function based on your requirement.

public function getOrderPlaceRedirectUrl() {
return "http://yahoo.com";
}  
public function getCheckoutRedirectUrl() {
      return "http://yahoo.com";
}

cancel function at payment gateway is implements via java script

window.history.go(-1);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.