我指的是magento 2付款扩展(https://support.payhere.lk/shopping-cart-plugins/plugin-for-magento)
但是我有点困惑,我需要在哪里放置身份验证代码和客户端ID以及终点URL
函数getPaymentGetwayRedirectUrl(){
if ($this->objConfigSettings['sandbox_mode']) {
return 'https://example.lk/pay/checkout';
} else {
return 'https://www.example.lk/pay/checkout';
}
}