Created
January 23, 2020 16:18
-
-
Save vanbo/fcf2fc7174e12e19c81100014dcc0537 to your computer and use it in GitHub Desktop.
WC Epay.bg OneTouch - Filter Setup Payment Request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Place the code in your theme/functions.php file | |
| */ | |
| add_filter( 'wc_epay_one_touch_payment_setup_params', 'prefix_epaytouch_setup_params', 10, 4 ); | |
| function prefix_epaytouch_setup_params( $params, $device_id, $token, $account_payment_class ) { | |
| if ( isset( $params['EXP'] ) ) { | |
| // remove the expiration time | |
| unset( $params['EXP'] ); | |
| } | |
| return $params; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment