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
9565a8f574
Sanitize admin settings
2024-01-13 23:19:51 +07:00
Đào Hoàng Sơn
860354c64f
Update VN cities as of July 1st, 2021 ( #81 )
2021-10-03 01:17:22 +07:00
Dat Hoang
0e0ef82954
Add rating and support links in the end of the settings page #30
...
Close #30
2020-09-06 16:53:02 +07:00
Dat Hoang
e6759edbf1
Fix: make exchange rate fields better visible
2020-09-06 15:57:58 +07:00
Dat Hoang
05ae206a4e
Ensure that PayPal Checkout SDK will load with the correct currency
...
Details in this comment https://github.com/htdat/woo-viet/issues/73#issuecomment-685841637
2020-09-03 21:13:06 +07:00
Dat Hoang
7c40f3b69a
Let action ppec_match_currency_order run after the other action in the main plugin
...
More details in https://github.com/htdat/woo-viet/issues/73#issuecomment-685768769
2020-09-03 21:09:05 +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
3a82b9d23c
Handle OnePay options in the settings page better
...
If a payment gateway option is NOT checked, it should not echo any link to configuration pages.
2020-09-03 20:01:24 +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
bf2f84a380
Add settings to handle OnePay Intl gateway
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 Hoang
55b7b14c5d
TEMP - add important changes for intl gateway
2020-09-03 19:38:18 +07:00
Dat A8C19
6250762e7b
Reformat code - no major change
2019-10-21 23:02:41 +07:00
Đào Hoàng Sơn
9edd924c1b
Update VN cities. ( #68 )
...
Data source: https://github.com/daohoangson/dvhcvn
2019-10-21 23:02:41 +07:00
Dat Hoang
195f246f22
Fix issue #65 ( #67 )
...
* An idea to fix issue 65
Needs to refine the code before publishing it
* Polish the fix for issue #65
* Needs to remove the filter valid-paypal-standard-ipn-request also
2019-10-21 23:02:41 +07:00
Dat Hoang
12649806c3
Fix fatal error when handling PayPal IPN #56
2018-05-12 09:48:47 +00:00
Dat Hoang
690312dd87
Revert this commit 1ad14ee9b8. Wrong approach
2018-05-12 07:28:54 +00:00
longnguyen
68752ae215
Support PayPal Express Checkout #27 ( #46 )
2018-04-24 22:36:04 +07:00
Dat Hoang
9c371f6d74
Add the comment to make clear for "switch ( $type )"
2018-04-22 21:10:20 +07:00
longnguyen
0e4e78a89a
Fix bug OnePay domestic gateway #45 ( #50 )
2018-04-22 21:04:26 +07:00
Dat Hoang
ae4743a2f2
Fix the small typo - #33
2018-04-16 22:41:16 +07:00
Dat Hoang
137f0d2ac8
Clarify the purpose of the scripts
2018-04-16 22:19:32 +07:00
longnguyen
cf7bf361c1
Improve order checkout page #17 ( #43 )
...
Issue #17 - Arrange the address fields to the Vietnam standard: Country - Province - District - Address
2018-04-16 21:59:23 +07:00
Long
1ad14ee9b8
Fix Order status error #37
2018-04-08 10:42:57 +07:00
htdat
c22f935e96
Update survey links - #29
2017-07-03 23:58:37 +07:00
htdat
4e78194ba9
Add the questionnaire after 4 weeks - the coding part - #29
2017-07-03 14:15:04 +07:00
htdat
0c43ee467d
Fix: Error in WooCommerce 3.0.x - order->id - #24
2017-07-02 18:08:37 +07:00
htdat
fac3a9709f
Save the log. See the PayPal Standard gateway #24
2017-07-02 17:59:13 +07:00
htdat
2e4c7b6265
Improve the link to the OnePay setting
2017-07-02 16:27:43 +07:00
htdat
941438dda8
Correct the typos
2017-04-22 15:49:49 +07:00
htdat
8df0f11869
Open OnePay for VND only
2017-04-22 12:47:24 +07:00
htdat
6c76275499
OnePay - Add the bank logos in the checkout page #20
2017-04-22 12:15:15 +07:00
htdat
69c7dfae3c
Clean some redundant codes
2017-04-22 11:48:27 +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
4f73556b27
Correct the code for IPN
...
Use exit() instead of wp_die()
2017-04-22 09:58:48 +07:00
htdat
9fe23bd609
Make the process data better - require $type
2017-04-22 09:37:05 +07:00
htdat
0e252a978a
Add the option in the Woo Viet setting page
2017-04-20 17:39:11 +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
cb989175a5
Added functions to handle IPN and return URL
...
Still need to consider something more
2017-04-18 19:01:50 +07:00
htdat
5f43aeb47d
Finish: Build the payment URL
2017-04-18 10:06:25 +07:00