• Resolved Dennis Heiden

    (@dennisheiden)


    Hi,

    Setup:
    WordPress – Multilanguage
    Woo – USD base currency
    Woo – China Product -> manual price in CNY
    Stripe – Test Mode with test keys and test secrets
    Stripe – Account base currency is CHF
    Payment – Stripe Alipay

    Issue:
    Test Mode Alipay -> Authorize Payment
    -> redirect:
    ?client_secret=src_client_secret_jpqLZwH9yP9RUDWYsylxAj6x&redirect_status=succeeded

    -> shows checkout instead of thank you page -> backend status is “failed” for the order

    Error Message (only visible with vanilla theme currently):

    For Alipay payments, we currently require your account to have a bank account in one of the following currencies: aud, cad, eur, gbp, hkd, jpy, nzd, sgd, usd, myr, bgn [0]

    This relates to this issue I think:
    https://wordpress.org/support/topic/alipaychina-issue/

    BUT!!

    Stripe Support:
    Stripe is supporting Alipay in CNY with Stripe account currency based in CHF.

    We are currently cloning the side to another instance to do further testing with different setups, meanwhile I want to ask you if this might be an issue with Stripe / Woo checking for the outdated currency issue and rejecting the payment process?

    Regards

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Dennis Heiden

    (@dennisheiden)

    Addendum:

    This is the correct error message on the checkout page after redirect (translated from chinese):

    Sorry, we are temporarily unable to process your payment. Please try again later.

    Plugin Support Tseten a11n

    (@tibetanitech)

    Hi @dennisheiden

    I understand you are trying to integrate Stripe with Alipay. From you description I see that you have setup the store currency in USD <b> WooCommerce > Settings</b> and setup CNY currency manually in the product.

    Have you tried changing the store currency directly and test? I recommend changing the store currency to CNY and enable Stripe debugging log in <b> WooCommerce > Settings > Payments > Stripe</b>. Clear your cache and do a test.

    If it doesn’t work and the error still persists, please share with us the logs. To find the generated logs:

    1. Go to WooCommerce > Status > Logs
    2. In the top right corner, open the drop-down and select the latest Stripe log, then click view to load it. Here’s what that looks like:
    https://d.pr/i/tCljQd
    3. Copy/paste the log into your response so we can take a look.

    Thanks!

    Thread Starter Dennis Heiden

    (@dennisheiden)

    2021-03-19T09:52:47+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    Info: (Redirect) Begin processing payment for order 1425 for the amount of 6370.00
    ====End Log====
    
    2021-03-19T09:52:47+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    sources/src_1IWf0IKcBv6sGNGLOhpJXcpN
    ====End Log====
    
    2021-03-19T09:52:48+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    charges request: Array
    (
        [currency] => cny
        [amount] => 637000
        [description] => Schranner Concept - 订单 1425
        [expand[]] => balance_transaction
        [metadata] => Array
            (
                [顾客_姓名] => Dennis Heiden
                [顾客_邮箱] => dh@straightvisions.com
                [order_id] => 1425
                [site_url] => https://concept.schranner.cloud2.straightvisions.com
            )
    
        [customer] => cus_J7uPDqU5Jpiya6
        [source] => src_1IWf0IKcBv6sGNGLOhpJXcpN
    )
    
    ====End Log====
    
    2021-03-19T09:52:48+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    Info: (Redirect) Begin processing payment for order 1425 for the amount of 6370.00
    ====End Log====
    
    2021-03-19T09:52:48+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    sources/src_1IWf0IKcBv6sGNGLOhpJXcpN
    ====End Log====
    
    2021-03-19T09:52:48+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    charges request: Array
    (
        [currency] => cny
        [amount] => 637000
        [description] => Schranner Concept - 订单 1425
        [expand[]] => balance_transaction
        [metadata] => Array
            (
                [顾客_姓名] => Dennis Heiden
                [顾客_邮箱] => dh@straightvisions.com
                [order_id] => 1425
                [site_url] => https://concept.schranner.cloud2.straightvisions.com
            )
    
        [customer] => cus_J7uPDqU5Jpiya6
        [source] => src_1IWf0IKcBv6sGNGLOhpJXcpN
    )
    
    ====End Log====
    
    2021-03-19T09:52:49+00:00 DEBUG 
    ====Stripe Version: 4.9.0====
    ====Start Log====
    Error: stdClass Object
    (
        [error] => stdClass Object
            (
                [message] => For 'alipay' payments, we currently require your account to have a bank account in one of the following currencies: aud, cad, eur, gbp, hkd, jpy, nzd, sgd, usd, myr, bgn
                [param] => currency
                [type] => invalid_request_error
            )
    
    )
    
    ====End Log====
    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @dennisheiden

    Thanks for sending us the logs.

    Was this log from your test after you changed the shop’s currency to CNY? Also, can you elaborate some on how you’re adding the manual price in CNY for just that one product?

    I tested Alipay in Test mode with the shop’s currency set to CNY and didn’t get the same results. The test payment succeeded. I’m not sure how to test this exactly with just one product being set to CNY manually, so I’d like to confirm how you’re doing this.

    Also, would you mind copying and pasting your System Status Report into this thread so that we can review it? You can find this by going to WooCommerce > Status > System Status > Get System Report in your WP-Admin dashboard.

    Thanks, and looking forward to your reply!

    Thread Starter Dennis Heiden

    (@dennisheiden)

    Hi,

    we have changed to a new Stripe account in USD.

    To me it looks like the first issue is solved by just changing to an USD account (which confirms the other thread). Now we get an error message on Alipay

    “The data of this order cannot be recognized, please contact the seller”.

    I don’t know if this new issue is Woo territory or if we have missed something here on the Stripe side.

    If needed, here is our new test data (after testing):

    Setup:
    WooCommerce
    WooCommerce Multilingual
    WooCommerce Price Base on Country (Basic)
    WooCommerce Stripe Gateway
    Zone Pricing activated / setup for China in CNY
    
    Product Setup: 
    Reuglar price (USD) ~ 980$
    Price for China (CNY) -> "Set prices manually" activated -> 63706¥
    
    Shop Currency:		USD
    Stripe Currency:	HKD / Hong Kong Dollar
    
    New test in Stripe test mode:	Working - Order gets accepted and status is "Processing"
    
    New test in Stripe live mode:	Error message in Alipay - Order status is "Pending payment"

    Report AFTER the test (removed names and domain here, but they are correct in the uncensored log):

    ## STRIPE LOG ##

    2021-03-24T01:59:28+00:00 DEBUG 
    ====Stripe Version: 5.0.0====
    ====Start Log====
    Info: Begin creating Alipay source
    ====End Log====
    
    2021-03-24T01:59:28+00:00 DEBUG 
    ====Stripe Version: 5.0.0====
    ====Start Log====
    sources request: Array
    (
        [amount] => 637000
        [currency] => cny
        [type] => alipay
        [owner] => stdClass Object
            (
                [phone] => 69181619
                [name] => xx
                [email] => xx
                [address] => Array
                    (
                        [line1] => 20/F, Leighton Centre, 77 Leighton Road
                        [line2] => 
                        [state] => HONG KONG
                        [city] => Causeway Bay
                        [postal_code] => 
                        [country] => HK
                    )
    
            )
    
        [redirect] => Array
            (
                [return_url] => xxx/zh-hans/checkout/order-received/1428/?key=wc_order_k9r1KIO0rtQ3G&utm_nooverride=1&order_id=1428
            )
    
    )
    
    ====End Log====
    
    ### WordPress Environment ###
    
    WordPress address (URL): xxx
    Site address (URL): xxx
    WC Version: 5.1.0
    REST API Version: ✔ 5.1.0
    WC Blocks Version: ✔ 4.4.3
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 2.0.2
    Log Directory Writable: ✔
    WP Version: 5.7
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.16
    PHP Post Max Size: 128 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 20000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.28-MariaDB
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.1.0
    WC Database Prefix: xiK4D4t_
    Total Database Size: 89.98MB
    Database Data Size: 82.39MB
    Database Index Size: 7.59MB
    xiK4D4t_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_order_itemmeta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
    xiK4D4t_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB
    xiK4D4t_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_akeeba_common: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_params: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_ak_storage: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_all_in_one_redirection: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    xiK4D4t_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_languages_translations: Data: 0.20MB + Index: 0.13MB + Engine InnoDB
    xiK4D4t_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_strings: Data: 2.52MB + Index: 4.22MB + Engine InnoDB
    xiK4D4t_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_string_positions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_string_translations: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_translate: Data: 6.52MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_translations: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_translation_status: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_options: Data: 2.25MB + Index: 0.14MB + Engine InnoDB
    xiK4D4t_postmeta: Data: 1.52MB + Index: 0.63MB + Engine InnoDB
    xiK4D4t_posts: Data: 65.52MB + Index: 0.31MB + Engine InnoDB
    xiK4D4t_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_usermeta: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    xiK4D4t_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_yoast_indexable: Data: 0.13MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_yoast_seo_links: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 205
    custom_css: 1
    nav_menu_item: 2
    oembed_cache: 3
    page: 28
    post: 3
    product: 5
    revision: 760
    shop_order: 127
    sv_forms_submit: 40
    wp_block: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (13) ###
    
    WPML Multilingual CMS: by OnTheGoSystems – 4.4.9
    Better Search Replace: by Delicious Brains – 1.3.4
    Block Editor For WooCommerce: by PixelHive – 1.0.1
    Gutenberg: by Gutenberg Team – 10.1.0
    Gutenslider — The last WordPress slider you will ever need.: by eedee – 4.5.0
    WooCommerce Stripe Gateway: by WooCommerce – 5.0.0
    WooCommerce Multilingual: by OnTheGoSystems – 4.11.3
    WooCommerce Price Based on Country (Basic): by Oscar Gare – 2.0.17
    WooCommerce: by Automattic – 5.1.0
    WP Rocket: by WP Media – 3.8.6
    WPML Media: by OnTheGoSystems – 2.6.3
    WPML String Translation: by OnTheGoSystems – 3.1.7
    WPML Translation Management: by OnTheGoSystems – 2.10.5
    
    ### Inactive Plugins (13) ###
    
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.5
    Duplicate Page: by mndpsingh287 – 4.3
    Imagify: by WP Media – 1.9.14
    Loco Translate: by Tim Whitlock – 2.5.1
    Multi-Step Checkout for WooCommerce (Pro): by ThemeHigh – 2.0.0
    SV100 Companion: by straightvisions GmbH – 1.4.17
    SV Columns Manager: by straightvisions GmbH – 1.4.01
    SV Forms: by straightvisions GmbH – 1.4.19
    SVG Support: by Benbodhi – 2.3.18
    SV Tracking Manager: by straightvisions GmbH – 1.4.07
    WooCommerce - Country Based Payments: by Ivan Paulin – 1.4
    Yoast SEO: by Team Yoast – 16.0
    Yoast SEO Multilingual: by OnTheGoSystems – 1.3.0
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    ### Must Use Plugins (1) ###
    
    akeeba-backup-coreupdate.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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 ###
    
    Shop base: #986 - /shop/
    Cart: #987 - /cart/
    Checkout: #988 - /checkout/
    My account: #989 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Twenty Twenty-One
    Version: 1.2
    Author URL: https://wordpress.org/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Geolocation debug info ###
    
    Default customer location: base
    MaxMind GeoIP database: ❌ The MaxMind GeoIP Database does not exist - Geolocation will not function.
    MaxMind GeoIP license: ❌ Geolocation has not been configured. You must enter a valid license key on the MaxMind integration settings page.
    MM_COUNTRY_CODE: ❌
    GEOIP_COUNTRY_CODE: ❌
    HTTP_CF_IPCOUNTRY: ❌
    HTTP_X_COUNTRY_CODE: ❌
    HTTP_X_REAL_IP: 158.181.76.142
    HTTP_X_FORWARDED_FOR: ❌
    REMOTE_ADDR: 158.181.76.142
    Real external IP: 158.181.76.142
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ❌The MaxMind GeoIP database is required.
    
    ### PBC Settings ###
    
    Version: 2.0.17
    Base location: CH:SZ
    Base currency: USD
    Price Based On: billing
    Shipping: –
    Test mode: –
    Test country: –
    Load products price in background: –
    Prices entered with tax: –
    Calculate tax based on: shipping
    Display prices in the shop: excl
    
    ### Zone Pricing Schweiz ###
    
    zone_id: schweiz
    name: Schweiz
    countries: CH
    currency: CHF
    exchange_rate: 1
    auto_exchange_rate: no
    disable_tax_adjustment: no
    
    ### Zone Pricing EU ###
    
    zone_id: eu
    name: EU
    countries: AX | AD | AT | BE | CY | EE | FI | FR | GF | TF | DE | GR | GP | IE | IT | LV | LT | LU | MT | MQ | YT | MC | ME | NL | PT | RE | BL | MF | PM | SM | SK | SI | ES | VA
    currency: EUR
    exchange_rate: 1
    auto_exchange_rate: no
    disable_tax_adjustment: no
    
    ### Zone Pricing China ###
    
    zone_id: china
    name: China
    countries: CN | HK
    currency: CNY
    exchange_rate: 6.5
    auto_exchange_rate: no
    disable_tax_adjustment: no
    
    ### Action Scheduler ###
    
    Complete: 133
    Oldest: 2021-02-22 15:50:07 +0000
    Newest: 2021-03-24 09:58:44 +0000
    
    ### Status report information ###
    
    Generated at: 2021-03-24 10:02:03 +00:00
    
    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Thank you for sending over the Status Report and the Logs, along with the additional information about your setup.

    Now we get an error message on Alipay
    “The data of this order cannot be recognized, please contact the seller”.
    I don’t know if this new issue is Woo territory or if we have missed something here on the Stripe side.

    Based on that message in Alipay, it sounds like they are receiving data from the site in an unexpected format. I understand you are using the Price Based on Country plugin to set countrt-specific pricing, along with WPML — just to rule out any conflict with code that might be filtering/changing the values sent over to Alipay, please test to see if you see the same thing with only WooCommerce and Stripe active (I see you are already using the Twenty Twenty-one theme).

    Thread Starter Dennis Heiden

    (@dennisheiden)

    Thanks, deactivated all Plugins except Woo + Stripe and deleted all old logs.
    Shop currency changed to CNY. Stripe API Test was ok.

    Going to do a live test during the day.

    Thread Starter Dennis Heiden

    (@dennisheiden)

    Update: Payment failed with same error:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://xxx
    Site address (URL): https://xxx
    WC Version: 5.1.0
    REST API Version: ✔ 5.1.0
    WC Blocks Version: ✔ 4.4.3
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 2.0.2
    Log Directory Writable: ✔
    WP Version: 5.7
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: zh_CN
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.16
    PHP Post Max Size: 128 MB
    PHP Time Limit: 0
    PHP Max Input Vars: 20000
    cURL Version: 7.29.0
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.28-MariaDB
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.1.0
    WC Database Prefix: xiK4D4t_
    Total Database Size: 89.98MB
    Database Data Size: 82.39MB
    Database Index Size: 7.59MB
    xiK4D4t_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_order_itemmeta: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
    xiK4D4t_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB
    xiK4D4t_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_akeeba_common: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_params: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_ak_storage: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_ak_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_all_in_one_redirection: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    xiK4D4t_icl_content_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_core_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_languages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_languages_translations: Data: 0.20MB + Index: 0.13MB + Engine InnoDB
    xiK4D4t_icl_locale_map: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_message_status: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_mo_files_domains: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_node: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_reminders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_strings: Data: 2.52MB + Index: 4.22MB + Engine InnoDB
    xiK4D4t_icl_string_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_string_packages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_string_pages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_string_positions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_string_status: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_string_translations: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_icl_string_urls: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_translate: Data: 6.52MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_icl_translate_job: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_icl_translations: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_icl_translation_batches: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_icl_translation_status: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_options: Data: 2.25MB + Index: 0.14MB + Engine InnoDB
    xiK4D4t_postmeta: Data: 1.52MB + Index: 0.63MB + Engine InnoDB
    xiK4D4t_posts: Data: 65.52MB + Index: 0.31MB + Engine InnoDB
    xiK4D4t_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_usermeta: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    xiK4D4t_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    xiK4D4t_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    xiK4D4t_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_yoast_indexable: Data: 0.13MB + Index: 0.08MB + Engine InnoDB
    xiK4D4t_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    xiK4D4t_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    xiK4D4t_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_yoast_seo_links: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    xiK4D4t_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 205
    custom_css: 1
    nav_menu_item: 2
    oembed_cache: 3
    page: 28
    post: 3
    product: 5
    revision: 760
    shop_order: 129
    sv_forms_submit: 40
    wp_block: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (2) ###
    
    WooCommerce Stripe Gateway: by WooCommerce – 5.0.0
    WooCommerce: by Automattic – 5.1.0
    
    ### Inactive Plugins (24) ###
    
    Better Search Replace: by Delicious Brains – 1.3.4
    Block Editor For WooCommerce: by PixelHive – 1.0.1
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.5
    Duplicate Page: by mndpsingh287 – 4.3
    Gutenberg: by Gutenberg Team – 10.1.0
    Gutenslider — The last WordPress slider you will ever need.: by eedee – 4.5.0
    Imagify: by WP Media – 1.9.14
    Loco Translate: by Tim Whitlock – 2.5.1
    Multi-Step Checkout for WooCommerce (Pro): by ThemeHigh – 2.0.0
    SV100 Companion: by straightvisions GmbH – 1.4.17
    SV Columns Manager: by straightvisions GmbH – 1.4.01
    SV Forms: by straightvisions GmbH – 1.4.19
    SVG Support: by Benbodhi – 2.3.18
    SV Tracking Manager: by straightvisions GmbH – 1.4.07
    WooCommerce - Country Based Payments: by Ivan Paulin – 1.4
    WooCommerce Multilingual: by OnTheGoSystems – 4.11.3
    WooCommerce Price Based on Country (Basic): by Oscar Gare – 2.0.17
    WPML Media: by OnTheGoSystems – 2.6.3
    WPML Multilingual CMS: by OnTheGoSystems – 4.4.9
    WPML String Translation: by OnTheGoSystems – 3.1.7
    WPML Translation Management: by OnTheGoSystems – 2.10.5
    WP Rocket: by WP Media – 3.8.6
    Yoast SEO: by Team Yoast – 16.0
    Yoast SEO Multilingual: by OnTheGoSystems – 1.3.0
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    ### Must Use Plugins (1) ###
    
    akeeba-backup-coreupdate.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CNY (¥)
    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 ###
    
    Shop base: #986 - /shop/
    Cart: #987 - /cart/
    Checkout: #988 - /checkout/
    My account: #989 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Twenty Twenty-One
    Version: 1.2
    Author URL: https://wordpress.org/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 141
    Oldest: 2021-02-24 15:16:24 +0000
    Newest: 2021-03-26 07:07:20 +0000
    
    ### Status report information ###
    
    Generated at: 2021-03-26 08:57:41 +00:00
    
    2021-03-26T06:55:24+00:00 DEBUG 
    ====Stripe Version: 5.0.0====
    ====Start Log====
    Info: Begin creating Alipay source
    ====End Log====
    
    2021-03-26T06:55:24+00:00 DEBUG 
    ====Stripe Version: 5.0.0====
    ====Start Log====
    sources request: Array
    (
        [amount] => 98000
        [currency] => cny
        [type] => alipay
        [owner] => stdClass Object
            (
                [phone] => 69181619
                [name] => xxx
                [email] => xxx
                [address] => Array
                    (
                        [line1] => 20/F, Leighton Centre, 77 Leighton Road
                        [line2] => 123
                        [state] => HONG KONG
                        [city] => Causeway Bay
                        [postal_code] => 
                        [country] => HK
                    )
    
            )
    
        [redirect] => Array
            (
                [return_url] => https://xxx/checkout/order-received/1435/?key=wc_order_zYWM4DJ4n3PcL&utm_nooverride=1&order_id=1435
            )
    
    )
    
    ====End Log====
    
    2021-03-26T06:55:25+00:00 DEBUG 
    ====Stripe Version: 5.0.0====
    ====Start Log====
    Info: Redirecting to Alipay...
    ====End Log====
    • This reply was modified 3 years, 6 months ago by Dennis Heiden.
    Thread Starter Dennis Heiden

    (@dennisheiden)

    Addendum:

    The following error is logged in Stripe Api:

    {
      "error": {
        "code": "resource_missing",
        "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
        "message": "No such customer: 'cus_J7uPDqU5Jpiya6'",
        "param": "customer",
        "type": "invalid_request_error"
      }
    }
    Plugin Support Tseten a11n

    (@tibetanitech)

    Hi @dennisheiden

    Thank you for the logs. Typically we see the error show up when a customer has ordered when the site was using stripe in test mode and then switched to be in live mode.

    You will need to remove the customer profiles on your WooCommerce site. If it’s only your account that used the testing cards and saved to your profile, then you can do this from the frontend of your site on your “My Account” page. Just remove the saved card there, and you should no longer see the issues.

    Let us know if you run into any other trouble!

    Thread Starter Dennis Heiden

    (@dennisheiden)

    Yeah I think that was the issue. Didn’t read the notice in the backend which was already pointing to this problem.

    We were able to complete the order in a live test with everything set up to CNY and Stripe to USD.

    I think we are done here, thanks for the support!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Stripe – Alipay – cannot process payment’ is closed to new replies.