Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter elyshop

    (@elyshop)

    I added it under data: {

    on both ,nothing happened. I used troubleshooting API request and the error i get is Cannot parse the body

    Thread Starter elyshop

    (@elyshop)

    sorry where to add it in the code

    Thread Starter elyshop

    (@elyshop)

    I get no response to the API

    Thread Starter elyshop

    (@elyshop)

    Hello sorry for the delay, here is the code:

    <script>
                    jQuery("#get-otp").on('click', function(e) {
    
                        e.preventDefault();
                        jQuery.ajax({
                            type: "POST",
                            url: "https://e-ly.shop/wp-admin/admin-ajax.php",
                            data: {
                                action: 'send_user_otp',
                                phone_number: 0914864917,
                                birthyear: jQuery("input[name='birth_date']").val(),
                                order_id: 3204,
                                order_total: 50.00,
                                token: '***********************************',
                                url: 'https://pgw.almadar.ly/api/',
                                category: 20                        },
                            success: function(response) {
                                if (isNaN(response)) {
    
                                    alert(response);
    								console.log(response)
    
                                } else {
    
                                    let transactionID = response;
                                    jQuery("#transaction_id").val(transactionID);
                                  
                                }
                            }
    
                        });
    
                    });
    
                    jQuery("#pay_sadad").on("click", function(e) {
    
                        e.preventDefault();
    
                        e.preventDefault();
                        jQuery.ajax({
                            type: "POST",
                            url: "https://e-ly.shop/wp-admin/admin-ajax.php",
                            data: {
                                action: 'pay_invoice',
                                transaction_id: jQuery("#transaction_id").val(),
                                OTP: jQuery("#OTP").val(),
    
                                token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiU2FkYWRQR1ciLCJjb3Jwb3JhdGVTZXJ2aWNlSWQiOjEzNTAsImFwcElkIjoiZmE1MjhiY2Q5ZjRiNGZiZWExYzRmOTI4ZTU3Nzg3NzkiLCJleHAiOjE2NTM2NTI0NzEsImlzcyI6IkNvcmV0ZWMiLCJhdWQiOiJTQURBRFBHVyJ9.CL6M9gmbvk698m5lExmIn734pTEbU6dIMbYBRI013ho',
                                url: 'https://pgw.almadar.ly/api/',
    
                            },
                            success: function(response) {
                                console.log(response);
                                if (response == 0) {
    
                                    jQuery.ajax({
                                        type: "POST",
                                        url: "https://e-ly.shop/wp-admin/admin-ajax.php",
                                        data: {
                                            action: 'update_order_on_success',
                                            order_id: 3204,
    
                                        },
                                        success: function(response) {
    
                                            window.location.href = response;
    
                                        }
    
                                    });
    
                                }
                            }
    
                        });
    
                    });
    Thread Starter elyshop

    (@elyshop)

    i am the developer of the plugin, it worked fine before the WP update though

    Thread Starter elyshop

    (@elyshop)

    Hello please help

    Thread Starter elyshop

    (@elyshop)

    it is the orchid store theme

    Thread Starter elyshop

    (@elyshop)

    Mine is in arabic i dont know if thats valid. my problem is related to plugin i created and uploaded, its a custom payment plugin this is the link :
    https://e-ly.shop/checkout/

    Thread Starter elyshop

    (@elyshop)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://e-ly.shop
    Site address (URL): https://e-ly.shop
    WC Version: 4.3.1
    REST API Version: ? 1.0.10
    WC Blocks Version: ? 2.7.2
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.3.1
    Log Directory Writable: ?
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 128 ????????
    WP Debug Mode: –
    WP Cron: ?
    Language: ar
    External object cache: ?
    
    ### Server Environment ###
    
    Server Info: nginx/1.16.1
    PHP Version: 7.3.15
    PHP Post Max Size: 512 ????????
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.67.0
    OpenSSL/1.1.1g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.26-29-log
    Max Upload Size: 512 ????????
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.3.1
    WC Database Prefix: wp_
    ?????? ??? ????? ????????: 10.98MB
    ??? ?????? ????? ????????: 9.44MB
    ??? ???? ????? ????????: 1.54MB
    wp_woocommerce_sessions: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_woocommerce_api_keys: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_woocommerce_attribute_taxonomies: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_woocommerce_downloadable_product_permissions: ????????: 0.02 ?.?. + ??????: 0.06 ?.?. + ?????? InnoDB
    wp_woocommerce_order_items: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_woocommerce_order_itemmeta: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_woocommerce_tax_rates: ????????: 0.02 ?.?. + ??????: 0.06 ?.?. + ?????? InnoDB
    wp_woocommerce_tax_rate_locations: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_woocommerce_shipping_zones: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_woocommerce_shipping_zone_locations: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_woocommerce_shipping_zone_methods: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_woocommerce_payment_tokens: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_woocommerce_payment_tokenmeta: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_woocommerce_log: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_actionscheduler_actions: ????????: 0.09 ?.?. + ??????: 0.11 ?.?. + ?????? InnoDB
    wp_actionscheduler_claims: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_actionscheduler_groups: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_actionscheduler_logs: ????????: 0.08 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_commentmeta: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_comments: ????????: 0.02 ?.?. + ??????: 0.09 ?.?. + ?????? InnoDB
    wp_links: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_lmfwc_api_keys: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_lmfwc_generators: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_lmfwc_licenses: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_lmfwc_licenses_meta: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_ms_snippets: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_options: ????????: 0.08 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_postmeta: ????????: 2.20 ?.?. + ??????: 0.16 ?.?. + ?????? InnoDB
    wp_posts: ????????: 6.09 ?.?. + ??????: 0.06 ?.?. + ?????? InnoDB
    wp_snippets: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_termmeta: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_terms: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_term_relationships: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_term_taxonomy: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_usermeta: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_users: ????????: 0.02 ?.?. + ??????: 0.05 ?.?. + ?????? InnoDB
    wp_wc_admin_notes: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_wc_admin_note_actions: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_wc_category_lookup: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_wc_customer_lookup: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_wc_download_log: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_wc_order_coupon_lookup: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_wc_order_product_lookup: ????????: 0.02 ?.?. + ??????: 0.06 ?.?. + ?????? InnoDB
    wp_wc_order_stats: ????????: 0.02 ?.?. + ??????: 0.05 ?.?. + ?????? InnoDB
    wp_wc_order_tax_lookup: ????????: 0.02 ?.?. + ??????: 0.03 ?.?. + ?????? InnoDB
    wp_wc_product_meta_lookup: ????????: 0.02 ?.?. + ??????: 0.09 ?.?. + ?????? InnoDB
    wp_wc_reserved_stock: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    wp_wc_tax_rate_classes: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_wc_webhooks: ????????: 0.02 ?.?. + ??????: 0.02 ?.?. + ?????? InnoDB
    wp_wpforms_tasks_meta: ????????: 0.02 ?.?. + ??????: 0.00 ?.?. + ?????? InnoDB
    
    ### Post Type Counts ###
    
    attachment: 72
    custom_css: 1
    elementor_library: 1
    envira: 1
    nav_menu_item: 11
    page: 8
    post: 3
    product: 3
    revision: 49
    shop_coupon: 1
    shop_order: 45
    uni_cpo_option: 1
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (16) ###
    
    EDFALI Payment: ?????? by Youssef tamim – 1.12
    Advanced WP Columns: ?????? Vladica Savic – 2.0.6
    Code Snippets: ?????? Code Snippets Pro – 2.14.0
    Elementor: ?????? Elementor.com – 2.9.14
    Envira Gallery Lite: ?????? Envira Gallery Team – 1.8.0.1
    Facebook for WooCommerce: ?????? Facebook – 1.11.4 – ?? ??? ?????? ??????? ???????? ?? ??????? ????? ?? WooCommerce4.3.1
    Google Analytics for WordPress by MonsterInsights: ?????? MonsterInsights – 7.11.0
    Jetpack ?????? WordPress.com: ?????? Automattic – 8.6.1
    License Manager for WooCommerce: ?????? Dra?en Bebi? – 2.2.0 – ?? ??? ?????? ??????? ???????? ?? ??????? ????? ?? WooCommerce4.3.1
    Product Price by Formula for WooCommerce: ?????? ProWCPlugins – 2.3.4 – ?? ??? ?????? ??????? ???????? ?? ??????? ????? ?? WooCommerce4.3.1
    Really Simple SSL: ?????? Really Simple Plugins – 3.3.4
    WP SVG Icons: ?????? EH Dev Shop – 3.2.3
    Checkout Field Editor for WooCommerce: ?????? ThemeHigh – 1.4.3
    WooCommerce: ?????? Automattic – 4.3.1 (??????? ??? ??????? 4.5.2 ????)
    WPForms Lite: ?????? WPForms – 1.6.1
    Smart Coupons for WooCommerce: ?????? WebToffee – 1.2.5 – ?? ??? ?????? ??????? ???????? ?? ??????? ????? ?? WooCommerce4.3.1
    
    ### Inactive Plugins (8) ###
    
    Akismet Anti-Spam: ?????? Automattic – 4.1.5
    AppPresser: ?????? AppPresser Team – 4.0.4
    GTranslate: ?????? Translate AI Multilingual Solutions – 2.8.55
    Hello Dolly: ?????? Matt Mullenweg – 1.7.2
    Insert PHP Code Snippet: ?????? xyzscripts.com – 1.3.1
    Responsive WordPress Slider - Soliloquy Lite: ?????? Soliloquy Team – 2.6.0
    Weglot Translate: ?????? Weglot Translate team – 3.1.8
    WooCommerce Google Analytics Integration: ?????? WooCommerce – 1.4.22 – ?? ??? ?????? ??????? ???????? ?? ??????? ????? ?? WooCommerce4.3.1
    
    ### Dropin Plugins (1) ###
    
    object-cache.php: Redis Object Cache Drop-In
    
    ### Must Use Plugins (1) ###
    
    EasyWP Plugin: ?????? Namecheap
    Inc. – 0.6.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: LYD (?.?)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    ??????: #12 - /%d8%aa%d8%b3%d9%88%d9%82/
    ?????: #13 - /cart/
    ????? ?????: #14 - /checkout/
    ?????: ? ?????? ?? ????
    ?????? ????????: ? ?????? ?? ????
    
    ### Theme ###
    
    Name: Orchid Store
    Version: 1.2.1 (??????? ??? ??????? 1.2.2 ????)
    Author URL: https://themebeez.com
    Child Theme: ? – ??? ??? ???? ?????? WooCommerce ??? ???? ??? ?? ??? ?????? ??????? ??? ???? ???????? ???? ???. ????: ????? ????? ???? ???
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: orchid-store/woocommerce/archive-product.php
    orchid-store/woocommerce/content-product.php
    orchid-store/woocommerce/emails/customer-invoice.php
    orchid-store/woocommerce/global/wrapper-end.php
    orchid-store/woocommerce/global/wrapper-start.php
    orchid-store/woocommerce/loop/loop-start.php
    orchid-store/woocommerce/loop/sale-flash.php
    orchid-store/woocommerce/product-searchform.php
    
    ### Action Scheduler ###
    
    (??????): 186
    Oldest: 2020-09-17 14:29:57 +0000
    Newest: 2020-10-14 13:06:32 +0000
    
    ?????: 2
    Oldest: 2020-10-14 16:39:09 +0000
    Newest: 2020-10-14 16:39:09 +0000
    
    
    Thread Starter elyshop

    (@elyshop)

    theme* please

    Thread Starter elyshop

    (@elyshop)

    Do you know how to remove the footer them credit as well please

    Thread Starter elyshop

    (@elyshop)

    Thank you very much

    Thread Starter elyshop

    (@elyshop)

Viewing 13 replies - 1 through 13 (of 13 total)