• thomasdm

    (@thomasdm)


    Hello,

    I’ve a problem with the plugin. When I want to test the payment with Klarna, I’ve receive the message :

    Missing required param: billing_details[email].

    When I check the form data send in wc-ajax, I didn’t see the field billing email.
    How is it possible to add this field in wc-ajax ? Or maybe do you have another solution ?

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

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

    (@mrclayton)

    Hi @thomasdm

    How is it possible to add this field in wc-ajax?

    WooCommerce already includes all of the address fields in the payment request. If you are using a customized checkout page, make sure you have an input field with name="billing_email" so that WooCommerce will associate it with the order.

    If you’re not using a custom checkout page, then make sure you don’t have any plugins or custom code that is removing the billing_email field. Klarna requires an email address.

    I see you’re using another Stripe plugin as well, which isn’t necessary.

    Kind Regards

    Thread Starter thomasdm

    (@thomasdm)

    Oh ok, I use a tuto for install your plugin and I’m sure to read is it necessary to add another plugin. Thank a lot for this information so ??

    I modified the website but I’ve another problem “Klarna isn’t available for this command”.
    I’m not sure to understand why this command is not available with Klarna. What’s the gestion rules for use Klarna ?

    Also, I’ve already activate Klarna on Stripe Account

    This is the event in Stripe

    {
      "id": "pi_3ObxcPLEWWRMZb6R0UTlli92",
      "object": "payment_intent",
      "last_payment_error": {
        "code": "payment_method_provider_decline",
        "doc_url": "https://stripe.com/docs/error-codes/payment-method-provider-decline",
        "message": "Customer was declined by Klarna",
        "payment_method": {
          "id": "pm_1ObxcQLEWWRMZb6RDZyMjJv5",
          "object": "payment_method",
          "billing_details": {
            "address": {
              "city": "XXX",
              "country": "FR",
              "line1": "234 XXX",
              "line2": null,
              "postal_code": "92000",
              "state": null
            },
            "email": "[email protected]",
            "name": "Thomas Dufossé-Michelangeli",
            "phone": "+33666666666"
          },
          "created": 1706068758,
          "customer": null,
          "klarna": {
          },
          "livemode": false,
          "metadata": {
          },
          "type": "klarna"
        },
        "type": "invalid_request_error"
      },
      "livemode": false,
      "next_action": null,
      "status": "requires_payment_method",
      "amount": 450000,
      "amount_capturable": 0,
      "amount_details": {
        "tip": {
        }
      },
      "amount_received": 0,
      "application": "ca_Gp4vLOJiqHJLZGxakHW7JdbBlcgWK8Up",
      "application_fee_amount": null,
      "automatic_payment_methods": null,
      "canceled_at": null,
      "cancellation_reason": null,
      "capture_method": "automatic",
      "client_secret": "pi_3ObxcPLEWWRMZb6R0UTlli92_secret_fE5gVPQ8gRmV250LOXbP4ISBp",
      "confirmation_method": "automatic",
      "created": 1706068757,
      "currency": "eur",
      "customer": "cus_PQSWzz9BIuQfgg",
      "description": "Order 224588 from Follow Your Dreams By C.",
      "invoice": null,
      "latest_charge": null,
      "metadata": {
        "created": "1706068757",
        "gateway_id": "stripe_klarna",
        "ip_address": "223.204.98.153",
        "order_id": "224588",
        "partner": "PaymentPlugins",
        "product_224451": "? Follow your Dreams… ? toi aussi ? : Un voyage personnalisé en plus x 1",
        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
        "user_id": "3",
        "webhook_id": "we_1ObbbJLEWWRMZb6RkvHhlqVn"
      },
      "on_behalf_of": null,
      "payment_method": null,
      "payment_method_configuration_details": null,
      "payment_method_options": {
        "klarna": {
          "preferred_locale": "fr-FR"
        }
      },
      "payment_method_types": [
        "klarna"
      ],
      "processing": null,
      "receipt_email": null,
      "review": null,
      "setup_future_usage": null,
      "shipping": null,
      "source": null,
      "statement_descriptor": null,
      "statement_descriptor_suffix": null,
      "transfer_data": null,
      "transfer_group": null
    }
    • This reply was modified 10 months ago by thomasdm.
    • This reply was modified 10 months ago by thomasdm.
    • This reply was modified 10 months ago by thomasdm.
    • This reply was modified 10 months ago by thomasdm.
    Thread Starter thomasdm

    (@thomasdm)

    Another question.
    My shop is in CHF paiement (Switzerland).
    I see the CHF is ok pour Klarna but when I activate this currency, the Klarna payment option disappear in the checkout page.
    Maybe I don’t understand something ?

    Ok I found a solution. Klarna analyse the country origin in the profil WordPress. So, it’s impossible to paid in CHF because I’m FR in my account.
    It’s necessary to install a plugin for change the currency product

    • This reply was modified 10 months ago by thomasdm.
    Plugin Author Payment Plugins

    (@mrclayton)

    Ok I found a solution. Klarna analyse the country origin in the profil WordPress.

    That’s very close. The plugin checks the Stripe account’s country of registration and compares that to conditions like the store currency and the customer’s billing country.

    I’m not sure to understand why this command is not available with Klarna. What’s the gestion rules for use Klarna ?

    I am not sure I understand your question.

    Kind Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing required param: billing_details[email].’ is closed to new replies.