Plugin Directory

Changeset 3088738


Ignore:
Timestamp:
05/18/2024 05:08:13 PM (23 months ago)
Author:
notchpay
Message:

Added currencies

Location:
wc-notchpay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wc-notchpay/trunk/includes/class-wc-gateway-notchpay.php

    r3034280 r3088738  
    168168     */
    169169    public $secret_key;
     170
     171    /**
     172     * locked currency
     173     */
     174    public $locked_currency;
    170175
    171176    /**
     
    202207
    203208        $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';
    205210        $this->enabled            = $this->get_option('enabled');
    206211        $this->testmode           = $this->get_option('testmode') === 'yes' ? true : false;
     
    212217        $this->live_public_key = $this->get_option('live_public_key');
    213218        $this->live_secret_key = $this->get_option('live_secret_key');
     219
     220        $this->locked_currency = $this->get_option('locked_currency');
    214221
    215222        $this->saved_cards = $this->get_option('saved_cards') === 'yes' ? true : false;
     
    377384                'desc_tip'    => true,
    378385            ),
    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            // ),
    386393            'testmode'                         => array(
    387394                'title'       => __('Test mode', 'woo-notchpay'),
     
    416423                'description' => __('Enter your Live Secret / Hash Key here.', 'woo-notchpay'),
    417424                '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                  ],
    418593            ),
    419594            'payment_page'                     => array(
     
    613788        );
    614789
     790        if($this->locked_currency != null) {
     791            $notchpay_params['locked_currency'] = $this->locked_currency;
     792        }
     793
    615794        if ($this->meta_name) {
    616795            $notchpay_params['name'] = $order->get_billing_first_name() . ' ' . $order->get_billing_last_name();
     
    642821
    643822        $request = wp_remote_post($notchpay_url, $args);
    644 
    645    
    646823
    647824        if (!is_wp_error($request) && 201 === wp_remote_retrieve_response_code($request)) {
  • wc-notchpay/trunk/readme.txt

    r3088667 r3088738  
    11=== Notch Pay for WooCommerce ===
    2 Contributors: notchpay
    3 Tags: notch pay, notchpay, mobile money, orange money, woocommerce
     2Contributors: notchpay,chapdel
     3Tags: notch pay, notchpay, mobile money, orange money, woocommerce, payment gateway, cameroon, cameroun, xaf, fcfa, mastercard, visa, paypal
    44Requires at least: 5.8
    55Tested up to: 6.4
    6 Stable tag: 2.1.4
     6Stable tag: 2.1.5
    77Requires PHP: 7.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    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.
     11Notch Pay provides merchants with the tools and services to accept online payments from local and international customers using Mobile Money and cards.
    1212
    1313== Description ==
    1414
    1515Notch 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? ==
    1916
    2017With Notch Pay for WooCommerce, you can accept payments via:
     
    2421* Mobile money (Cameroon)
    2522* Many more coming soon
     23
     24= Why Notch Pay? =
    2625
    2726* 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  
    44 * Plugin URI: https://notchpay.co
    55 * Description: Accept local and international payments on WooCommerce with Notch Pay.
    6  * Version: 2.1.4
     6 * Version: 2.1.5
    77 * Author: Notch Pay
    88 * Author URI: https://notchpay.co
Note: See TracChangeset for help on using the changeset viewer.