Files
woo-viet/inc/paypal-standard/class-woo-viet-wc-gateway-paypal-ipn-handler.php.php
T
2019-10-21 23:02:41 +07:00

22 lines
401 B
PHP

<?php
/**
* Override/remove two validate functions in the parent class
*
* @author htdat
* @since 1.4.5
*
*/
if ( class_exists( 'WC_Gateway_Paypal_IPN_Handler' ) ) {
class Woo_Viet_WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_IPN_Handler {
protected function validate_currency( $order, $currency ) {
}
protected function validate_amount( $order, $amount ) {
}
}
}