Changeset 3194833
- Timestamp:
- 11/22/2024 10:19:44 AM (17 months ago)
- Location:
- payos/tags/1.0.6
- Files:
-
- 7 edited
- 1 copied
-
. (copied) (copied from payos/trunk) (1 prop)
-
assets/js/payos-checkout.js (modified) (1 diff)
-
classes/class-payos.php (modified) (14 diffs)
-
languages/payos-vi.mo (modified) (previous)
-
languages/payos-vi.po (modified) (11 diffs)
-
languages/payos.pot (modified) (5 diffs)
-
payos.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payos/tags/1.0.6
- Property svn:ignore
-
old new 1 deploy.sh1 *.sh 2 2 README.md 3 makepot.sh4 3 .git 5 4 .gitignore
-
- Property svn:ignore
-
payos/tags/1.0.6/assets/js/payos-checkout.js
r3143315 r3194833 61 61 if (eventData.type !== "payment_response") return; 62 62 const responseData = eventData.data; 63 if (responseData ?.status === "PAID") {63 if (responseData && responseData.status === "PAID") { 64 64 window.removeEventListener("beforeunload", beforeUnloadHandler); 65 65 showUI(content, payos_checkout_data.message, payos_checkout_data.icon); 66 if (payos_checkout_data.refresh_when_paid === 'yes') { 67 setInterval(() => { 68 window.location.reload(); 69 }, 5000); 70 } 66 71 } 67 72 }; -
payos/tags/1.0.6/classes/class-payos.php
r3146385 r3194833 49 49 static private $PAYOS_ORDER_EXIST = 231; 50 50 static private $PAYOS_WEBHOOK_ENDPOINT = "verify_payos_webhook"; 51 static p rivate$payos_default_settings = array(51 static public $payos_default_settings = array( 52 52 'use_payment_gateway' => 'yes', 53 53 'client_id' => '', … … 60 60 ), 61 61 'transaction_prefix' => 'DH', 62 'redirect' => 'yes',63 62 'link_webhook' => 'no', 64 63 'gateway_info' => array( … … 67 66 'account_name' => '', 68 67 'bank_name' => '' 69 ) 68 ), 69 'refresh_upon_successful_payment' => 'no' 70 70 ); 71 71 static private $PAYOS_BLACK_LIST_PREFIX = array("FT", "TF", "TT", "VQR"); … … 210 210 public function payos_save_settings_and_reset_webhook() 211 211 { 212 if (is _array($_REQUEST['payos_gateway_settings'])) {212 if (isset($_REQUEST['payos_gateway_settings']) && is_array($_REQUEST['payos_gateway_settings'])) { 213 213 // Sanitize each field 214 $client_id = sanitize_text_field($_REQUEST['payos_gateway_settings']['client_id']); 215 $api_key = sanitize_text_field($_REQUEST['payos_gateway_settings']['api_key']); 216 $checksum_key = sanitize_text_field($_REQUEST['payos_gateway_settings']['checksum_key']); 217 $transaction_prefix = sanitize_text_field($_REQUEST['payos_gateway_settings']['transaction_prefix']); 214 $client_id = isset($_REQUEST['payos_gateway_settings']['client_id']) ? sanitize_text_field($_REQUEST['payos_gateway_settings']['client_id']) : ''; 215 $api_key = isset($_REQUEST['payos_gateway_settings']['api_key']) ? sanitize_text_field($_REQUEST['payos_gateway_settings']['api_key']) : ''; 216 $checksum_key = isset($_REQUEST['payos_gateway_settings']['checksum_key']) ? sanitize_text_field($_REQUEST['payos_gateway_settings']['checksum_key']) : ''; 217 $transaction_prefix = isset($_REQUEST['payos_gateway_settings']['transaction_prefix']) ? sanitize_text_field($_REQUEST['payos_gateway_settings']['transaction_prefix']) : ''; 218 $refresh_upon_successful_payment = isset($_REQUEST['payos_gateway_settings']['refresh_upon_successful_payment']) ? $_REQUEST['payos_gateway_settings']['refresh_upon_successful_payment'] : 'no'; 218 219 219 220 if ( … … 249 250 'transaction_prefix' => $transaction_prefix, 250 251 'order_status' => $sanitized_order_status, 251 'link_webhook' => sanitize_text_field($_REQUEST['payos_gateway_settings']['link_webhook']) 252 'order_status' => $sanitized_order_status, 253 'link_webhook' => isset($_REQUEST['payos_gateway_settings']['link_webhook']) ? sanitize_text_field($_REQUEST['payos_gateway_settings']['link_webhook']) : 'no', 254 'refresh_upon_successful_payment' => $refresh_upon_successful_payment 252 255 )); 253 256 } … … 339 342 'id' => [], 340 343 'onclick' => [], 341 'class' => [] 344 'class' => [], 345 'checked' => [] 342 346 ], 343 347 'select' => [ … … 462 466 $payment_gateway_config .= '</select> 463 467 </td> 464 </tr> 465 <tr id="payos_gateway_settings_redirect" valign="top"> 466 <th scope="row">' . esc_html(__('Redirect payOS:', 'payos')) . '</th> 468 </tr>'; 469 470 $payment_gateway_config .= '<tr id="payos_gateway_settings_refresh" valign="top"> 471 <th scope="row">' . esc_html(__('Enable refresh upon successful payment:', 'payos')) . '</th> 467 472 <td id="payos_gateway_settings"> 468 <input name="payos_gateway_settings[re direct]" type="hidden" value="no">469 <input name="payos_gateway_settings[re direct]" type="checkbox" value="yes" id="redirect" ' . checked($this->payos_gateway_settings['redirect'], 'yes', false) . ' />470 <label for="payos_gateway_settings[re direct]">' . esc_html(__('On/Off', 'payos')) . '</label>473 <input name="payos_gateway_settings[refresh_upon_successful_payment]" type="hidden" value="no"> 474 <input name="payos_gateway_settings[refresh_upon_successful_payment]" type="checkbox" value="yes" id="refresh" ' . checked($this->payos_gateway_settings['refresh_upon_successful_payment'], 'yes', false) . ' /> 475 <label for="payos_gateway_settings[refresh_upon_successful_payment]">' . esc_html(__('Enable', 'payos')) . '</label> 471 476 </td> 472 477 </tr>'; … … 486 491 'redirect_url' => '', 487 492 'checkout_url' => '', 488 'status' => isset($attributes['status']) ? $attributes['status'] : 'DEFAULT' 493 'status' => isset($attributes['status']) ? $attributes['status'] : 'DEFAULT', 494 'refresh_when_paid' => $this->payos_gateway_settings['refresh_upon_successful_payment'] 489 495 ); 490 496 … … 501 507 $payos_data['icon'] = PAYOS_GATEWAY_URL . '/assets/img/success.png'; 502 508 $payos_data['message'] = __('Order has been successfully paid.', 'payos'); 509 $payos_data['refresh_when_paid'] = 'no'; 503 510 } elseif ($payos_data['status'] === 'ERROR') { 504 511 $payos_data['icon'] = PAYOS_GATEWAY_URL . '/assets/img/failed.png'; … … 519 526 return '<div id="payos-checkout-container"></div>'; 520 527 } 521 522 528 523 529 public function use_payment_gateway_template(string $status = null, string $checkout_url = null, $order = null) … … 775 781 $txtBody = file_get_contents('php://input'); 776 782 $body = json_decode(str_replace('\\', '\\\\', $txtBody), true); 783 $is_test_webhook = $body['desc'] == 'Giao dich thu nghiem' || $body['data']['description'] == 'VQRIO123' || $body['data']['reference'] == 'MA_GIAO_DICH_THU_NGHIEM'; 777 784 try { 778 if ($body['desc'] == 'Giao dich thu nghiem' || $body['data']['description'] == 'VQRIO123' || $body['data']['reference'] == 'MA_GIAO_DICH_THU_NGHIEM') {779 echo esc_html__('Webhook delivered successfully', 'payos');780 die();781 }782 783 785 if ($body['code'] !== self::$PAYOS_SUCCESS) { 784 786 throw new Exception(strval($body['desc']), intval($body['code'])); … … 795 797 $signature = $this->create_signature($transaction); 796 798 if (!$body['signature'] || $signature !== $body['signature']) { 797 $order->update_status($payos_gateway_settings['order_status']['order_status_after_failed']); 798 $order->add_order_note(__('Order has been cancelled', 'payos')); 799 if (!$is_test_webhook) { 800 $order->update_status($payos_gateway_settings['order_status']['order_status_after_failed']); 801 $order->add_order_note(__('Order has been cancelled', 'payos')); 802 } 799 803 throw new Exception(__('Data not integrity', 'payos')); 804 } 805 if ($is_test_webhook) { 806 echo esc_html__('Webhook delivered successfully', 'payos'); 807 die(); 800 808 } 801 809 // --------------------------------------------------------- … … 849 857 $logger->error(wc_print_r($body, true), array('error' => $e->getMessage(), 'source' => 'payos-webhook')); 850 858 $response = array('code' => $e->getCode(), 'message' => $e->getMessage()); 859 http_response_code(500); 851 860 echo wp_json_encode($response); 852 861 die(); … … 895 904 } 896 905 897 $logger->warning(__('Webhook creation response did not meet success criteria.', 'payos'), array('source' => 'payos-webhook' ));906 $logger->warning(__('Webhook creation response did not meet success criteria.', 'payos'), array('source' => 'payos-webhook', 'error' => $response)); 898 907 return null; 899 908 } -
payos/tags/1.0.6/languages/payos-vi.po
r3146385 r3194833 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "POT-Creation-Date: 2024-08-19T11:53:04+02:00\n" 13 "PO-Revision-Date: 2024-09- 04 08:08+0000\n"13 "PO-Revision-Date: 2024-09-20 08:17+0000\n" 14 14 "X-Generator: Loco https://localise.biz/\n" 15 15 "X-Domain: payos\n" … … 19 19 20 20 #. translators: 1: order code, 2: amount, 3: description, 4: account number, 5: reference 21 #: classes/class-payos.php:8 5421 #: classes/class-payos.php:844 22 22 msgid "" 23 23 "<b>Transaction Information:</b> <br> Order Code: %1$s <br> Amount: %2$s <br> " … … 27 27 "Mô tả: %3$s <br> Số tài khoản: %4$s <br > Mã tham chiếu: %5$s" 28 28 29 #: classes/class-payos.php:38 329 #: classes/class-payos.php:386 30 30 msgid "Account name" 31 31 msgstr "Tên tài khoản" 32 32 33 #: classes/class-payos.php:38 233 #: classes/class-payos.php:385 34 34 msgid "Account number" 35 35 msgstr "Số tài khoản" 36 36 37 #: classes/class-payos.php:40 437 #: classes/class-payos.php:407 38 38 msgid "API Key" 39 39 msgstr "API Key" 40 40 41 #: classes/class-payos.php:6 3041 #: classes/class-payos.php:608 42 42 msgid "Awaiting payment" 43 43 msgstr "Chờ thanh toán" 44 44 45 #: classes/class-payos.php:38 445 #: classes/class-payos.php:387 46 46 msgid "Bank" 47 47 msgstr "Ngân hàng" … … 51 51 msgstr "Không thể lưu thiết lập! Vui lòng tải lại trang" 52 52 53 #: classes/class-payos.php:48 5 classes/class-payos.php:50653 #: classes/class-payos.php:489 classes/class-payos.php:511 54 54 msgid "Cannot show payment link" 55 55 msgstr "Không thể hiển thị link thanh toán" 56 56 57 #: classes/class-payos.php:4 1757 #: classes/class-payos.php:420 58 58 msgid "Check connection payOS" 59 59 msgstr "Kiểm tra kết nối payOS" 60 60 61 #: classes/class-payos.php:41 161 #: classes/class-payos.php:414 62 62 msgid "Checksum Key" 63 63 msgstr "Checksum Key" 64 64 65 #: classes/class-payos.php: 39765 #: classes/class-payos.php:400 66 66 msgid "Client ID" 67 67 msgstr "Client ID" 68 68 69 #: classes/class-payos.php:29 6 classes/class-payos.php:37869 #: classes/class-payos.php:298 classes/class-payos.php:381 70 70 msgid "Connected" 71 71 msgstr "Đã kết nối" 72 72 73 #: classes/class-payos.php:37 173 #: classes/class-payos.php:374 74 74 msgid "Connection Information" 75 75 msgstr "Thông tin kết nối" 76 76 77 #: classes/class-payos.php:8 15 classes/class-payos.php:98477 #: classes/class-payos.php:805 classes/class-payos.php:974 78 78 msgid "Data not integrity" 79 79 msgstr "Dữ liệu không toàn vẹn" 80 80 81 #: classes/class-payos.php:2 7881 #: classes/class-payos.php:280 82 82 msgid "Description" 83 83 msgstr "Mô tả" 84 84 85 #: classes/class-payos.php:267 85 #: classes/class-payos.php:475 86 msgid "Enable" 87 msgstr "Kích hoạt" 88 89 #: classes/class-payos.php:269 86 90 msgid "Enable bank transfer" 87 91 msgstr "Kích hoạt chuyển khoản ngân hàng" 88 92 89 #: classes/class-payos.php:265 93 #: classes/class-payos.php:471 94 msgid "Enable refresh upon successful payment:" 95 msgstr "Tải lại trang khi thanh toán thành công:" 96 97 #: classes/class-payos.php:267 90 98 msgid "Enable/Disable" 91 99 msgstr "Kích hoạt/Vô hiệu hóa" 92 100 93 #: classes/class-payos.php:39 2101 #: classes/class-payos.php:395 94 102 msgid "Enter information of payOS" 95 103 msgstr "Nhập thông tin của payOS" 96 104 97 105 #. translators: %d: order code 98 #: classes/class-payos.php: 807106 #: classes/class-payos.php:797 99 107 msgid "Error when get order #%d" 100 108 msgstr "Lỗi khi lấy mã đơn hàng #%d" 101 109 102 #: classes/class-payos.php:38 1110 #: classes/class-payos.php:384 103 111 msgid "Gateway name" 104 112 msgstr "Tên cổng thanh toán" 105 113 106 #: classes/class-payos.php:29 7114 #: classes/class-payos.php:299 107 115 msgid "Hide" 108 116 msgstr "Ẩn" … … 118 126 msgstr "https://payos.vn/docs/tich-hop-webhook/woocommerce/" 119 127 120 #: classes/class-payos.php:4 18128 #: classes/class-payos.php:421 121 129 msgid "Instructions to get Client ID and API Key" 122 130 msgstr "Hướng dẫn lấy Client ID và API Key" 123 131 124 #: classes/class-payos.php:4 27132 #: classes/class-payos.php:430 125 133 msgid "" 126 134 "Maximum 3 characters, no spaces and no special characters. If contained, it " … … 130 138 " Vui lòng không bắt đầu bằng FT, TF, TT, VQR" 131 139 132 #: classes/class-payos.php:29 6 classes/class-payos.php:376140 #: classes/class-payos.php:298 classes/class-payos.php:379 133 141 msgid "No Connection" 134 142 msgstr "Không có kết nối" 135 143 136 #: classes/class-payos.php:6 50144 #: classes/class-payos.php:628 137 145 msgid "Not use PayOS as payment method" 138 146 msgstr "Không sử dụng payOS làm phương thức thanh toán" 139 147 140 #: classes/class-payos.php:6 53148 #: classes/class-payos.php:631 141 149 msgid "Not use PayOS payment gateway" 142 150 msgstr "Không sử dụng cổng thanh toán payOS" 143 151 144 #: classes/class-payos.php:471 145 msgid "On/Off" 146 msgstr "Bật/Tắt" 147 148 #: classes/class-payos.php:814 152 #: classes/class-payos.php:804 149 153 msgid "Order has been cancelled" 150 154 msgstr "Đơn hàng đã bị hủy" 151 155 152 #: classes/class-payos.php:8 35156 #: classes/class-payos.php:825 153 157 msgid "Order has been overpaid" 154 158 msgstr "Đơn hàng đã thanh toán dư" 155 159 156 #: classes/class-payos.php: 499 classes/class-payos.php:503160 #: classes/class-payos.php:504 classes/class-payos.php:508 157 161 msgid "Order has been successfully paid." 158 162 msgstr "Đơn hàng đã thanh toán thành công." 159 163 160 #: classes/class-payos.php:8 42164 #: classes/class-payos.php:832 161 165 msgid "Order has been underpaid" 162 166 msgstr "Đơn hàng bị thanh toán thiếu." 163 167 164 #: classes/class-payos.php:28 1168 #: classes/class-payos.php:283 165 169 msgid "Pay for orders via payOS. Supported by almost Vietnamese banking apps" 166 170 msgstr "Thanh toán thông qua payOS. Hỗ trợ hầu hết các ngân hàng tại Việt Nam." 167 171 168 #: classes/class-payos.php:77 classes/class-payos.php:27 4172 #: classes/class-payos.php:77 classes/class-payos.php:276 169 173 msgid "Payment by bank transfer (Scan VietQR)" 170 174 msgstr "Thanh toán bằng chuyển khoản ngân hàng (quét mã QR)" 171 175 172 #: classes/class-payos.php:28 0176 #: classes/class-payos.php:282 173 177 msgid "Payment method description that the customer will see on your checkout." 174 178 msgstr "Mô tả phương thức thanh toán mà khách hàng sẽ thấy khi thanh toán." … … 196 200 msgstr "payOS Team" 197 201 198 #: classes/class-payos.php:48 4202 #: classes/class-payos.php:488 199 203 msgid "Please wait..." 200 204 msgstr "Vui lòng chờ..." 201 205 202 #: classes/class-payos.php:42 4206 #: classes/class-payos.php:427 203 207 msgid "Prefix:" 204 208 msgstr "Tiền tố" … … 215 219 "TPBank, Digimi, MSB... Được phát triển cho WooCommerce." 216 220 217 #: classes/class-payos.php:467 218 msgid "Redirect payOS:" 219 msgstr "Chuyển hướng tới payOS:" 220 221 #: payos.php:79 221 #: payos.php:80 222 222 msgid "Setting" 223 223 msgstr "Cài đặt" … … 227 227 msgstr "Cài đặt được lưu" 228 228 229 #: classes/class-payos.php: 298 classes/class-payos.php:400230 #: classes/class-payos.php:4 07 classes/class-payos.php:414229 #: classes/class-payos.php:300 classes/class-payos.php:403 230 #: classes/class-payos.php:410 classes/class-payos.php:417 231 231 msgid "Show" 232 232 msgstr "Hiện" 233 233 234 #: classes/class-payos.php:29 5234 #: classes/class-payos.php:297 235 235 msgid "Show less" 236 236 msgstr "Hiện ít lại" 237 237 238 #: classes/class-payos.php:45 5238 #: classes/class-payos.php:458 239 239 msgid "Status if payment is failed:" 240 240 msgstr "Trạng thái nếu thanh toán thất bại:" 241 241 242 #: classes/class-payos.php:43 1242 #: classes/class-payos.php:434 243 243 msgid "Status if payment is successful:" 244 244 msgstr "Trạng thái nếu thanh toán thành công:" 245 245 246 #: classes/class-payos.php:44 3246 #: classes/class-payos.php:446 247 247 msgid "Status if payment is underpaid:" 248 248 msgstr "Trạng thái nếu thanh toán thiếu:" … … 260 260 "hầu hết các ngân hàng lớn tại Việt Nam" 261 261 262 #: classes/class-payos.php:7 14262 #: classes/class-payos.php:704 263 263 msgid "Thank you. Your order has been fulfilled." 264 264 msgstr "Cảm ơn. Đơn đặt hàng của bạn đã được thực hiện." 265 265 266 #: classes/class-payos.php:7 16266 #: classes/class-payos.php:706 267 267 msgid "Thank you. Your order is processing." 268 268 msgstr "Cảm ơn. Đơn hàng của bạn đang được xử lý." 269 269 270 #: classes/class-payos.php:27 3270 #: classes/class-payos.php:275 271 271 msgid "This controls the title which the user sees during checkout." 272 272 msgstr "Kiểm soát tiêu đề mà người dùng nhìn thấy trong quá trình thanh toán." 273 273 274 #: classes/class-payos.php:27 1274 #: classes/class-payos.php:273 275 275 msgid "Title" 276 276 msgstr "Tiêu đề" 277 277 278 #: payos.php:68 payos.php:73 payos.php:9 6278 #: payos.php:68 payos.php:73 payos.php:97 279 279 msgid "Underpaid" 280 280 msgstr "Thanh toán thiếu" 281 281 282 #: classes/class-payos.php: 908282 #: classes/class-payos.php:898 283 283 msgid "Webhook confirmed" 284 284 msgstr "Đã xác nhận webhook" … … 288 288 msgstr "Tạo webhook thất bại" 289 289 290 #: classes/class-payos.php: 902290 #: classes/class-payos.php:892 291 291 msgid "Webhook creation request failed: " 292 292 msgstr "Yêu cầu tạo webhook không thành công: " 293 293 294 #: classes/class-payos.php:9 13294 #: classes/class-payos.php:903 295 295 msgid "Webhook creation response did not meet success criteria." 296 296 msgstr "Phản hồi tạo webhook không đáp ứng tiêu chí thành công." 297 297 298 #: classes/class-payos.php:7 95 classes/class-payos.php:862298 #: classes/class-payos.php:785 classes/class-payos.php:852 299 299 msgid "Webhook delivered successfully" 300 300 msgstr "Webhook chuyển thành công" 301 301 302 #: classes/class-payos.php: 708302 #: classes/class-payos.php:698 303 303 msgid "Your order has been cancelled." 304 304 msgstr "Đơn hàng của bạn đã bị hủy." 305 305 306 #: classes/class-payos.php:7 10306 #: classes/class-payos.php:700 307 307 msgid "Your order is underpaid." 308 308 msgstr "Đơn hàng của bạn đang thanh toán thiếu." -
payos/tags/1.0.6/languages/payos.pot
r3146385 r3194833 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: payOS 1.0. 4\n"5 "Project-Id-Version: payOS 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/payos-woo\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-09- 04T10:07:29+02:00\n"12 "POT-Creation-Date: 2024-09-20T10:15:41+02:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 41 41 42 42 #: classes/class-payos.php:77 43 #: classes/class-payos.php:27 443 #: classes/class-payos.php:276 44 44 msgid "Payment by bank transfer (Scan VietQR)" 45 45 msgstr "" … … 73 73 msgstr "" 74 74 75 #: classes/class-payos.php:26 575 #: classes/class-payos.php:267 76 76 msgid "Enable/Disable" 77 77 msgstr "" 78 78 79 #: classes/class-payos.php:26 779 #: classes/class-payos.php:269 80 80 msgid "Enable bank transfer" 81 81 msgstr "" 82 82 83 #: classes/class-payos.php:27 183 #: classes/class-payos.php:273 84 84 msgid "Title" 85 85 msgstr "" 86 86 87 #: classes/class-payos.php:27 387 #: classes/class-payos.php:275 88 88 msgid "This controls the title which the user sees during checkout." 89 89 msgstr "" 90 90 91 #: classes/class-payos.php:2 7891 #: classes/class-payos.php:280 92 92 msgid "Description" 93 93 msgstr "" 94 94 95 #: classes/class-payos.php:28 095 #: classes/class-payos.php:282 96 96 msgid "Payment method description that the customer will see on your checkout." 97 97 msgstr "" 98 98 99 #: classes/class-payos.php:28 199 #: classes/class-payos.php:283 100 100 msgid "Pay for orders via payOS. Supported by almost Vietnamese banking apps" 101 101 msgstr "" 102 102 103 #: classes/class-payos.php:29 5103 #: classes/class-payos.php:297 104 104 msgid "Show less" 105 105 msgstr "" 106 106 107 #: classes/class-payos.php:29 6108 #: classes/class-payos.php:37 6107 #: classes/class-payos.php:298 108 #: classes/class-payos.php:379 109 109 msgid "No Connection" 110 110 msgstr "" 111 111 112 #: classes/class-payos.php:29 6113 #: classes/class-payos.php:3 78112 #: classes/class-payos.php:298 113 #: classes/class-payos.php:381 114 114 msgid "Connected" 115 115 msgstr "" 116 116 117 #: classes/class-payos.php:29 7117 #: classes/class-payos.php:299 118 118 msgid "Hide" 119 119 msgstr "" 120 120 121 #: classes/class-payos.php:298 121 #: classes/class-payos.php:300 122 #: classes/class-payos.php:403 123 #: classes/class-payos.php:410 124 #: classes/class-payos.php:417 125 msgid "Show" 126 msgstr "" 127 128 #: classes/class-payos.php:374 129 msgid "Connection Information" 130 msgstr "" 131 132 #: classes/class-payos.php:384 133 msgid "Gateway name" 134 msgstr "" 135 136 #: classes/class-payos.php:385 137 msgid "Account number" 138 msgstr "" 139 140 #: classes/class-payos.php:386 141 msgid "Account name" 142 msgstr "" 143 144 #: classes/class-payos.php:387 145 msgid "Bank" 146 msgstr "" 147 148 #: classes/class-payos.php:395 149 msgid "Enter information of payOS" 150 msgstr "" 151 122 152 #: classes/class-payos.php:400 153 msgid "Client ID" 154 msgstr "" 155 123 156 #: classes/class-payos.php:407 157 msgid "API Key" 158 msgstr "" 159 124 160 #: classes/class-payos.php:414 125 msgid "Show"126 msgstr ""127 128 #: classes/class-payos.php:371129 msgid "Connection Information"130 msgstr ""131 132 #: classes/class-payos.php:381133 msgid "Gateway name"134 msgstr ""135 136 #: classes/class-payos.php:382137 msgid "Account number"138 msgstr ""139 140 #: classes/class-payos.php:383141 msgid "Account name"142 msgstr ""143 144 #: classes/class-payos.php:384145 msgid "Bank"146 msgstr ""147 148 #: classes/class-payos.php:392149 msgid "Enter information of payOS"150 msgstr ""151 152 #: classes/class-payos.php:397153 msgid "Client ID"154 msgstr ""155 156 #: classes/class-payos.php:404157 msgid "API Key"158 msgstr ""159 160 #: classes/class-payos.php:411161 161 msgid "Checksum Key" 162 162 msgstr "" 163 163 164 #: classes/class-payos.php:4 17164 #: classes/class-payos.php:420 165 165 msgid "Check connection payOS" 166 166 msgstr "" 167 167 168 #: classes/class-payos.php:4 18168 #: classes/class-payos.php:421 169 169 msgid "Instructions to get Client ID and API Key" 170 170 msgstr "" 171 171 172 #: classes/class-payos.php:42 4172 #: classes/class-payos.php:427 173 173 msgid "Prefix:" 174 174 msgstr "" 175 175 176 #: classes/class-payos.php:4 27176 #: classes/class-payos.php:430 177 177 msgid "Maximum 3 characters, no spaces and no special characters. If contained, it will be deleted. Please do not prefix starting with FT, TF, TT, VQR" 178 178 msgstr "" 179 179 180 #: classes/class-payos.php:43 1180 #: classes/class-payos.php:434 181 181 msgid "Status if payment is successful:" 182 182 msgstr "" 183 183 184 #: classes/class-payos.php:44 3184 #: classes/class-payos.php:446 185 185 msgid "Status if payment is underpaid:" 186 186 msgstr "" 187 187 188 #: classes/class-payos.php:45 5188 #: classes/class-payos.php:458 189 189 msgid "Status if payment is failed:" 190 190 msgstr "" 191 191 192 #: classes/class-payos.php:467193 msgid "Redirect payOS:"194 msgstr ""195 196 192 #: classes/class-payos.php:471 197 msgid "On/Off" 198 msgstr "" 199 200 #: classes/class-payos.php:484 193 msgid "Enable refresh upon successful payment:" 194 msgstr "" 195 196 #: classes/class-payos.php:475 197 msgid "Enable" 198 msgstr "" 199 200 #: classes/class-payos.php:488 201 201 msgid "Please wait..." 202 202 msgstr "" 203 203 204 #: classes/class-payos.php:48 5205 #: classes/class-payos.php:5 06204 #: classes/class-payos.php:489 205 #: classes/class-payos.php:511 206 206 msgid "Cannot show payment link" 207 207 msgstr "" 208 208 209 #: classes/class-payos.php: 499210 #: classes/class-payos.php:50 3209 #: classes/class-payos.php:504 210 #: classes/class-payos.php:508 211 211 msgid "Order has been successfully paid." 212 212 msgstr "" 213 213 214 #: classes/class-payos.php:6 30214 #: classes/class-payos.php:608 215 215 msgid "Awaiting payment" 216 216 msgstr "" 217 217 218 #: classes/class-payos.php:6 50218 #: classes/class-payos.php:628 219 219 msgid "Not use PayOS as payment method" 220 220 msgstr "" 221 221 222 #: classes/class-payos.php:6 53222 #: classes/class-payos.php:631 223 223 msgid "Not use PayOS payment gateway" 224 224 msgstr "" 225 225 226 #: classes/class-payos.php: 708226 #: classes/class-payos.php:698 227 227 msgid "Your order has been cancelled." 228 228 msgstr "" 229 229 230 #: classes/class-payos.php:7 10230 #: classes/class-payos.php:700 231 231 msgid "Your order is underpaid." 232 232 msgstr "" 233 233 234 #: classes/class-payos.php:7 14234 #: classes/class-payos.php:704 235 235 msgid "Thank you. Your order has been fulfilled." 236 236 msgstr "" 237 237 238 #: classes/class-payos.php:7 16238 #: classes/class-payos.php:706 239 239 msgid "Thank you. Your order is processing." 240 240 msgstr "" 241 241 242 #: classes/class-payos.php:7 95243 #: classes/class-payos.php:8 62242 #: classes/class-payos.php:785 243 #: classes/class-payos.php:852 244 244 msgid "Webhook delivered successfully" 245 245 msgstr "" 246 246 247 247 #. translators: %d: order code 248 #: classes/class-payos.php: 807248 #: classes/class-payos.php:797 249 249 msgid "Error when get order #%d" 250 250 msgstr "" 251 251 252 #: classes/class-payos.php:8 14252 #: classes/class-payos.php:804 253 253 msgid "Order has been cancelled" 254 254 msgstr "" 255 255 256 #: classes/class-payos.php:8 15257 #: classes/class-payos.php:9 84256 #: classes/class-payos.php:805 257 #: classes/class-payos.php:974 258 258 msgid "Data not integrity" 259 259 msgstr "" 260 260 261 #: classes/class-payos.php:8 35261 #: classes/class-payos.php:825 262 262 msgid "Order has been overpaid" 263 263 msgstr "" 264 264 265 #: classes/class-payos.php:8 42265 #: classes/class-payos.php:832 266 266 msgid "Order has been underpaid" 267 267 msgstr "" 268 268 269 269 #. translators: 1: order code, 2: amount, 3: description, 4: account number, 5: reference 270 #: classes/class-payos.php:8 54270 #: classes/class-payos.php:844 271 271 msgid "<b>Transaction Information:</b> <br> Order Code: %1$s <br> Amount: %2$s <br> Description: %3$s <br> Account Number: %4$s <br> Reference: %5$s" 272 272 msgstr "" 273 273 274 #: classes/class-payos.php: 902274 #: classes/class-payos.php:892 275 275 msgid "Webhook creation request failed: " 276 276 msgstr "" 277 277 278 #: classes/class-payos.php: 908278 #: classes/class-payos.php:898 279 279 msgid "Webhook confirmed" 280 280 msgstr "" 281 281 282 #: classes/class-payos.php:9 13282 #: classes/class-payos.php:903 283 283 msgid "Webhook creation response did not meet success criteria." 284 284 msgstr "" … … 286 286 #: payos.php:68 287 287 #: payos.php:73 288 #: payos.php:9 6288 #: payos.php:97 289 289 msgid "Underpaid" 290 290 msgstr "" 291 291 292 #: payos.php: 79292 #: payos.php:80 293 293 msgid "Setting" 294 294 msgstr "" -
payos/tags/1.0.6/payos.php
r3146385 r3194833 10 10 * Requires Plugins: woocommerce 11 11 * Domain Path: /languages 12 * Version: 1.0. 512 * Version: 1.0.6 13 13 * Tested up to: 6.6 14 14 * License: GNU General Public License v3.0 … … 17 17 18 18 defined('ABSPATH') or exit; 19 define('PAYOS_GATEWAY_VERSION', '1.0. 5');19 define('PAYOS_GATEWAY_VERSION', '1.0.6'); 20 20 define('PAYOS_GATEWAY_URL', untrailingslashit(plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__)))); 21 21 define('PAYOS_GATEWAY_PATH', untrailingslashit(plugin_dir_path(__FILE__))); … … 73 73 'label_count' => _n_noop(__('Underpaid', 'payos') . ' (%s)', __('Underpaid', 'payos') . ' (%s)', 'payos') 74 74 )); 75 update_setting_options(); 75 76 } 76 77 } … … 99 100 return $new_order_statuses; 100 101 } 102 103 function update_setting_options() 104 { 105 $old_setting_options = get_option('payos_gateway_settings', WC_payOS_Payment_Gateway::$payos_default_settings); 106 107 if (!array_key_exists('refresh_upon_successful_payment', $old_setting_options)) { 108 $new_setting_options = array('refresh_upon_successful_payment' => 'no'); 109 $updated_setting_options = array_merge($old_setting_options, $new_setting_options); 110 update_option('payos_gateway_settings', $updated_setting_options); 111 } 112 } -
payos/tags/1.0.6/readme.txt
r3146385 r3194833 1 1 === payOS === 2 2 Plugin Name: payOS 3 Contributors: diepmagik, locbt, hungnd , khanhnm3 Contributors: diepmagik, locbt, hungndcasso, khanhnm 4 4 Tags: payos, vietqr, casso, woocommerce, payment 5 5 Requires at least: 4.7 6 6 Tested up to: 6.6 7 Stable tag: 1.0. 58 Version: 1.0. 57 Stable tag: 1.0.6 8 Version: 1.0.6 9 9 Requires PHP: 7.0 10 10 License: GNU General Public License v3.0 … … 92 92 * Added: Add new status UNDERPAID for order. 93 93 94 = 1.0.6 = 95 * Added: Add option for refresh page after payment success. 96 94 97 == Upgrade Notice == 95 98
Note: See TracChangeset
for help on using the changeset viewer.