Changeset 3142613
- Timestamp:
- 08/28/2024 05:51:16 AM (19 months ago)
- Location:
- valorpos
- Files:
-
- 10 edited
- 1 copied
-
tags/7.7.0 (copied) (copied from valorpos/trunk)
-
tags/7.7.0/README.txt (modified) (2 diffs)
-
tags/7.7.0/includes/class-wc-valorpay-api.php (modified) (2 diffs)
-
tags/7.7.0/includes/class-wc-valorpay-gateway.php (modified) (6 diffs)
-
tags/7.7.0/languages/wc-valorpay.pot (modified) (6 diffs)
-
tags/7.7.0/wc-valorpay.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-wc-valorpay-api.php (modified) (2 diffs)
-
trunk/includes/class-wc-valorpay-gateway.php (modified) (6 diffs)
-
trunk/languages/wc-valorpay.pot (modified) (6 diffs)
-
trunk/wc-valorpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
valorpos/tags/7.7.0/README.txt
r3123258 r3142613 3 3 Tags: payment, payment gateway, credit card, valor pay, valor paytech 4 4 Requires at least: 5.0 5 Tested up to: 6. 65 Tested up to: 6.3.1 6 6 Requires PHP: 7.0 7 Stable tag: 7. 6.17 Stable tag: 7.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 7.7.0 = 45 * Added card type configuration option at the admin level to allow selection of card types: debit cards, credit cards, or both. 46 * Added L2 and L3 support, Level 3 (L3) benefits applicable only for Visa and Mastercard commercial cards 47 44 48 = 7.6.1 = 45 49 * Added a new hook update the order description and invoice number in the sale payload, introduced token card functionality, updated the "Street No" label in the AVS section and revised the support email. -
valorpos/tags/7.7.0/includes/class-wc-valorpay-api.php
r3115531 r3142613 370 370 } 371 371 } 372 if ( 'yes' === $this->gateway->enable_l2_l3 ) { 373 $l2_l3_data = $this->get_order_details( $order ); 374 if ( count( $l2_l3_data ) > 0 ) { 375 $data['order_details'] = $l2_l3_data; 376 } 377 // For l2 and l3 invoice number required, if not set then set order id as invoice number. 378 if ( ! isset( $data['invoicenumber'] ) || ! $data['invoicenumber'] ) { 379 $data['invoicenumber'] = $order->get_id(); 380 } 381 } 372 382 } elseif ( 'refund' === $transaction_type ) { 373 383 $valorpay_order_meta = $order->get_meta( '_valorpay_transaction' ); … … 612 622 ); 613 623 } 624 625 /** 626 * Get order detail payload 627 * 628 * @since 7.7.0 629 * 630 * @param WC_Order $order Order Detail. 631 * @return array response 632 */ 633 public function get_order_details( $order ) { 634 $order_details = array(); 635 if ( count( $order->get_items() ) > 0 ) { 636 $product_line_items = array(); 637 foreach ( $order->get_items() as $item_id => $item ) { 638 $product_name = substr( $item->get_name(), 0, 50 ); 639 $product_id = $item->get_product_id(); 640 $product = $item->get_product(); 641 $sku = substr( $product->get_sku(), 0, 15 ); 642 $quantity_ordered = $item->get_quantity(); 643 $tax = $item->get_subtotal_tax(); 644 $unit_cost = $item->get_subtotal(); 645 $product_line_items[] = array( 646 'name' => $product_name, 647 'code' => $sku ? $sku : $product_id, 648 'qty' => $quantity_ordered, 649 'unit_cost' => (float) $unit_cost, 650 'tax' => (float) $tax, 651 ); 652 } 653 $order_details['product_line_items'] = $product_line_items; 654 } 655 if ( count( $order->get_coupons() ) > 0 ) { 656 $discounts = array(); 657 foreach ( $order->get_coupons() as $coupon_code ) { 658 // Add to discounts array. 659 $discounts[] = array( 660 'name' => substr( $coupon_code->get_name(), 0, 50 ), 661 'cost' => (float) $coupon_code->get_discount(), 662 ); 663 } 664 $order_details['discounts'] = $discounts; 665 } 666 return $order_details; 667 } 614 668 } -
valorpos/tags/7.7.0/includes/class-wc-valorpay-gateway.php
r3115531 r3142613 139 139 */ 140 140 public $disable_payment_decline_time; 141 142 /** 143 * Valor Pay card type allowed. 144 * 145 * @var string 146 */ 147 public $card_type_allowed; 148 149 /** 150 * Valor Pay enable L2 & L3. 151 * 152 * @var string 153 */ 154 public $enable_l2_l3; 141 155 142 156 /** … … 186 200 $this->disable_payment_decline_count = $this->get_option( 'disable_payment_decline_count' ); 187 201 $this->disable_payment_decline_time = $this->get_option( 'disable_payment_decline_time' ); 202 $this->card_type_allowed = $this->get_option( 'card_type_allowed' ); 203 $this->enable_l2_l3 = $this->get_option( 'enable_l2_l3' ); 188 204 189 205 // Add test mode warning if sandbox. … … 277 293 echo wp_kses_post( apply_filters( 'wc_valorpay_description', wpautop( wptexturize( $this->description ) ) ) ); 278 294 } 295 if ( 'debit' === $this->card_type_allowed ) { 296 echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only debit cards are allowed', 'wc-valorpay' ) . '</div>'; 297 } elseif ( 'credit' === $this->card_type_allowed ) { 298 echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only credit cards are allowed', 'wc-valorpay' ) . '</div>'; 299 } 279 300 parent::payment_fields(); 280 301 if ( ! is_add_payment_method_page() ) { … … 339 360 public function validate_fields() { 340 361 try { 362 $is_debit_card = 'D' === WC()->session->get( 'valor_card_type' ); 363 if ( 'debit' === $this->card_type_allowed && ! $is_debit_card ) { 364 throw new Exception( __( 'Only debit cards are allowed.', 'wc-valorpay' ) ); 365 } elseif ( 'credit' === $this->card_type_allowed && $is_debit_card ) { 366 throw new Exception( __( 'Only credit cards are allowed.', 'wc-valorpay' ) ); 367 } 341 368 $valorpay_avs_type = ( isset( $_POST['valorpay_avs_type'] ) ) ? sanitize_text_field( wp_unslash( $_POST['valorpay_avs_type'] ) ) : ''; // phpcs:ignore 342 369 if ( 'zip' === $valorpay_avs_type || 'zipandaddress' === $valorpay_avs_type ) { … … 515 542 'default' => '', 516 543 ), 544 'card_type_allowed' => array( 545 'title' => __( 'Allowed Card Type', 'wc-valorpay' ), 546 'type' => 'select', 547 'class' => 'chosen_select', 548 'description' => __( 'Select the allowed card type for transactions', 'wc-valorpay' ), 549 'css' => 'width: 100px;', 550 'options' => array( 551 'both' => __( 'Both', 'wc-valorpay' ), 552 'credit' => __( 'Credit', 'wc-valorpay' ), 553 'debit' => __( 'Debit', 'wc-valorpay' ), 554 ), 555 'default' => 'both', 556 ), 517 557 'payment_action' => array( 518 558 'title' => __( 'Payment Method', 'wc-valorpay' ), … … 580 620 ), 581 621 'description' => __( 'The address verification service will add a text field to the checkout page based on the above option.', 'wc-valorpay' ), 622 ), 623 'enable_l2_l3' => array( 624 'title' => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ), 625 'label' => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ), 626 'type' => 'checkbox', 627 'description' => __( 'Enable L2 & L3 processing for detailed data', 'wc-valorpay' ), 628 'default' => 'no', 582 629 ), 583 630 'disable_payment_on_failed' => array( -
valorpos/tags/7.7.0/languages/wc-valorpay.pot
r3115531 r3142613 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Valor Pay 7. 6.1\n"5 "Project-Id-Version: Valor Pay 7.7.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/valorpos\n" 7 7 "Last-Translator: Valor Paytech LLC <isvsupport@valorpaytech.com>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 7-01T18:35:32+05:30\n"13 "PO-Revision-Date: 2024-0 7-01T18:35:32+05:30\n"12 "POT-Creation-Date: 2024-08-09T17:17:36+05:30\n" 13 "PO-Revision-Date: 2024-08-09T17:17:36+05:30\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" 15 15 "X-Domain: wc-valorpay\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/class-wc-valorpay-gateway.php: 48918 #: includes/class-wc-valorpay-gateway.php:516 19 19 msgid "Valor Pay" 20 20 msgstr "" … … 70 70 71 71 #: admin/partials/wc-valorpay-admin-failure-tracker.php:18 72 #: includes/class-wc-valorpay-gateway.php: 58472 #: includes/class-wc-valorpay-gateway.php:631 73 73 msgid "Payment Failed Tracker" 74 74 msgstr "" … … 138 138 #: includes/class-wc-valorpay-api.php:247 139 139 #: includes/class-wc-valorpay-api.php:254 140 #: includes/class-wc-valorpay-api.php:561141 140 #: includes/class-wc-valorpay-api.php:571 142 #: includes/class-wc-valorpay-api.php:599 143 #: includes/class-wc-valorpay-api.php:605 141 #: includes/class-wc-valorpay-api.php:581 142 #: includes/class-wc-valorpay-api.php:609 143 #: includes/class-wc-valorpay-api.php:615 144 144 msgid "Sorry, we're unable to create a card token right now." 145 145 msgstr "" … … 150 150 msgstr "" 151 151 152 #: includes/class-wc-valorpay-api.php: 495153 #: includes/class-wc-valorpay-api.php:5 00154 #: includes/class-wc-valorpay-api.php:5 08155 #: includes/class-wc-valorpay-api.php:5 12152 #: includes/class-wc-valorpay-api.php:505 153 #: includes/class-wc-valorpay-api.php:510 154 #: includes/class-wc-valorpay-api.php:518 155 #: includes/class-wc-valorpay-api.php:522 156 156 msgid "There was a problem connecting to the payment gateway." 157 157 msgstr "" … … 195 195 msgstr "" 196 196 197 #: includes/class-wc-valorpay-gateway.php:1 50197 #: includes/class-wc-valorpay-gateway.php:164 198 198 msgid "ValorPay Plugin" 199 199 msgstr "" 200 200 201 #: includes/class-wc-valorpay-gateway.php:1 51201 #: includes/class-wc-valorpay-gateway.php:165 202 202 msgid "Take payments via Valorpay." 203 203 msgstr "" 204 204 205 #: includes/class-wc-valorpay-gateway.php: 191205 #: includes/class-wc-valorpay-gateway.php:207 206 206 msgid "TEST MODE ENABLED. Use test card number 4111111111111111 with 999 as CVC and a future expiration date." 207 207 msgstr "" 208 208 209 #: includes/class-wc-valorpay-gateway.php:2 15209 #: includes/class-wc-valorpay-gateway.php:231 210 210 msgid "Unsupported currency:" 211 211 msgstr "" 212 212 213 #: includes/class-wc-valorpay-gateway.php:2 18213 #: includes/class-wc-valorpay-gateway.php:234 214 214 msgid "Valor Pay accepts only USD." 215 215 msgstr "" 216 216 217 217 #. translators: %s: Settings URL. 218 #: includes/class-wc-valorpay-gateway.php:2 30218 #: includes/class-wc-valorpay-gateway.php:246 219 219 msgid "Valor Pay error: The APP ID is required. %s" 220 220 msgstr "" 221 221 222 #: includes/class-wc-valorpay-gateway.php:2 31223 #: includes/class-wc-valorpay-gateway.php:2 42224 #: includes/class-wc-valorpay-gateway.php:2 51222 #: includes/class-wc-valorpay-gateway.php:247 223 #: includes/class-wc-valorpay-gateway.php:258 224 #: includes/class-wc-valorpay-gateway.php:267 225 225 msgid "Click here to update your Valor Pay settings." 226 226 msgstr "" 227 227 228 228 #. translators: %s: Settings URL. 229 #: includes/class-wc-valorpay-gateway.php:2 41229 #: includes/class-wc-valorpay-gateway.php:257 230 230 msgid "Valor Pay error: The APP KEY is required. %s" 231 231 msgstr "" 232 232 233 233 #. translators: %s: Settings URL. 234 #: includes/class-wc-valorpay-gateway.php:2 50234 #: includes/class-wc-valorpay-gateway.php:266 235 235 msgid "Valor Pay error: The EPI is required. %s" 236 236 msgstr "" 237 237 238 #: includes/class-wc-valorpay-gateway.php:344 238 #: includes/class-wc-valorpay-gateway.php:296 239 msgid "Only debit cards are allowed" 240 msgstr "" 241 242 #: includes/class-wc-valorpay-gateway.php:298 243 msgid "Only credit cards are allowed" 244 msgstr "" 245 246 #: includes/class-wc-valorpay-gateway.php:364 247 msgid "Only debit cards are allowed." 248 msgstr "" 249 250 #: includes/class-wc-valorpay-gateway.php:366 251 msgid "Only credit cards are allowed." 252 msgstr "" 253 254 #: includes/class-wc-valorpay-gateway.php:371 239 255 msgid "Zip Code is required." 240 256 msgstr "" 241 257 242 #: includes/class-wc-valorpay-gateway.php:3 47258 #: includes/class-wc-valorpay-gateway.php:374 243 259 msgid "Enter a valid Zip Code." 244 260 msgstr "" 245 261 246 #: includes/class-wc-valorpay-gateway.php:3 52262 #: includes/class-wc-valorpay-gateway.php:379 247 263 msgid "Street Address is required." 248 264 msgstr "" 249 265 250 #: includes/class-wc-valorpay-gateway.php:3 55266 #: includes/class-wc-valorpay-gateway.php:382 251 267 msgid "Enter a valid Street Address." 252 268 msgstr "" 253 269 254 #: includes/class-wc-valorpay-gateway.php:3 66270 #: includes/class-wc-valorpay-gateway.php:393 255 271 msgid "Card number is invalid" 256 272 msgstr "" 257 273 258 #: includes/class-wc-valorpay-gateway.php:3 70274 #: includes/class-wc-valorpay-gateway.php:397 259 275 msgid "Not a valid card" 260 276 msgstr "" 261 277 262 #: includes/class-wc-valorpay-gateway.php: 373278 #: includes/class-wc-valorpay-gateway.php:400 263 279 msgid "Card number expired" 264 280 msgstr "" 265 281 266 #: includes/class-wc-valorpay-gateway.php: 376282 #: includes/class-wc-valorpay-gateway.php:403 267 283 msgid "Card security code is invalid (only digits are allowed)" 268 284 msgstr "" 269 285 270 286 #. translators: 1: Terms and Conditions URL. 271 #: includes/class-wc-valorpay-gateway.php:4 12287 #: includes/class-wc-valorpay-gateway.php:439 272 288 msgid "I agree to the <a href=\"%s\" target=\"_blank\">Terms and Conditions</a>" 273 289 msgstr "" 274 290 275 #: includes/class-wc-valorpay-gateway.php:4 43276 #: includes/class-wc-valorpay-gateway.php:4 44291 #: includes/class-wc-valorpay-gateway.php:470 292 #: includes/class-wc-valorpay-gateway.php:471 277 293 msgid "Zip Code" 278 294 msgstr "" 279 295 280 #: includes/class-wc-valorpay-gateway.php:4 57281 #: includes/class-wc-valorpay-gateway.php:4 58296 #: includes/class-wc-valorpay-gateway.php:484 297 #: includes/class-wc-valorpay-gateway.php:485 282 298 msgid "Street Address" 283 299 msgstr "" 284 300 285 #: includes/class-wc-valorpay-gateway.php: 479301 #: includes/class-wc-valorpay-gateway.php:506 286 302 msgid "Enable/Disable" 287 303 msgstr "" 288 304 289 #: includes/class-wc-valorpay-gateway.php: 480305 #: includes/class-wc-valorpay-gateway.php:507 290 306 msgid "Enable Valor Pay" 291 307 msgstr "" 292 308 293 #: includes/class-wc-valorpay-gateway.php: 486309 #: includes/class-wc-valorpay-gateway.php:513 294 310 msgid "Title" 295 311 msgstr "" 296 312 297 #: includes/class-wc-valorpay-gateway.php: 488313 #: includes/class-wc-valorpay-gateway.php:515 298 314 msgid "This controls the title which the user sees during checkout." 299 315 msgstr "" 300 316 301 #: includes/class-wc-valorpay-gateway.php: 493317 #: includes/class-wc-valorpay-gateway.php:520 302 318 msgid "Use Sandbox" 303 319 msgstr "" 304 320 305 #: includes/class-wc-valorpay-gateway.php: 494321 #: includes/class-wc-valorpay-gateway.php:521 306 322 msgid "Enable sandbox mode - live payments will not be taken if enabled." 307 323 msgstr "" 308 324 309 #: includes/class-wc-valorpay-gateway.php:5 00325 #: includes/class-wc-valorpay-gateway.php:527 310 326 msgid "APP ID" 311 327 msgstr "" 312 328 313 #: includes/class-wc-valorpay-gateway.php:5 02329 #: includes/class-wc-valorpay-gateway.php:529 314 330 msgid "Please email isvsupport@valorpaytech.com to get to know about your APP ID, ( In demo mode APP ID is not needed )" 315 331 msgstr "" 316 332 317 #: includes/class-wc-valorpay-gateway.php:5 06333 #: includes/class-wc-valorpay-gateway.php:533 318 334 msgid "APP KEY" 319 335 msgstr "" 320 336 321 #: includes/class-wc-valorpay-gateway.php:5 08337 #: includes/class-wc-valorpay-gateway.php:535 322 338 msgid "Please email isvsupport@valorpaytech.com to get to know about your APP KEY, ( In demo mode APP KEY is not needed )" 323 339 msgstr "" 324 340 325 #: includes/class-wc-valorpay-gateway.php:5 12341 #: includes/class-wc-valorpay-gateway.php:539 326 342 msgid "EPI" 327 343 msgstr "" 328 344 329 #: includes/class-wc-valorpay-gateway.php:5 14345 #: includes/class-wc-valorpay-gateway.php:541 330 346 msgid "Please email isvsupport@valorpaytech.com to get to know about your EPI ID, ( In demo mode EPI ID is not needed )" 331 347 msgstr "" 332 348 333 #: includes/class-wc-valorpay-gateway.php:518 349 #: includes/class-wc-valorpay-gateway.php:545 350 msgid "Allowed Card Type" 351 msgstr "" 352 353 #: includes/class-wc-valorpay-gateway.php:548 354 msgid "Select the allowed card type for transactions" 355 msgstr "" 356 357 #: includes/class-wc-valorpay-gateway.php:551 358 msgid "Both" 359 msgstr "" 360 361 #: includes/class-wc-valorpay-gateway.php:552 362 msgid "Credit" 363 msgstr "" 364 365 #: includes/class-wc-valorpay-gateway.php:553 366 msgid "Debit" 367 msgstr "" 368 369 #: includes/class-wc-valorpay-gateway.php:558 334 370 msgid "Payment Method" 335 371 msgstr "" 336 372 337 #: includes/class-wc-valorpay-gateway.php:5 28373 #: includes/class-wc-valorpay-gateway.php:568 338 374 msgid "Surcharge Mode" 339 375 msgstr "" 340 376 341 #: includes/class-wc-valorpay-gateway.php:5 29342 #: includes/class-wc-valorpay-gateway.php:5 36377 #: includes/class-wc-valorpay-gateway.php:569 378 #: includes/class-wc-valorpay-gateway.php:576 343 379 msgid "Enable Surcharge Mode" 344 380 msgstr "" 345 381 346 #: includes/class-wc-valorpay-gateway.php:5 31382 #: includes/class-wc-valorpay-gateway.php:571 347 383 msgid "Enable only if you want all transactions to be fall on surcharge mode, Merchant must have got an Surcharge MID inorder to work" 348 384 msgstr "" 349 385 350 #: includes/class-wc-valorpay-gateway.php:5 35386 #: includes/class-wc-valorpay-gateway.php:575 351 387 msgid "Surcharge Type" 352 388 msgstr "" 353 389 354 #: includes/class-wc-valorpay-gateway.php:5 45355 #: includes/class-wc-valorpay-gateway.php:5 46390 #: includes/class-wc-valorpay-gateway.php:585 391 #: includes/class-wc-valorpay-gateway.php:586 356 392 msgid "Surcharge Label" 357 393 msgstr "" 358 394 359 #: includes/class-wc-valorpay-gateway.php:5 51395 #: includes/class-wc-valorpay-gateway.php:591 360 396 msgid "Surcharge %" 361 397 msgstr "" 362 398 363 #: includes/class-wc-valorpay-gateway.php:5 55399 #: includes/class-wc-valorpay-gateway.php:595 364 400 msgid "Percentage will apply only on enabling on surcharge Indicator to true and Surcharge type is set fo Surcharge %" 365 401 msgstr "" 366 402 367 #: includes/class-wc-valorpay-gateway.php:5 58403 #: includes/class-wc-valorpay-gateway.php:598 368 404 msgid "Flat Rate $" 369 405 msgstr "" 370 406 371 #: includes/class-wc-valorpay-gateway.php: 561407 #: includes/class-wc-valorpay-gateway.php:601 372 408 msgid "Flat rate will apply only on if Enable surcharge mode is true and Surcharge type is set to Flat Rate $" 373 409 msgstr "" 374 410 375 #: includes/class-wc-valorpay-gateway.php: 564411 #: includes/class-wc-valorpay-gateway.php:604 376 412 msgid "Surcharge For Debit" 377 413 msgstr "" 378 414 379 #: includes/class-wc-valorpay-gateway.php: 565415 #: includes/class-wc-valorpay-gateway.php:605 380 416 msgid "Enable Surcharge For Debit" 381 417 msgstr "" 382 418 383 #: includes/class-wc-valorpay-gateway.php: 567419 #: includes/class-wc-valorpay-gateway.php:607 384 420 msgid "Enable surcharge for debit" 385 421 msgstr "" 386 422 387 #: includes/class-wc-valorpay-gateway.php: 571423 #: includes/class-wc-valorpay-gateway.php:611 388 424 msgid "AVS" 389 425 msgstr "" 390 426 391 #: includes/class-wc-valorpay-gateway.php: 581427 #: includes/class-wc-valorpay-gateway.php:621 392 428 msgid "The address verification service will add a text field to the checkout page based on the above option." 393 429 msgstr "" 394 430 395 #: includes/class-wc-valorpay-gateway.php:585 431 #: includes/class-wc-valorpay-gateway.php:624 432 #: includes/class-wc-valorpay-gateway.php:625 433 msgid "Enable L2 & L3 Processing" 434 msgstr "" 435 436 #: includes/class-wc-valorpay-gateway.php:627 437 msgid "Enable L2 & L3 processing for detailed data" 438 msgstr "" 439 440 #: includes/class-wc-valorpay-gateway.php:632 396 441 msgid "Enable Protection" 397 442 msgstr "" 398 443 399 444 #. translators: 1: Tracker URL. 400 #: includes/class-wc-valorpay-gateway.php: 589445 #: includes/class-wc-valorpay-gateway.php:636 401 446 msgid "Disable the payment method in the checkout page for failed transactions. <a id=\"valorpay-goto-tracker\" href=\"%s\">Unblock IP</a>" 402 447 msgstr "" 403 448 404 #: includes/class-wc-valorpay-gateway.php: 595449 #: includes/class-wc-valorpay-gateway.php:642 405 450 msgid "Declined Transaction Count" 406 451 msgstr "" 407 452 408 #: includes/class-wc-valorpay-gateway.php: 596453 #: includes/class-wc-valorpay-gateway.php:643 409 454 msgid "Number of declined transaction count." 410 455 msgstr "" 411 456 412 #: includes/class-wc-valorpay-gateway.php:6 00457 #: includes/class-wc-valorpay-gateway.php:647 413 458 msgid "3" 414 459 msgstr "" 415 460 416 #: includes/class-wc-valorpay-gateway.php:6 01461 #: includes/class-wc-valorpay-gateway.php:648 417 462 msgid "5" 418 463 msgstr "" 419 464 420 #: includes/class-wc-valorpay-gateway.php:6 02465 #: includes/class-wc-valorpay-gateway.php:649 421 466 msgid "6" 422 467 msgstr "" 423 468 424 #: includes/class-wc-valorpay-gateway.php:6 06469 #: includes/class-wc-valorpay-gateway.php:653 425 470 msgid "Block Payment For" 426 471 msgstr "" 427 472 428 #: includes/class-wc-valorpay-gateway.php:6 07473 #: includes/class-wc-valorpay-gateway.php:654 429 474 msgid "Minutes to block payment gateway in checkout." 430 475 msgstr "" 431 476 432 #: includes/class-wc-valorpay-gateway.php:6 11477 #: includes/class-wc-valorpay-gateway.php:658 433 478 msgid "1 min" 434 479 msgstr "" 435 480 436 #: includes/class-wc-valorpay-gateway.php:6 12481 #: includes/class-wc-valorpay-gateway.php:659 437 482 msgid "5 min" 438 483 msgstr "" 439 484 440 #: includes/class-wc-valorpay-gateway.php:6 13485 #: includes/class-wc-valorpay-gateway.php:660 441 486 msgid "10 min" 442 487 msgstr "" 443 488 444 #: includes/class-wc-valorpay-gateway.php:6 14489 #: includes/class-wc-valorpay-gateway.php:661 445 490 msgid "1 hour" 446 491 msgstr "" 447 492 448 #: includes/class-wc-valorpay-gateway.php:6 15493 #: includes/class-wc-valorpay-gateway.php:662 449 494 msgid "3 hour" 450 495 msgstr "" 451 496 452 #: includes/class-wc-valorpay-gateway.php:6 16497 #: includes/class-wc-valorpay-gateway.php:663 453 498 msgid "5 hour" 454 499 msgstr "" 455 500 456 #: includes/class-wc-valorpay-gateway.php:6 17501 #: includes/class-wc-valorpay-gateway.php:664 457 502 msgid "10 hour" 458 503 msgstr "" 459 504 460 #: includes/class-wc-valorpay-gateway.php:6 18505 #: includes/class-wc-valorpay-gateway.php:665 461 506 msgid "1 day" 462 507 msgstr "" 463 508 464 #: includes/class-wc-valorpay-gateway.php:6 22509 #: includes/class-wc-valorpay-gateway.php:669 465 510 msgid "Accepted Cards" 466 511 msgstr "" 467 512 468 #: includes/class-wc-valorpay-gateway.php:6 26513 #: includes/class-wc-valorpay-gateway.php:673 469 514 msgid "Select the card types to accept." 470 515 msgstr "" 471 516 472 517 #. translators: 1: Maximum percentage. 473 #: includes/class-wc-valorpay-gateway.php:6 51518 #: includes/class-wc-valorpay-gateway.php:698 474 519 msgid "Surcharge percentage cannot be more than %s" 475 520 msgstr "" 476 521 477 522 #. translators: 1: Maximum flat rate. 478 #: includes/class-wc-valorpay-gateway.php: 656523 #: includes/class-wc-valorpay-gateway.php:703 479 524 msgid "Surcharge flat rate cannot be more than %s" 480 525 msgstr "" 481 526 482 #: includes/class-wc-valorpay-gateway.php:7 01527 #: includes/class-wc-valorpay-gateway.php:748 483 528 msgid "Invalid card information." 484 529 msgstr "" 485 530 486 #: includes/class-wc-valorpay-gateway.php:7 34531 #: includes/class-wc-valorpay-gateway.php:781 487 532 msgid "Valor Pay: Card token added to subscription." 488 533 msgstr "" 489 534 490 535 #. translators: 1: Error Message, 2: Amount, 3: Line Break, 4: Approval Code, 5: Line Break, 6: RRN Number. 491 #: includes/class-wc-valorpay-gateway.php:7 51536 #: includes/class-wc-valorpay-gateway.php:798 492 537 msgid "Valor Pay %1$s for %2$s.%3$s <strong>Approval Code:</strong> %4$s.%5$s <strong>RRN:</strong> %6$s" 493 538 msgstr "" 494 539 495 540 #. translators: %s: API Error Message. 496 #: includes/class-wc-valorpay-gateway.php: 792497 #: includes/class-wc-valorpay-gateway.php: 795541 #: includes/class-wc-valorpay-gateway.php:839 542 #: includes/class-wc-valorpay-gateway.php:842 498 543 msgid "Payment error: %s" 499 544 msgstr "" 500 545 501 #: includes/class-wc-valorpay-gateway.php: 797546 #: includes/class-wc-valorpay-gateway.php:844 502 547 msgid "Unable to process the transaction using Valor Pay, please try again." 503 548 msgstr "" 504 549 505 550 #. translators: 1: Disable Time, 2: Unblock IP URL, 3: Customer IP. 506 #: includes/class-wc-valorpay-gateway.php: 888551 #: includes/class-wc-valorpay-gateway.php:935 507 552 msgid "Valor Pay method is disabled for %1$s. <a target=\"_blank\" href=\"%2$s\">To Unblock IP</a> %3$s" 508 553 msgstr "" 509 554 510 #: includes/class-wc-valorpay-gateway.php:9 51555 #: includes/class-wc-valorpay-gateway.php:998 511 556 msgid "Refund failed." 512 557 msgstr "" 513 558 514 559 #. translators: 1: Amount, 2: Line Break, 3: Approval code, 4: Line Break, 5: RRN Code 515 #: includes/class-wc-valorpay-gateway.php: 963560 #: includes/class-wc-valorpay-gateway.php:1010 516 561 msgid "Valor Pay Refund for %1$s.%2$s <strong>Approval Code:</strong> %3$s.%4$s <strong>RRN:</strong> %5$s" 517 562 msgstr "" -
valorpos/tags/7.7.0/wc-valorpay.php
r3115531 r3142613 16 16 * Plugin URI: https://valorpaytech.com 17 17 * Description: Adds the Valor Payment Gateway to WooCommerce. 18 * Version: 7. 6.118 * Version: 7.7.0 19 19 * Author: Valor Paytech LLC 20 20 * Author URI: https://valorpaytech.com … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'WC_VALORPAY_VERSION', '7. 6.1' );39 define( 'WC_VALORPAY_VERSION', '7.7.0' ); 40 40 // Directory i.e. /home/user/public_html... 41 41 define( 'WC_VALORPAY_DIR', plugin_dir_path( __FILE__ ) ); -
valorpos/trunk/README.txt
r3123258 r3142613 3 3 Tags: payment, payment gateway, credit card, valor pay, valor paytech 4 4 Requires at least: 5.0 5 Tested up to: 6. 65 Tested up to: 6.3.1 6 6 Requires PHP: 7.0 7 Stable tag: 7. 6.17 Stable tag: 7.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 42 42 43 43 == Changelog == 44 = 7.7.0 = 45 * Added card type configuration option at the admin level to allow selection of card types: debit cards, credit cards, or both. 46 * Added L2 and L3 support, Level 3 (L3) benefits applicable only for Visa and Mastercard commercial cards 47 44 48 = 7.6.1 = 45 49 * Added a new hook update the order description and invoice number in the sale payload, introduced token card functionality, updated the "Street No" label in the AVS section and revised the support email. -
valorpos/trunk/includes/class-wc-valorpay-api.php
r3115531 r3142613 370 370 } 371 371 } 372 if ( 'yes' === $this->gateway->enable_l2_l3 ) { 373 $l2_l3_data = $this->get_order_details( $order ); 374 if ( count( $l2_l3_data ) > 0 ) { 375 $data['order_details'] = $l2_l3_data; 376 } 377 // For l2 and l3 invoice number required, if not set then set order id as invoice number. 378 if ( ! isset( $data['invoicenumber'] ) || ! $data['invoicenumber'] ) { 379 $data['invoicenumber'] = $order->get_id(); 380 } 381 } 372 382 } elseif ( 'refund' === $transaction_type ) { 373 383 $valorpay_order_meta = $order->get_meta( '_valorpay_transaction' ); … … 612 622 ); 613 623 } 624 625 /** 626 * Get order detail payload 627 * 628 * @since 7.7.0 629 * 630 * @param WC_Order $order Order Detail. 631 * @return array response 632 */ 633 public function get_order_details( $order ) { 634 $order_details = array(); 635 if ( count( $order->get_items() ) > 0 ) { 636 $product_line_items = array(); 637 foreach ( $order->get_items() as $item_id => $item ) { 638 $product_name = substr( $item->get_name(), 0, 50 ); 639 $product_id = $item->get_product_id(); 640 $product = $item->get_product(); 641 $sku = substr( $product->get_sku(), 0, 15 ); 642 $quantity_ordered = $item->get_quantity(); 643 $tax = $item->get_subtotal_tax(); 644 $unit_cost = $item->get_subtotal(); 645 $product_line_items[] = array( 646 'name' => $product_name, 647 'code' => $sku ? $sku : $product_id, 648 'qty' => $quantity_ordered, 649 'unit_cost' => (float) $unit_cost, 650 'tax' => (float) $tax, 651 ); 652 } 653 $order_details['product_line_items'] = $product_line_items; 654 } 655 if ( count( $order->get_coupons() ) > 0 ) { 656 $discounts = array(); 657 foreach ( $order->get_coupons() as $coupon_code ) { 658 // Add to discounts array. 659 $discounts[] = array( 660 'name' => substr( $coupon_code->get_name(), 0, 50 ), 661 'cost' => (float) $coupon_code->get_discount(), 662 ); 663 } 664 $order_details['discounts'] = $discounts; 665 } 666 return $order_details; 667 } 614 668 } -
valorpos/trunk/includes/class-wc-valorpay-gateway.php
r3115531 r3142613 139 139 */ 140 140 public $disable_payment_decline_time; 141 142 /** 143 * Valor Pay card type allowed. 144 * 145 * @var string 146 */ 147 public $card_type_allowed; 148 149 /** 150 * Valor Pay enable L2 & L3. 151 * 152 * @var string 153 */ 154 public $enable_l2_l3; 141 155 142 156 /** … … 186 200 $this->disable_payment_decline_count = $this->get_option( 'disable_payment_decline_count' ); 187 201 $this->disable_payment_decline_time = $this->get_option( 'disable_payment_decline_time' ); 202 $this->card_type_allowed = $this->get_option( 'card_type_allowed' ); 203 $this->enable_l2_l3 = $this->get_option( 'enable_l2_l3' ); 188 204 189 205 // Add test mode warning if sandbox. … … 277 293 echo wp_kses_post( apply_filters( 'wc_valorpay_description', wpautop( wptexturize( $this->description ) ) ) ); 278 294 } 295 if ( 'debit' === $this->card_type_allowed ) { 296 echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only debit cards are allowed', 'wc-valorpay' ) . '</div>'; 297 } elseif ( 'credit' === $this->card_type_allowed ) { 298 echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only credit cards are allowed', 'wc-valorpay' ) . '</div>'; 299 } 279 300 parent::payment_fields(); 280 301 if ( ! is_add_payment_method_page() ) { … … 339 360 public function validate_fields() { 340 361 try { 362 $is_debit_card = 'D' === WC()->session->get( 'valor_card_type' ); 363 if ( 'debit' === $this->card_type_allowed && ! $is_debit_card ) { 364 throw new Exception( __( 'Only debit cards are allowed.', 'wc-valorpay' ) ); 365 } elseif ( 'credit' === $this->card_type_allowed && $is_debit_card ) { 366 throw new Exception( __( 'Only credit cards are allowed.', 'wc-valorpay' ) ); 367 } 341 368 $valorpay_avs_type = ( isset( $_POST['valorpay_avs_type'] ) ) ? sanitize_text_field( wp_unslash( $_POST['valorpay_avs_type'] ) ) : ''; // phpcs:ignore 342 369 if ( 'zip' === $valorpay_avs_type || 'zipandaddress' === $valorpay_avs_type ) { … … 515 542 'default' => '', 516 543 ), 544 'card_type_allowed' => array( 545 'title' => __( 'Allowed Card Type', 'wc-valorpay' ), 546 'type' => 'select', 547 'class' => 'chosen_select', 548 'description' => __( 'Select the allowed card type for transactions', 'wc-valorpay' ), 549 'css' => 'width: 100px;', 550 'options' => array( 551 'both' => __( 'Both', 'wc-valorpay' ), 552 'credit' => __( 'Credit', 'wc-valorpay' ), 553 'debit' => __( 'Debit', 'wc-valorpay' ), 554 ), 555 'default' => 'both', 556 ), 517 557 'payment_action' => array( 518 558 'title' => __( 'Payment Method', 'wc-valorpay' ), … … 580 620 ), 581 621 'description' => __( 'The address verification service will add a text field to the checkout page based on the above option.', 'wc-valorpay' ), 622 ), 623 'enable_l2_l3' => array( 624 'title' => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ), 625 'label' => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ), 626 'type' => 'checkbox', 627 'description' => __( 'Enable L2 & L3 processing for detailed data', 'wc-valorpay' ), 628 'default' => 'no', 582 629 ), 583 630 'disable_payment_on_failed' => array( -
valorpos/trunk/languages/wc-valorpay.pot
r3115531 r3142613 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Valor Pay 7. 6.1\n"5 "Project-Id-Version: Valor Pay 7.7.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/valorpos\n" 7 7 "Last-Translator: Valor Paytech LLC <isvsupport@valorpaytech.com>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2024-0 7-01T18:35:32+05:30\n"13 "PO-Revision-Date: 2024-0 7-01T18:35:32+05:30\n"12 "POT-Creation-Date: 2024-08-09T17:17:36+05:30\n" 13 "PO-Revision-Date: 2024-08-09T17:17:36+05:30\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" 15 15 "X-Domain: wc-valorpay\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: includes/class-wc-valorpay-gateway.php: 48918 #: includes/class-wc-valorpay-gateway.php:516 19 19 msgid "Valor Pay" 20 20 msgstr "" … … 70 70 71 71 #: admin/partials/wc-valorpay-admin-failure-tracker.php:18 72 #: includes/class-wc-valorpay-gateway.php: 58472 #: includes/class-wc-valorpay-gateway.php:631 73 73 msgid "Payment Failed Tracker" 74 74 msgstr "" … … 138 138 #: includes/class-wc-valorpay-api.php:247 139 139 #: includes/class-wc-valorpay-api.php:254 140 #: includes/class-wc-valorpay-api.php:561141 140 #: includes/class-wc-valorpay-api.php:571 142 #: includes/class-wc-valorpay-api.php:599 143 #: includes/class-wc-valorpay-api.php:605 141 #: includes/class-wc-valorpay-api.php:581 142 #: includes/class-wc-valorpay-api.php:609 143 #: includes/class-wc-valorpay-api.php:615 144 144 msgid "Sorry, we're unable to create a card token right now." 145 145 msgstr "" … … 150 150 msgstr "" 151 151 152 #: includes/class-wc-valorpay-api.php: 495153 #: includes/class-wc-valorpay-api.php:5 00154 #: includes/class-wc-valorpay-api.php:5 08155 #: includes/class-wc-valorpay-api.php:5 12152 #: includes/class-wc-valorpay-api.php:505 153 #: includes/class-wc-valorpay-api.php:510 154 #: includes/class-wc-valorpay-api.php:518 155 #: includes/class-wc-valorpay-api.php:522 156 156 msgid "There was a problem connecting to the payment gateway." 157 157 msgstr "" … … 195 195 msgstr "" 196 196 197 #: includes/class-wc-valorpay-gateway.php:1 50197 #: includes/class-wc-valorpay-gateway.php:164 198 198 msgid "ValorPay Plugin" 199 199 msgstr "" 200 200 201 #: includes/class-wc-valorpay-gateway.php:1 51201 #: includes/class-wc-valorpay-gateway.php:165 202 202 msgid "Take payments via Valorpay." 203 203 msgstr "" 204 204 205 #: includes/class-wc-valorpay-gateway.php: 191205 #: includes/class-wc-valorpay-gateway.php:207 206 206 msgid "TEST MODE ENABLED. Use test card number 4111111111111111 with 999 as CVC and a future expiration date." 207 207 msgstr "" 208 208 209 #: includes/class-wc-valorpay-gateway.php:2 15209 #: includes/class-wc-valorpay-gateway.php:231 210 210 msgid "Unsupported currency:" 211 211 msgstr "" 212 212 213 #: includes/class-wc-valorpay-gateway.php:2 18213 #: includes/class-wc-valorpay-gateway.php:234 214 214 msgid "Valor Pay accepts only USD." 215 215 msgstr "" 216 216 217 217 #. translators: %s: Settings URL. 218 #: includes/class-wc-valorpay-gateway.php:2 30218 #: includes/class-wc-valorpay-gateway.php:246 219 219 msgid "Valor Pay error: The APP ID is required. %s" 220 220 msgstr "" 221 221 222 #: includes/class-wc-valorpay-gateway.php:2 31223 #: includes/class-wc-valorpay-gateway.php:2 42224 #: includes/class-wc-valorpay-gateway.php:2 51222 #: includes/class-wc-valorpay-gateway.php:247 223 #: includes/class-wc-valorpay-gateway.php:258 224 #: includes/class-wc-valorpay-gateway.php:267 225 225 msgid "Click here to update your Valor Pay settings." 226 226 msgstr "" 227 227 228 228 #. translators: %s: Settings URL. 229 #: includes/class-wc-valorpay-gateway.php:2 41229 #: includes/class-wc-valorpay-gateway.php:257 230 230 msgid "Valor Pay error: The APP KEY is required. %s" 231 231 msgstr "" 232 232 233 233 #. translators: %s: Settings URL. 234 #: includes/class-wc-valorpay-gateway.php:2 50234 #: includes/class-wc-valorpay-gateway.php:266 235 235 msgid "Valor Pay error: The EPI is required. %s" 236 236 msgstr "" 237 237 238 #: includes/class-wc-valorpay-gateway.php:344 238 #: includes/class-wc-valorpay-gateway.php:296 239 msgid "Only debit cards are allowed" 240 msgstr "" 241 242 #: includes/class-wc-valorpay-gateway.php:298 243 msgid "Only credit cards are allowed" 244 msgstr "" 245 246 #: includes/class-wc-valorpay-gateway.php:364 247 msgid "Only debit cards are allowed." 248 msgstr "" 249 250 #: includes/class-wc-valorpay-gateway.php:366 251 msgid "Only credit cards are allowed." 252 msgstr "" 253 254 #: includes/class-wc-valorpay-gateway.php:371 239 255 msgid "Zip Code is required." 240 256 msgstr "" 241 257 242 #: includes/class-wc-valorpay-gateway.php:3 47258 #: includes/class-wc-valorpay-gateway.php:374 243 259 msgid "Enter a valid Zip Code." 244 260 msgstr "" 245 261 246 #: includes/class-wc-valorpay-gateway.php:3 52262 #: includes/class-wc-valorpay-gateway.php:379 247 263 msgid "Street Address is required." 248 264 msgstr "" 249 265 250 #: includes/class-wc-valorpay-gateway.php:3 55266 #: includes/class-wc-valorpay-gateway.php:382 251 267 msgid "Enter a valid Street Address." 252 268 msgstr "" 253 269 254 #: includes/class-wc-valorpay-gateway.php:3 66270 #: includes/class-wc-valorpay-gateway.php:393 255 271 msgid "Card number is invalid" 256 272 msgstr "" 257 273 258 #: includes/class-wc-valorpay-gateway.php:3 70274 #: includes/class-wc-valorpay-gateway.php:397 259 275 msgid "Not a valid card" 260 276 msgstr "" 261 277 262 #: includes/class-wc-valorpay-gateway.php: 373278 #: includes/class-wc-valorpay-gateway.php:400 263 279 msgid "Card number expired" 264 280 msgstr "" 265 281 266 #: includes/class-wc-valorpay-gateway.php: 376282 #: includes/class-wc-valorpay-gateway.php:403 267 283 msgid "Card security code is invalid (only digits are allowed)" 268 284 msgstr "" 269 285 270 286 #. translators: 1: Terms and Conditions URL. 271 #: includes/class-wc-valorpay-gateway.php:4 12287 #: includes/class-wc-valorpay-gateway.php:439 272 288 msgid "I agree to the <a href=\"%s\" target=\"_blank\">Terms and Conditions</a>" 273 289 msgstr "" 274 290 275 #: includes/class-wc-valorpay-gateway.php:4 43276 #: includes/class-wc-valorpay-gateway.php:4 44291 #: includes/class-wc-valorpay-gateway.php:470 292 #: includes/class-wc-valorpay-gateway.php:471 277 293 msgid "Zip Code" 278 294 msgstr "" 279 295 280 #: includes/class-wc-valorpay-gateway.php:4 57281 #: includes/class-wc-valorpay-gateway.php:4 58296 #: includes/class-wc-valorpay-gateway.php:484 297 #: includes/class-wc-valorpay-gateway.php:485 282 298 msgid "Street Address" 283 299 msgstr "" 284 300 285 #: includes/class-wc-valorpay-gateway.php: 479301 #: includes/class-wc-valorpay-gateway.php:506 286 302 msgid "Enable/Disable" 287 303 msgstr "" 288 304 289 #: includes/class-wc-valorpay-gateway.php: 480305 #: includes/class-wc-valorpay-gateway.php:507 290 306 msgid "Enable Valor Pay" 291 307 msgstr "" 292 308 293 #: includes/class-wc-valorpay-gateway.php: 486309 #: includes/class-wc-valorpay-gateway.php:513 294 310 msgid "Title" 295 311 msgstr "" 296 312 297 #: includes/class-wc-valorpay-gateway.php: 488313 #: includes/class-wc-valorpay-gateway.php:515 298 314 msgid "This controls the title which the user sees during checkout." 299 315 msgstr "" 300 316 301 #: includes/class-wc-valorpay-gateway.php: 493317 #: includes/class-wc-valorpay-gateway.php:520 302 318 msgid "Use Sandbox" 303 319 msgstr "" 304 320 305 #: includes/class-wc-valorpay-gateway.php: 494321 #: includes/class-wc-valorpay-gateway.php:521 306 322 msgid "Enable sandbox mode - live payments will not be taken if enabled." 307 323 msgstr "" 308 324 309 #: includes/class-wc-valorpay-gateway.php:5 00325 #: includes/class-wc-valorpay-gateway.php:527 310 326 msgid "APP ID" 311 327 msgstr "" 312 328 313 #: includes/class-wc-valorpay-gateway.php:5 02329 #: includes/class-wc-valorpay-gateway.php:529 314 330 msgid "Please email isvsupport@valorpaytech.com to get to know about your APP ID, ( In demo mode APP ID is not needed )" 315 331 msgstr "" 316 332 317 #: includes/class-wc-valorpay-gateway.php:5 06333 #: includes/class-wc-valorpay-gateway.php:533 318 334 msgid "APP KEY" 319 335 msgstr "" 320 336 321 #: includes/class-wc-valorpay-gateway.php:5 08337 #: includes/class-wc-valorpay-gateway.php:535 322 338 msgid "Please email isvsupport@valorpaytech.com to get to know about your APP KEY, ( In demo mode APP KEY is not needed )" 323 339 msgstr "" 324 340 325 #: includes/class-wc-valorpay-gateway.php:5 12341 #: includes/class-wc-valorpay-gateway.php:539 326 342 msgid "EPI" 327 343 msgstr "" 328 344 329 #: includes/class-wc-valorpay-gateway.php:5 14345 #: includes/class-wc-valorpay-gateway.php:541 330 346 msgid "Please email isvsupport@valorpaytech.com to get to know about your EPI ID, ( In demo mode EPI ID is not needed )" 331 347 msgstr "" 332 348 333 #: includes/class-wc-valorpay-gateway.php:518 349 #: includes/class-wc-valorpay-gateway.php:545 350 msgid "Allowed Card Type" 351 msgstr "" 352 353 #: includes/class-wc-valorpay-gateway.php:548 354 msgid "Select the allowed card type for transactions" 355 msgstr "" 356 357 #: includes/class-wc-valorpay-gateway.php:551 358 msgid "Both" 359 msgstr "" 360 361 #: includes/class-wc-valorpay-gateway.php:552 362 msgid "Credit" 363 msgstr "" 364 365 #: includes/class-wc-valorpay-gateway.php:553 366 msgid "Debit" 367 msgstr "" 368 369 #: includes/class-wc-valorpay-gateway.php:558 334 370 msgid "Payment Method" 335 371 msgstr "" 336 372 337 #: includes/class-wc-valorpay-gateway.php:5 28373 #: includes/class-wc-valorpay-gateway.php:568 338 374 msgid "Surcharge Mode" 339 375 msgstr "" 340 376 341 #: includes/class-wc-valorpay-gateway.php:5 29342 #: includes/class-wc-valorpay-gateway.php:5 36377 #: includes/class-wc-valorpay-gateway.php:569 378 #: includes/class-wc-valorpay-gateway.php:576 343 379 msgid "Enable Surcharge Mode" 344 380 msgstr "" 345 381 346 #: includes/class-wc-valorpay-gateway.php:5 31382 #: includes/class-wc-valorpay-gateway.php:571 347 383 msgid "Enable only if you want all transactions to be fall on surcharge mode, Merchant must have got an Surcharge MID inorder to work" 348 384 msgstr "" 349 385 350 #: includes/class-wc-valorpay-gateway.php:5 35386 #: includes/class-wc-valorpay-gateway.php:575 351 387 msgid "Surcharge Type" 352 388 msgstr "" 353 389 354 #: includes/class-wc-valorpay-gateway.php:5 45355 #: includes/class-wc-valorpay-gateway.php:5 46390 #: includes/class-wc-valorpay-gateway.php:585 391 #: includes/class-wc-valorpay-gateway.php:586 356 392 msgid "Surcharge Label" 357 393 msgstr "" 358 394 359 #: includes/class-wc-valorpay-gateway.php:5 51395 #: includes/class-wc-valorpay-gateway.php:591 360 396 msgid "Surcharge %" 361 397 msgstr "" 362 398 363 #: includes/class-wc-valorpay-gateway.php:5 55399 #: includes/class-wc-valorpay-gateway.php:595 364 400 msgid "Percentage will apply only on enabling on surcharge Indicator to true and Surcharge type is set fo Surcharge %" 365 401 msgstr "" 366 402 367 #: includes/class-wc-valorpay-gateway.php:5 58403 #: includes/class-wc-valorpay-gateway.php:598 368 404 msgid "Flat Rate $" 369 405 msgstr "" 370 406 371 #: includes/class-wc-valorpay-gateway.php: 561407 #: includes/class-wc-valorpay-gateway.php:601 372 408 msgid "Flat rate will apply only on if Enable surcharge mode is true and Surcharge type is set to Flat Rate $" 373 409 msgstr "" 374 410 375 #: includes/class-wc-valorpay-gateway.php: 564411 #: includes/class-wc-valorpay-gateway.php:604 376 412 msgid "Surcharge For Debit" 377 413 msgstr "" 378 414 379 #: includes/class-wc-valorpay-gateway.php: 565415 #: includes/class-wc-valorpay-gateway.php:605 380 416 msgid "Enable Surcharge For Debit" 381 417 msgstr "" 382 418 383 #: includes/class-wc-valorpay-gateway.php: 567419 #: includes/class-wc-valorpay-gateway.php:607 384 420 msgid "Enable surcharge for debit" 385 421 msgstr "" 386 422 387 #: includes/class-wc-valorpay-gateway.php: 571423 #: includes/class-wc-valorpay-gateway.php:611 388 424 msgid "AVS" 389 425 msgstr "" 390 426 391 #: includes/class-wc-valorpay-gateway.php: 581427 #: includes/class-wc-valorpay-gateway.php:621 392 428 msgid "The address verification service will add a text field to the checkout page based on the above option." 393 429 msgstr "" 394 430 395 #: includes/class-wc-valorpay-gateway.php:585 431 #: includes/class-wc-valorpay-gateway.php:624 432 #: includes/class-wc-valorpay-gateway.php:625 433 msgid "Enable L2 & L3 Processing" 434 msgstr "" 435 436 #: includes/class-wc-valorpay-gateway.php:627 437 msgid "Enable L2 & L3 processing for detailed data" 438 msgstr "" 439 440 #: includes/class-wc-valorpay-gateway.php:632 396 441 msgid "Enable Protection" 397 442 msgstr "" 398 443 399 444 #. translators: 1: Tracker URL. 400 #: includes/class-wc-valorpay-gateway.php: 589445 #: includes/class-wc-valorpay-gateway.php:636 401 446 msgid "Disable the payment method in the checkout page for failed transactions. <a id=\"valorpay-goto-tracker\" href=\"%s\">Unblock IP</a>" 402 447 msgstr "" 403 448 404 #: includes/class-wc-valorpay-gateway.php: 595449 #: includes/class-wc-valorpay-gateway.php:642 405 450 msgid "Declined Transaction Count" 406 451 msgstr "" 407 452 408 #: includes/class-wc-valorpay-gateway.php: 596453 #: includes/class-wc-valorpay-gateway.php:643 409 454 msgid "Number of declined transaction count." 410 455 msgstr "" 411 456 412 #: includes/class-wc-valorpay-gateway.php:6 00457 #: includes/class-wc-valorpay-gateway.php:647 413 458 msgid "3" 414 459 msgstr "" 415 460 416 #: includes/class-wc-valorpay-gateway.php:6 01461 #: includes/class-wc-valorpay-gateway.php:648 417 462 msgid "5" 418 463 msgstr "" 419 464 420 #: includes/class-wc-valorpay-gateway.php:6 02465 #: includes/class-wc-valorpay-gateway.php:649 421 466 msgid "6" 422 467 msgstr "" 423 468 424 #: includes/class-wc-valorpay-gateway.php:6 06469 #: includes/class-wc-valorpay-gateway.php:653 425 470 msgid "Block Payment For" 426 471 msgstr "" 427 472 428 #: includes/class-wc-valorpay-gateway.php:6 07473 #: includes/class-wc-valorpay-gateway.php:654 429 474 msgid "Minutes to block payment gateway in checkout." 430 475 msgstr "" 431 476 432 #: includes/class-wc-valorpay-gateway.php:6 11477 #: includes/class-wc-valorpay-gateway.php:658 433 478 msgid "1 min" 434 479 msgstr "" 435 480 436 #: includes/class-wc-valorpay-gateway.php:6 12481 #: includes/class-wc-valorpay-gateway.php:659 437 482 msgid "5 min" 438 483 msgstr "" 439 484 440 #: includes/class-wc-valorpay-gateway.php:6 13485 #: includes/class-wc-valorpay-gateway.php:660 441 486 msgid "10 min" 442 487 msgstr "" 443 488 444 #: includes/class-wc-valorpay-gateway.php:6 14489 #: includes/class-wc-valorpay-gateway.php:661 445 490 msgid "1 hour" 446 491 msgstr "" 447 492 448 #: includes/class-wc-valorpay-gateway.php:6 15493 #: includes/class-wc-valorpay-gateway.php:662 449 494 msgid "3 hour" 450 495 msgstr "" 451 496 452 #: includes/class-wc-valorpay-gateway.php:6 16497 #: includes/class-wc-valorpay-gateway.php:663 453 498 msgid "5 hour" 454 499 msgstr "" 455 500 456 #: includes/class-wc-valorpay-gateway.php:6 17501 #: includes/class-wc-valorpay-gateway.php:664 457 502 msgid "10 hour" 458 503 msgstr "" 459 504 460 #: includes/class-wc-valorpay-gateway.php:6 18505 #: includes/class-wc-valorpay-gateway.php:665 461 506 msgid "1 day" 462 507 msgstr "" 463 508 464 #: includes/class-wc-valorpay-gateway.php:6 22509 #: includes/class-wc-valorpay-gateway.php:669 465 510 msgid "Accepted Cards" 466 511 msgstr "" 467 512 468 #: includes/class-wc-valorpay-gateway.php:6 26513 #: includes/class-wc-valorpay-gateway.php:673 469 514 msgid "Select the card types to accept." 470 515 msgstr "" 471 516 472 517 #. translators: 1: Maximum percentage. 473 #: includes/class-wc-valorpay-gateway.php:6 51518 #: includes/class-wc-valorpay-gateway.php:698 474 519 msgid "Surcharge percentage cannot be more than %s" 475 520 msgstr "" 476 521 477 522 #. translators: 1: Maximum flat rate. 478 #: includes/class-wc-valorpay-gateway.php: 656523 #: includes/class-wc-valorpay-gateway.php:703 479 524 msgid "Surcharge flat rate cannot be more than %s" 480 525 msgstr "" 481 526 482 #: includes/class-wc-valorpay-gateway.php:7 01527 #: includes/class-wc-valorpay-gateway.php:748 483 528 msgid "Invalid card information." 484 529 msgstr "" 485 530 486 #: includes/class-wc-valorpay-gateway.php:7 34531 #: includes/class-wc-valorpay-gateway.php:781 487 532 msgid "Valor Pay: Card token added to subscription." 488 533 msgstr "" 489 534 490 535 #. translators: 1: Error Message, 2: Amount, 3: Line Break, 4: Approval Code, 5: Line Break, 6: RRN Number. 491 #: includes/class-wc-valorpay-gateway.php:7 51536 #: includes/class-wc-valorpay-gateway.php:798 492 537 msgid "Valor Pay %1$s for %2$s.%3$s <strong>Approval Code:</strong> %4$s.%5$s <strong>RRN:</strong> %6$s" 493 538 msgstr "" 494 539 495 540 #. translators: %s: API Error Message. 496 #: includes/class-wc-valorpay-gateway.php: 792497 #: includes/class-wc-valorpay-gateway.php: 795541 #: includes/class-wc-valorpay-gateway.php:839 542 #: includes/class-wc-valorpay-gateway.php:842 498 543 msgid "Payment error: %s" 499 544 msgstr "" 500 545 501 #: includes/class-wc-valorpay-gateway.php: 797546 #: includes/class-wc-valorpay-gateway.php:844 502 547 msgid "Unable to process the transaction using Valor Pay, please try again." 503 548 msgstr "" 504 549 505 550 #. translators: 1: Disable Time, 2: Unblock IP URL, 3: Customer IP. 506 #: includes/class-wc-valorpay-gateway.php: 888551 #: includes/class-wc-valorpay-gateway.php:935 507 552 msgid "Valor Pay method is disabled for %1$s. <a target=\"_blank\" href=\"%2$s\">To Unblock IP</a> %3$s" 508 553 msgstr "" 509 554 510 #: includes/class-wc-valorpay-gateway.php:9 51555 #: includes/class-wc-valorpay-gateway.php:998 511 556 msgid "Refund failed." 512 557 msgstr "" 513 558 514 559 #. translators: 1: Amount, 2: Line Break, 3: Approval code, 4: Line Break, 5: RRN Code 515 #: includes/class-wc-valorpay-gateway.php: 963560 #: includes/class-wc-valorpay-gateway.php:1010 516 561 msgid "Valor Pay Refund for %1$s.%2$s <strong>Approval Code:</strong> %3$s.%4$s <strong>RRN:</strong> %5$s" 517 562 msgstr "" -
valorpos/trunk/wc-valorpay.php
r3115531 r3142613 16 16 * Plugin URI: https://valorpaytech.com 17 17 * Description: Adds the Valor Payment Gateway to WooCommerce. 18 * Version: 7. 6.118 * Version: 7.7.0 19 19 * Author: Valor Paytech LLC 20 20 * Author URI: https://valorpaytech.com … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'WC_VALORPAY_VERSION', '7. 6.1' );39 define( 'WC_VALORPAY_VERSION', '7.7.0' ); 40 40 // Directory i.e. /home/user/public_html... 41 41 define( 'WC_VALORPAY_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.