简体   繁体   中英

magento2 custom payment with external redirect

Has anybody made this? I am trying to make a custom payment with external redirect and I have read everything and still can't make it work. Has anybody made a custom payment which requires an external redirection to the bank's page? I have read the paypal workflow and other stuff but if somebody has actually made it (not in theory) , then would be glad to get their help...:)

In your payment model class you have to specify getOrderPlaceRedirectUrl()

protected $_canUseCheckout= true;

public function getOrderPlaceRedirectUrl()
{
    return $this->urlBuilder->getUrl('magento4u/payment/redirect', ['_secure' => true]);
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM