Changeset 3088738
- Timestamp:
- 05/18/2024 05:08:13 PM (23 months ago)
- Location:
- wc-notchpay/trunk
- Files:
-
- 3 edited
-
includes/class-wc-gateway-notchpay.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
woo-notchpay.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-notchpay/trunk/includes/class-wc-gateway-notchpay.php
r3034280 r3088738 168 168 */ 169 169 public $secret_key; 170 171 /** 172 * locked currency 173 */ 174 public $locked_currency; 170 175 171 176 /** … … 202 207 203 208 $this->title = $this->get_option('title'); 204 $this->description = $this->get_option('description');209 $this->description = 'Credit / Debit Cards, Mobile Money, PayPal or Digital Wallets'; 205 210 $this->enabled = $this->get_option('enabled'); 206 211 $this->testmode = $this->get_option('testmode') === 'yes' ? true : false; … … 212 217 $this->live_public_key = $this->get_option('live_public_key'); 213 218 $this->live_secret_key = $this->get_option('live_secret_key'); 219 220 $this->locked_currency = $this->get_option('locked_currency'); 214 221 215 222 $this->saved_cards = $this->get_option('saved_cards') === 'yes' ? true : false; … … 377 384 'desc_tip' => true, 378 385 ), 379 'description' => array(380 'title' => __('Description', 'woo-notchpay'),381 'type' => 'textarea',382 'description' => __('This controls the payment method description which the user sees during checkout.', 'woo-notchpay'),383 'default' => __('Credit / Debit Cards, Mobile Money, PayPal or Digital Wallets', 'woo-notchpay'),384 'desc_tip' => true,385 ),386 // 'description' => array( 387 // 'title' => __('Description', 'woo-notchpay'), 388 // 'type' => 'textarea', 389 // 'description' => __('This controls the payment method description which the user sees during checkout.', 'woo-notchpay'), 390 // 'default' => __('Credit / Debit Cards, Mobile Money, PayPal or Digital Wallets', 'woo-notchpay'), 391 // 'desc_tip' => true, 392 // ), 386 393 'testmode' => array( 387 394 'title' => __('Test mode', 'woo-notchpay'), … … 416 423 'description' => __('Enter your Live Secret / Hash Key here.', 'woo-notchpay'), 417 424 'default' => '', 425 ), 426 'locked_currency' => array( 427 'title' => __('Locked currency', 'woo-notchpay'), 428 'type' => 'select', 429 'description' => __('The currency your customers will make transactions', 'woo-notchpay'), 430 'default' => '', 431 'desc_tip' => false, 432 'options' => [ 433 '' => __('Select One', 'woo-notchpay'), 434 "AED" => "AED", 435 "AFN" => "AFN", 436 "ALL" => "ALL", 437 "AMD" => "AMD", 438 "ANG" => "ANG", 439 "AOA" => "AOA", 440 "ARS" => "ARS", 441 "AUD" => "AUD", 442 "AWG" => "AWG", 443 "AZN" => "AZN", 444 "BAM" => "BAM", 445 "BBD" => "BBD", 446 "BDT" => "BDT", 447 "BGN" => "BGN", 448 "BHD" => "BHD", 449 "BIF" => "BIF", 450 "BMD" => "BMD", 451 "BND" => "BND", 452 "BOB" => "BOB", 453 "BRL" => "BRL", 454 "BSD" => "BSD", 455 "BTN" => "BTN", 456 "BWP" => "BWP", 457 "BYN" => "BYN", 458 "BZD" => "BZD", 459 "CAD" => "CAD", 460 "CDF" => "CDF", 461 "CHF" => "CHF", 462 "CLP" => "CLP", 463 "CNY" => "CNY", 464 "COP" => "COP", 465 "CRC" => "CRC", 466 "CUC" => "CUC", 467 "CUP" => "CUP", 468 "CVE" => "CVE", 469 "CZK" => "CZK", 470 "DJF" => "DJF", 471 "DKK" => "DKK", 472 "DOP" => "DOP", 473 "DZD" => "DZD", 474 "EGP" => "EGP", 475 "ERN" => "ERN", 476 "ETB" => "ETB", 477 "EUR" => "EUR", 478 "FJD" => "FJD", 479 "FKP" => "FKP", 480 "GBP" => "GBP", 481 "GEL" => "GEL", 482 "GHS" => "GHS", 483 "GIP" => "GIP", 484 "GMD" => "GMD", 485 "GNF" => "GNF", 486 "GTQ" => "GTQ", 487 "GYD" => "GYD", 488 "HKD" => "HKD", 489 "HNL" => "HNL", 490 "HRK" => "HRK", 491 "HTG" => "HTG", 492 "HUF" => "HUF", 493 "IDR" => "IDR", 494 "ILS" => "ILS", 495 "INR" => "INR", 496 "IQD" => "IQD", 497 "IRR" => "IRR", 498 "ISK" => "ISK", 499 "JMD" => "JMD", 500 "JOD" => "JOD", 501 "JPY" => "JPY", 502 "KES" => "KES", 503 "KGS" => "KGS", 504 "KHR" => "KHR", 505 "KMF" => "KMF", 506 "KPW" => "KPW", 507 "KRW" => "KRW", 508 "KWD" => "KWD", 509 "KYD" => "KYD", 510 "KZT" => "KZT", 511 "LAK" => "LAK", 512 "LBP" => "LBP", 513 "LKR" => "LKR", 514 "LRD" => "LRD", 515 "LSL" => "LSL", 516 "LYD" => "LYD", 517 "MAD" => "MAD", 518 "MDL" => "MDL", 519 "MGA" => "MGA", 520 "MKD" => "MKD", 521 "MMK" => "MMK", 522 "MNT" => "MNT", 523 "MOP" => "MOP", 524 "MRU" => "MRU", 525 "MTL" => "MTL", 526 "MUR" => "MUR", 527 "MVR" => "MVR", 528 "MWK" => "MWK", 529 "MXN" => "MXN", 530 "MYR" => "MYR", 531 "MZN" => "MZN", 532 "NAD" => "NAD", 533 "NGN" => "NGN", 534 "NIO" => "NIO", 535 "NOK" => "NOK", 536 "NPR" => "NPR", 537 "NZD" => "NZD", 538 "OMR" => "OMR", 539 "PAB" => "PAB", 540 "PEN" => "PEN", 541 "PGK" => "PGK", 542 "PHP" => "PHP", 543 "PKR" => "PKR", 544 "PLN" => "PLN", 545 "PYG" => "PYG", 546 "QAR" => "QAR", 547 "RON" => "RON", 548 "RSD" => "RSD", 549 "RUB" => "RUB", 550 "RWF" => "RWF", 551 "SAR" => "SAR", 552 "SBD" => "SBD", 553 "SCR" => "SCR", 554 "SDG" => "SDG", 555 "SEK" => "SEK", 556 "SGD" => "SGD", 557 "SHP" => "SHP", 558 "SLL" => "SLL", 559 "SOS" => "SOS", 560 "SRD" => "SRD", 561 "SSP" => "SSP", 562 "STN" => "STN", 563 "SVC" => "SVC", 564 "SYP" => "SYP", 565 "SZL" => "SZL", 566 "THB" => "THB", 567 "TJS" => "TJS", 568 "TMT" => "TMT", 569 "TND" => "TND", 570 "TOP" => "TOP", 571 "TRY" => "TRY", 572 "TTD" => "TTD", 573 "TWD" => "TWD", 574 "TZS" => "TZS", 575 "UAH" => "UAH", 576 "UGX" => "UGX", 577 "USD" => "USD", 578 "UYU" => "UYU", 579 "UZS" => "UZS", 580 "VES" => "VES", 581 "VND" => "VND", 582 "VUV" => "VUV", 583 "WST" => "WST", 584 "XAF" => "XAF", 585 "XCD" => "XCD", 586 "XOF" => "XOF", 587 "XPF" => "XPF", 588 "YER" => "YER", 589 "ZAR" => "ZAR", 590 "ZMW" => "ZMW", 591 "ZWL" => "ZWL", 592 ], 418 593 ), 419 594 'payment_page' => array( … … 613 788 ); 614 789 790 if($this->locked_currency != null) { 791 $notchpay_params['locked_currency'] = $this->locked_currency; 792 } 793 615 794 if ($this->meta_name) { 616 795 $notchpay_params['name'] = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(); … … 642 821 643 822 $request = wp_remote_post($notchpay_url, $args); 644 645 646 823 647 824 if (!is_wp_error($request) && 201 === wp_remote_retrieve_response_code($request)) { -
wc-notchpay/trunk/readme.txt
r3088667 r3088738 1 1 === Notch Pay for WooCommerce === 2 Contributors: notchpay 3 Tags: notch pay, notchpay, mobile money, orange money, woocommerce 2 Contributors: notchpay,chapdel 3 Tags: notch pay, notchpay, mobile money, orange money, woocommerce, payment gateway, cameroon, cameroun, xaf, fcfa, mastercard, visa, paypal 4 4 Requires at least: 5.8 5 5 Tested up to: 6.4 6 Stable tag: 2.1. 46 Stable tag: 2.1.5 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Notch Pay provides merchants with the tools and services to accept online payments from local and international customers using Mobile Money , Mastercard, Visa and bank accounts.11 Notch Pay provides merchants with the tools and services to accept online payments from local and international customers using Mobile Money and cards. 12 12 13 13 == Description == 14 14 15 15 Notch Pay makes it easy for businesses in Cameroon, Nigeria, Ghana, Kenya and South Africa to accept secure payments from multiple local and global payment channels. Integrate Notch Pay with your store today, and let your customers pay you with their choice of methods. 16 17 18 == Why Notch Pay? ==19 16 20 17 With Notch Pay for WooCommerce, you can accept payments via: … … 24 21 * Mobile money (Cameroon) 25 22 * Many more coming soon 23 24 = Why Notch Pay? = 26 25 27 26 * Start receiving payments instantly—go from sign-up to your first real transaction in as little as 15 minutes -
wc-notchpay/trunk/woo-notchpay.php
r3088665 r3088738 4 4 * Plugin URI: https://notchpay.co 5 5 * Description: Accept local and international payments on WooCommerce with Notch Pay. 6 * Version: 2.1. 46 * Version: 2.1.5 7 7 * Author: Notch Pay 8 8 * Author URI: https://notchpay.co
Note: See TracChangeset
for help on using the changeset viewer.