• Resolved Mizuho Ogino

    (@fishpie)


    After activating KONBINI payment on Stripe, I also activated this plugin, and when I actually tried to make a payment, I got the following message. Do you know why and how to solve this problem?

    “Invalid string: 8nnnnnnnn2…8nnnnnnnn6; must be at most 11 characters” (The “n” is actually a number.)

    ==============

    Woocommerce 8.3.1
    Payment Plugins for Stripe WooCommerce 3.3.54
    (Tested at Storefront theme)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @fishpie,

    Please navigate to stripe.com > logs > developers and see if there is a log entry for that error message. If there is, please share the log entry so we can review.

    Kind Regards

    Thread Starter Mizuho Ogino

    (@fishpie)

    Yes, there is a log. I will blindfold with xxx / 000 where it might fall under personal information. If it’s difficult to determine, please provide me with your contact information so I can send you the original text.

    invalid_request_error - payment_method_options[konbini][confirmation_number]
    
    Invalid string: 0000000000...0000000000; must be at most 11 characters
    
    {
      "shipping": {
        "address": {
          "line2": "xxxxxxx",
          "line1": "xxxxxxx",
          "state": "JP00",
          "city": "xxxxxxx",
          "postal_code": "000-0000",
          "country": "JP"
        },
        "name": "xxxxx xxxxx"
      },
      "capture_method": "automatic",
      "description": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "metadata": {
        "gateway_id": "stripe_konbini",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0",
        "webhook_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "product_23331": "xxxxxxxxxxxxxxxxxxxxx",
        "partner": "PaymentPlugins",
        "user_id": "3",
        "created": "1703477391",
        "order_id": "24096",
        "ip_address": "000.000.000.000"
      },
      "confirmation_method": "automatic",
      "payment_method_types": {
        "0": "konbini"
      },
      "currency": "JPY",
      "customer": "cus_xxxxxxxxxxxx",
      "payment_method_options": {
        "konbini": {
          "confirmation_number": "000000000000",
          "expires_after_days": "7",
          "product_description": "Order 24096"
        }
      },
      "confirm": "false",
      "amount": "1270",
      "expand": {
        "0": "payment_method"
      }
    }

    And the response body is below.

    {
      "error": {
        "message": "Invalid string: 0000000000...0000000000; must be at most 11 characters",
        "param": "payment_method_options[konbini][confirmation_number]",
        "request_log_url": "https://dashboard.stripe.com/acct_xxxxxxxxxxxxxxxx/logs/req_xxxxxxxxxxxxx?t=1703477392",
        "type": "invalid_request_error"
      }
    }

    The confirmation_number is a registered 12-digit number. Hope this gives you a clue.
    Thank you.

    • This reply was modified 11 months, 1 week ago by Mizuho Ogino.
    • This reply was modified 11 months, 1 week ago by Mizuho Ogino.
    • This reply was modified 11 months, 1 week ago by Mizuho Ogino.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @fishpie,

    Thank you for your patience during the holidays. You can create a support ticket here.

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @fishpie

    Here is some info that may be helpful: the plugin uses the customer’s billing phone number as the confirmation number. It looks like you entered an invalid phone number on your checkout page and that is what’s causing the validation error.

    Kind Regards

    Thread Starter Mizuho Ogino

    (@fishpie)

    Thanks a lot !!!
    As you indicated, the format of the phone number was the cause of the error message.

    With the error message returned by Stripe, the user would not know how to correct it. (Besides, the message is not in Japanese.) Also, once submitted to Stripe, a failed order is created. For these reasons, we would like to validate the phone number on the woocommerce side before submitting.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on KONBINI payment’ is closed to new replies.