mirror of
https://github.com/10h30/woo-viet.git
synced 2026-07-11 10:46:14 +09:00
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* The class to handle the domestic OnePay gateway https://mtf.onepay.vn/developer/?page=modul_noidia
|
|
*
|
|
*
|
|
* @author htdat
|
|
* @since 1.5.0
|
|
*
|
|
*/
|
|
|
|
require_once('onepay/abstract-payment.php');
|
|
class WooViet_OnePay_Domestic extends WooViet_OnePay_Abstract {
|
|
|
|
public function configure_payment() {
|
|
$this->method_title = __( 'OnePay Domestic Gateway (by Woo Viet)', 'woo-viet' );
|
|
$this->method_description = __( 'OnePay supports all major bank ATMs in Vietnam.', 'woo-viet' );
|
|
}
|
|
|
|
public function get_onepay_payment_link( $testmode ) {
|
|
return $testmode ? 'https://mtf.onepay.vn/onecomm-pay/vpc.op' : 'https://onepay.vn/onecomm-pay/vpc.op';
|
|
}
|
|
|
|
public function get_onepay_querydr_link( $testmode ) {
|
|
return $testmode ? 'https://mtf.onepay.vn/onecomm-pay/Vpcdps.op' : 'https://onepay.vn/onecomm-pay/Vpcdps.op';
|
|
}
|
|
|
|
/**
|
|
* Initialise Gateway Settings Form Fields.
|
|
*/
|
|
public function init_form_fields() {
|
|
$this->form_fields = include( 'onepay/domestic-settings.php' );
|
|
}
|
|
} |