Commit Graph

20 Commits

Author SHA1 Message Date
Dat Hoang 96bb0fa9ab Fix PHP 8.2+ deprecation warnings for dynamic property creation (#95)
Declare protected properties in WooViet_OnePay_Abstract class to resolve
deprecation warnings when creating dynamic properties in PHP 8.2+.

Properties declared:
- $testmode
- $merchant_id
- $access_code
- $secure_secret
- $user
- $password
- $debug

This fix is backward compatible with older PHP versions and resolves
the warnings reported in issue #94.

Fixes #94

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-06 11:31:36 +07:00
Dat Hoang 5487c55a2b Improvement: remove redundancy 2020-09-03 20:45:57 +07:00
Dat Hoang 3c818d3d6d OnePay gateways: move Order Button text to payment settings 2020-09-03 20:23:47 +07:00
Dat Hoang 7a2ac200d8 Small changes to make the code cleaner 2020-09-03 19:38:18 +07:00
Dat Hoang ec28b890fa Fixed depreciated cancel_order method 2020-09-03 19:38:18 +07:00
Dat Hoang 9bc9726151 Handle handle_onepay_querydr 2020-09-03 19:38:18 +07:00
Dat Hoang d039192043 Handle error codes and messages 2020-09-03 19:38:18 +07:00
Dat Hoang 3dde550c88 Handle different logo images 2020-09-03 19:38:18 +07:00
Dat Hoang 14aadd581b Handle order notes 2020-09-03 19:38:18 +07:00
Dat Hoang be85184ca2 Handle different payment and queryDR links 2020-09-03 19:38:18 +07:00
Dat Hoang 61308bb4c2 Update international-settings.php 2020-09-03 19:38:18 +07:00
Dat Hoang 659c7e63d3 Seperate Intl and Domestic classes for OnePay 2020-09-03 19:38:18 +07:00
Dat A8C19 6250762e7b Reformat code - no major change 2019-10-21 23:02:41 +07:00
htdat fac3a9709f Save the log. See the PayPal Standard gateway #24 2017-07-02 17:59:13 +07:00
htdat 941438dda8 Correct the typos 2017-04-22 15:49:49 +07:00
htdat a33745b850 Reformat code by PHPStorm 2017-04-22 10:40:10 +07:00
htdat dc226abb88 Change: 1.3 - OnePay Domestic Gateway should not be active by default #18 2017-04-22 10:34:02 +07:00
htdat 70d2182b50 Almost finish
Need to check: IPN and queryDR
And add the option in WooViet settings page
2017-04-20 17:02:19 +07:00
htdat 5f43aeb47d Finish: Build the payment URL 2017-04-18 10:06:25 +07:00
htdat 3eeb71bf69 The skeleton files for OnePay Domestic 2017-04-17 21:46:56 +07:00