• Resolved fuchan3000

    (@fuchan3000)


    Hi,

    Price data of JPY with a product set in WooCommerce are sent to Stripe Connect as the wrong prices, hundredfold price of original one, and all the processing fail on Stripe. This is a much critical issue in Japan. Do you have any solution for that?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hi @fuchan3000

    Thanks for reaching out!

    I understand that wrong product prices are being sent to Stripe Connect which also causes failed transactions in Stripe, correct?

    To better picture what you are referring to here, can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively? Please redact any sensitive information prior to sharing it here

    If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Meanwhile, for us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce and Stripe plugins are enabled, create a test order using Stripe Test Mode and see if the prices are correct and the transaction is successful?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know how it goes!

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @xue28

    Thanks for your support. Please see the below link for the log on the Stripe test mode.

    https://snipboard.io/wgFoUR.jpg

    Although the amount is 1022700, the correct value is 10227: this product’s price is 15000 including 10% tax, stripe fee, and 25% commission. Stripe gets wrong request, hundredfold price, from WooCommerce. I believe that the trigger setting of sending the data as hundredfold price of the original price.

    Please check this bug on your side and let me know the result of your investigation asap, and I’ll check the 3rd-party theme and plugin, HivePress, on my side as well.

    Thanks,

    Hi,

    Although the amount is 1022700, the correct value is 10227

    I understand what you are saying.

    It would be great if you share your System Status Report, found under WooCommerce > Status on your site. That will help to investigate further.

    I recommend enabling the Stripe debug mode, it is under WooCommerce > Settings > Payments > stripe > settings > advanced settings > Log error messages. Enable the debug mode, and save the settings.

    Once enabled, please try to reproduce the issue again (Making a test order), if the issue happens again go to WooCommerce > System Status > Logs, check if there are errors being generated and let us know.

    Cheers.

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @ihereira

    Here is System Status Report.

    WordPress Environment
    
    WordPress address (URL): https://siritai.shop
    Site address (URL): https://siritai.shop
    WC Version: 7.6.0
    REST API Version: ?</img> 7.6.0
    WC Blocks Version: ?</img> 9.8.4
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: ja
    External object cache: –
    
    Server Environment
    
    Server Info: Apache
    PHP Version: 8.1.17
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.84.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.27-log
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img>
    Remote Get: ?</img>
    
    Database
    
    WC Database Version: 7.6.0
    WC Database Prefix: wp_
    データベースの合計サイズ: 6.81MB
    データベースのデータサイズ: 4.56MB
    データベースのインデックスサイズ: 2.25MB
    wp_woocommerce_sessions: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_api_keys: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_attribute_taxonomies: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_downloadable_product_permissions: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_woocommerce_order_items: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_order_itemmeta: データ :0.05MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_tax_rates: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_woocommerce_tax_rate_locations: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_shipping_zones: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_woocommerce_shipping_zone_locations: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_shipping_zone_methods: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_woocommerce_payment_tokens: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_woocommerce_payment_tokenmeta: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_woocommerce_log: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_actions: データ :0.09MB + インデックス :0.11MB + エンジン InnoDB
    wp_actionscheduler_claims: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_groups: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_actionscheduler_logs: データ :0.08MB + インデックス :0.03MB + エンジン InnoDB
    wp_commentmeta: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_comments: データ :0.02MB + インデックス :0.09MB + エンジン InnoDB
    wp_links: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_options: データ :2.02MB + インデックス :0.11MB + エンジン InnoDB
    wp_postmeta: データ :0.48MB + インデックス :0.33MB + エンジン InnoDB
    wp_posts: データ :0.39MB + インデックス :0.06MB + エンジン InnoDB
    wp_snippets: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_termmeta: データ :0.08MB + インデックス :0.13MB + エンジン InnoDB
    wp_terms: データ :0.14MB + インデックス :0.19MB + エンジン InnoDB
    wp_term_relationships: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_term_taxonomy: データ :0.11MB + インデックス :0.14MB + エンジン InnoDB
    wp_usermeta: データ :0.08MB + インデックス :0.06MB + エンジン InnoDB
    wp_users: データ :0.02MB + インデックス :0.05MB + エンジン InnoDB
    wp_wc_admin_notes: データ :0.06MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_admin_note_actions: データ :0.05MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_category_lookup: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_customer_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_download_log: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_order_coupon_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_order_product_lookup: データ :0.02MB + インデックス :0.06MB + エンジン InnoDB
    wp_wc_order_stats: データ :0.02MB + インデックス :0.05MB + エンジン InnoDB
    wp_wc_order_tax_lookup: データ :0.02MB + インデックス :0.03MB + エンジン InnoDB
    wp_wc_product_attributes_lookup: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_product_download_directories: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_product_meta_lookup: データ :0.02MB + インデックス :0.09MB + エンジン InnoDB
    wp_wc_rate_limits: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_reserved_stock: データ :0.02MB + インデックス :0.00MB + エンジン InnoDB
    wp_wc_tax_rate_classes: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_wc_webhooks: データ :0.02MB + インデックス :0.02MB + エンジン InnoDB
    wp_yaysmtp_email_logs: データ :0.23MB + インデックス :0.00MB + エンジン InnoDB
    
    Post Type Counts
    
    attachment: 56
    custom_css: 1
    customize_changeset: 19
    hp_email: 2
    hp_listing: 29
    hp_listing_attribute: 16
    hp_listing_package: 1
    hp_membership_plan: 1
    hp_payout: 4
    hp_request: 9
    hp_request_attribute: 7
    hp_vendor: 2
    hp_vendor_attribute: 19
    nav_menu_item: 21
    page: 19
    post: 8
    product: 20
    revision: 92
    shop_coupon: 1
    shop_order: 30
    wp_navigation: 1
    
    Security
    
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    
    Active Plugins (24)
    
    ConoHa WING 自動キャッシュクリア: 投稿者: GMO Internet Group
    Inc. – 1.0.0
    
    Code Snippets: 投稿者: Code Snippets プロ版 – 3.3.0
    ConoHa WING コントロールパネルプラグイン: 投稿者: GMO Internet Group
    Inc. – 1.2
    
    HivePress Favorites: 投稿者: HivePress – 1.2.2
    HivePress Import: 投稿者: HivePress – 1.1.1
    HivePress Marketplace: 投稿者: HivePress – 1.3.8
    HivePress Memberships: 投稿者: HivePress – 1.1.4
    HivePress Messages: 投稿者: HivePress – 1.3.0
    HivePress Paid Listings: 投稿者: HivePress – 1.1.7
    HivePress Requests: 投稿者: HivePress – 1.2.2
    HivePress Reviews: 投稿者: HivePress – 1.3.0
    HivePress Search Alerts: 投稿者: HivePress – 1.1.2
    HivePress SEO: 投稿者: HivePress – 1.0.0
    HivePress Social Links: 投稿者: HivePress – 1.0.3
    HivePress Social Login: 投稿者: HivePress – 1.0.1
    HivePress Statistics: 投稿者: HivePress – 1.0.3
    HivePress Tags: 投稿者: HivePress – 1.0.3
    HivePress: 投稿者: HivePress – 1.7.0
    Loco Translate: 投稿者: Tim Whitlock – 2.6.4
    One Click Demo Import: 投稿者: OCDI – 3.1.2
    Japanized for WooCommerce: 投稿者: 職人工房 – 2.5.6
    WooCommerce Stripe ゲートウェイ: 投稿者: WooCommerce – 7.3.0
    WooCommerce: 投稿者: Automattic – 7.6.0
    YaySMTP - Simple WP SMTP Mail: 投稿者: YayCommerce – 2.4.2
    
    Inactive Plugins (6)
    
    Akismet Anti-Spam: 投稿者: Automattic – 5.1
    HivePress Bookings: 投稿者: HivePress – 1.4.12
    HivePress Claim Listings: 投稿者: HivePress – 1.1.3
    HivePress Opening Hours: 投稿者: HivePress – 1.1.3
    SiteGuard WP Plugin: 投稿者: JP-Secure – 1.7.5
    TypeSquare Webfonts for ConoHa: 投稿者: GMO Internet Group
    Inc. – 2.0.4
    
    Settings
    
    API Enabled: –
    Force SSL: –
    Currency: JPY (¥)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    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: –
    Enforce Approved Product Download Directories: ?</img>
    Order datastore: WC_Order_Data_Store_CPT
    
    WC Pages
    
    ショップベース: #185 - /shop/
    お買い物カゴ: #186 - /cart/
    購入手続き: #187 - /checkout/
    マイアカウント: #188 - /my-account/
    利用規約: #2 - /terms/
    
    Theme
    
    Name: ListingHive
    Version: 1.2.7
    Author URL: https://hivepress.io
    Child Theme: ?</img> – WooCommerce に準拠しているテーマや親テーマを修正するのではなく、子テーマを作ることをおすすめします。子テーマの作り方はこちらをご覧ください。
    WooCommerce Support: ?</img>
    
    Templates
    
    Archive Template: テーマに woocommerce.php ファイルが存在しています。woocommerce.php は archive-product.php よりも優先されるため、woocommerce/archive-product.php のカスタムテンプレートを上書きすることはできません。
    Overrides: –
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: block-editor-feature-enabled
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    
    Daily Cron: ?</img> Next scheduled: 2023-04-27 06:23:19 +09:00
    Options: ?</img>
    Notes: 61
    Onboarding: completed
    
    Action Scheduler
    
    完了: 319
    Oldest: 2023-04-15 12:01:06 +0900
    Newest: 2023-04-26 21:57:16 +0900
    
    失敗: 5
    Oldest: 2023-04-15 12:03:45 +0900
    Newest: 2023-04-16 10:51:34 +0900
    
    承認待ち: 10
    Oldest: 2023-04-26 21:58:44 +0900
    Newest: 2023-04-29 12:01:54 +0900
    
    Status report information
    
    Generated at: 2023-04-26 21:59:02 +09:00
    `

    I’ve enabled the Stripe debug mode, purchased the product, and reproduced the issue again. Would be appreciated that you further investigate this issue on your side.

    Please let me know if I need to provide more details to you.

    Thanks,

    Hi,

    Thanks for your message.

    I’ve enabled the Stripe debug mode, purchased the product, and reproduced the issue again

    Thanks for following up, please share a copy of any fatal error log found under WooCommerce > System Status > Logs. Can you see any error log related to Stripe over there? What is the error message received, if any?

    Also, you can navigate to WooCommerce > settings > general and change the number of decimals to 2, and save. Does the issue persist after that?

    Let us know what you find.

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @ihereira

    Here is fatal error log.

    2023-04-25T07:35:57+00:00 CRITICAL Uncaught Stripe\Exception\InvalidArgumentException: api_key cannot be the empty string in /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php:264
    Stack trace: 0 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php(59): Stripe\BaseStripeClient->validateConfig() 1 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/components/class-payout.php(93): Stripe\BaseStripeClient->__construct() 2 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/controllers/class-payout.php(297): HivePress\Components\Payout->stripe() 3 [internal function]: HivePress\Controllers\Payout->redirect_vendor_stripe_page() 4 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress/includes/components/class-router.php(642): call_user_func() 5 /home/c1637951/public_html/siritai.shop/wp-includes/class-wp-hook.php(308): HivePress\Components\Router->set_page_template() 6 /home/c1637951/public_html/siritai.shop/wp-includes/plugin.php(205): WP_Hook->apply_filters() 7 /home/c1637951/public_html/siritai.shop/wp-includes/template-loader.php(104): apply_filters() 8 /home/c1637951/public_html/siritai.shop/wp-blog-header.php(19): require_once('/home/c1637951/…') 9 /home/c1637951/public_html/siritai.shop/index.php(17): require('/home/c1637951/…') 10 {main} thrown: /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php の行264 2023-04-25T07:45:36+00:00 CRITICAL Uncaught Stripe\Exception\InvalidArgumentException: api_key cannot be the empty string in /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php:264
    Stack trace: 0 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php(59): Stripe\BaseStripeClient->validateConfig() 1 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/components/class-payout.php(93): Stripe\BaseStripeClient->__construct() 2 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/controllers/class-payout.php(297): HivePress\Components\Payout->stripe() 3 [internal function]: HivePress\Controllers\Payout->redirect_vendor_stripe_page() 4 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress/includes/components/class-router.php(642): call_user_func() 5 /home/c1637951/public_html/siritai.shop/wp-includes/class-wp-hook.php(308): HivePress\Components\Router->set_page_template() 6 /home/c1637951/public_html/siritai.shop/wp-includes/plugin.php(205): WP_Hook->apply_filters() 7 /home/c1637951/public_html/siritai.shop/wp-includes/template-loader.php(104): apply_filters() 8 /home/c1637951/public_html/siritai.shop/wp-blog-header.php(19): require_once('/home/c1637951/…') 9 /home/c1637951/public_html/siritai.shop/index.php(17): require('/home/c1637951/…') 10 {main} thrown: /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php の行264 2023-04-25T07:46:41+00:00 CRITICAL Uncaught Stripe\Exception\InvalidArgumentException: api_key cannot be the empty string in /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php:264
    Stack trace: 0 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php(59): Stripe\BaseStripeClient->validateConfig() 1 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/components/class-payout.php(93): Stripe\BaseStripeClient->__construct() 2 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/controllers/class-payout.php(297): HivePress\Components\Payout->stripe() 3 [internal function]: HivePress\Controllers\Payout->redirect_vendor_stripe_page() 4 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress/includes/components/class-router.php(642): call_user_func() 5 /home/c1637951/public_html/siritai.shop/wp-includes/class-wp-hook.php(308): HivePress\Components\Router->set_page_template() 6 /home/c1637951/public_html/siritai.shop/wp-includes/plugin.php(205): WP_Hook->apply_filters() 7 /home/c1637951/public_html/siritai.shop/wp-includes/template-loader.php(104): apply_filters() 8 /home/c1637951/public_html/siritai.shop/wp-blog-header.php(19): require_once('/home/c1637951/…') 9 /home/c1637951/public_html/siritai.shop/index.php(17): require('/home/c1637951/…') 10 {main} thrown: /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php の行264 2023-04-25T08:05:30+00:00 CRITICAL Uncaught Stripe\Exception\InvalidArgumentException: api_key cannot be the empty string in /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php:264
    Stack trace: 0 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php(59): Stripe\BaseStripeClient->validateConfig() 1 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/components/class-payout.php(93): Stripe\BaseStripeClient->__construct() 2 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/includes/controllers/class-payout.php(297): HivePress\Components\Payout->stripe() 3 [internal function]: HivePress\Controllers\Payout->redirect_vendor_stripe_page() 4 /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress/includes/components/class-router.php(642): call_user_func() 5 /home/c1637951/public_html/siritai.shop/wp-includes/class-wp-hook.php(308): HivePress\Components\Router->set_page_template() 6 /home/c1637951/public_html/siritai.shop/wp-includes/plugin.php(205): WP_Hook->apply_filters() 7 /home/c1637951/public_html/siritai.shop/wp-includes/template-loader.php(104): apply_filters() 8 /home/c1637951/public_html/siritai.shop/wp-blog-header.php(19): require_once('/home/c1637951/…') 9 /home/c1637951/public_html/siritai.shop/index.php(17): require('/home/c1637951/…') 10 {main} thrown: /home/c1637951/public_html/siritai.shop/wp-content/plugins/hivepress-marketplace/vendor/stripe/stripe-php/lib/BaseStripeClient.php の行264

    As I’m not familiar with coding, I’m not exactly sure the contents of the logs, but it seems that there are some logs related to Stripe. It would be appreciated that you check it and investigate the issue on your side.

    On the other hand, although I changed the number of decimal to 2, the same error has occurs and get the error email as follows.

    “Payout for order #492?https://siritai.shop/wp-admin/post.php?action=edit&post=492?couldn’t be processed for the following reason: Transfers using this transaction as a source must not exceed the source amount of ¥15,000.”

    Also, the prices of all the available products in the marketplace displays ¥xx.00, and this is not for Japan.

    Thanks,

    Saif

    (@babylon1999)

    Hello @fuchan3000,

    The mentioned error is coming from this HivePress Marketplace plugin which seems to have another Stripe integration. You get in touch with the plugin author for further assistance or disable it altogether.

    As for the Stipe issue, I was able to reproduce what you’re describing when switching the decimal point to 0 only.

    May I ask if you clear the cache after switching the decimal point value?

    Look forward to hearing back from you.

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @babylon1999

    Thanks for your support. OK, I’ll get in touch with HivePress author. BTW, how should I do clear the cache on the wordpress, or you mean clearing the cache for the browser, Chrome I’m using?

    Saif

    (@babylon1999)

    BTW, how should I do clear the cache on the wordpress

    I meant the server cache, it depends on the caching plugin you’re using (if you’re using one). ??

    If not, you can also ask your host to disable any server-side caching solution from their end.

    Let us know how it goes!

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @babylon1999

    I’ve cleared the server cache, and the error still occurs after changing decimal number to 2. I checked the Stripe test logs, and Stripe gets the price amount “1022727” against expected amount value is “10227”.

    Here is the Stripe test log.

    POST /v1/transfers
    status
    400 ERR
    identification
    req_FNlP5MwniOssDI
    Times of Day
    2023/04/27 04:54:46 invalid_request_error - source_transaction
    Transfers using this transaction as a source must not exceed the source amount of ¥15,000. Was this information helpful? yes no
    {
    "destination" : "acct_1N0j8kHK2K1bSnmw" ,
    "description" : "Order from #493" ,
    "source_transaction" : "ch_3N1EOvH3SLBFDuIR1TgLKhB1" ,
    "amount" : "1022727" ,
    "currency" : "JPY"
    }
    response body
    {
    "error" : {
    "message" : "Transfers using this transaction as a source must not exceed the source amount of ¥15,000." ,
    "param" : "source_transaction" ,
    "request_log_url" : "https://dashboard.stripe.com/test/logs/req_FNlP5MwniOssDI?t=1682538886" ,
    "type" : "invalid_request_error"
    }
    }
    POST body request
    {
    "destination" : "acct_1N0j8kHK2K1bSnmw" ,
    "description" : "Order from #493" ,
    "source_transaction" : "ch_3N1EOvH3SLBFDuIR1TgLKhB1" ,
    "amount" : "1022727" ,
    "currency" : "JPY"
    }

    Thanks,

    Hi,

    Thanks for sending the error log.

    I understand you are using a source_transaction that ended up receiving the error we are discussing, invalid_request_error - source_transaction<br>Transfers using this transaction as a source must not exceed the source amount of ¥15,000..

    Price data of JPY with a product set in WooCommerce are sent to Stripe Connect as the wrong prices, hundredfold price of original one, and all the processing fail on Stripe

    Going back to this sentence, can you provide more information? How are your customers paying for product and services? Directly at checkout? Or are you managing the payment via API? I mean, what are the steps made on your site in order to reproduce the error. Please let us know.

    Cheers.

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @ihereira

    Payment method on the website is just only Credit cards provided by Stripe, and all the payout processing, including payouts to servicers, are completely automated by Stripe Connect via Stripe API. Steps for payment flow is as follows;

    1. Order the product (purchasers pay to platform)
    2. Servicers provide their products to purchasers
    3. Purchasers complete orders (Platform pays to servicers)

    Example) Case of purchasing ¥15,000 product

    As for the 1st step above, a purchaser pays “¥15,000” including 10% tax “¥1,364” to the platform. As for the 3rd step, the platform earns 25% commission fee “¥3,409”, and the platform pays the rest of the revenue “¥10,227”, (15,000-1,364)*75%, to the servicer after the purchaser clicks the button “Complete Order”.

    The current error has occurred on the above flow. Does this meet your question? Please let me know if you have any further questions.

    Thanks,

    • This reply was modified 1 year, 10 months ago by fuchan3000.

    Hi,

    Thanks for providing additional details, I am unable to reproduce the issue on my end.

    To take a closer look, please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Important: Please include a link to this forum thread.

    Thank you!

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @ihereira

    I’ve just raised the ticket with the link of this thread to the support form.

    Thanks,

    Thread Starter fuchan3000

    (@fuchan3000)

    Hi @babylon1999 @ihereira

    Having investigation on my side for the issue of the zero-decimal currencies (such as the yen), where customers are incorrectly charged, the HivePress marketplace plugin I’m using sends the price data to Stripe via WooCommerce Stripe Payment Gateway, and the issue isn’t related to HivePress plugins.

    I strongly believe that the cause is that when processing in Japanese Yen on the stripe side, it seems that the decimal point is processed as an integer instead of a decimal point. Therefore, when using it in Japanese yen, it is necessary to delete the 100 times part and use it.

    Could you modify the WooCommerce or WooCommerce Stripe Gateway plugins to adjust for testing? If the test works, I believe that this issue will be fixed.

    The following is the example for another plugin, but it would be good reference to modify plugins for you guys, just in case.

    For Stripe Modify the following file
    /wp-content/plugins/event-organiser-stripe/ class – eo – stripe – payment – gateway . php

    before:
    $total = intval( eo_get_booking_meta( $booking_id, ‘booking_amount’ ) * 100 );

    after:
    $total = intval( eo_get_booking_meta( $booking_id, ‘booking_amount’ ) );

    Thanks,

    • This reply was modified 1 year, 10 months ago by fuchan3000.
    • This reply was modified 1 year, 10 months ago by fuchan3000.
Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘JPY price data is sent to Stripe Connect as hundredfold price’ is closed to new replies.