• Resolved ayathy

    (@ayathy)


    Hi there Im having a problem with polish local gateway “przelewy24” it either gives me an error to create return_url or that the payment type is not currently available.

    Logs:

    {
      "error": {
        "message": "You must provide a <code>return_url</code> when confirming a PaymentIntent with the payment method type p24.",
        "payment_intent": {
          "id": "pi_3JLBdOEB70wXXOtN0RlDHTlH",
          "object": "payment_intent",
          "amount": 64900,
          "amount_capturable": 0,
          "amount_received": 0,
          "application": "ca_Gp4vLOJiqHJLZGxakHW7JdbBlcgWK8Up",
          "application_fee_amount": null,
          "canceled_at": null,
          "cancellation_reason": null,
          "capture_method": "automatic",
          "charges": {
            "object": "list",
            "data": [
            ],
            "has_more": false,
            "total_count": 0,
            "url": "/v1/charges?payment_intent=pi_3JLBdOEB70wXXOtN0RlDHTlH"
          },
          "client_secret": "pi_3JLBdOEB70wXXOtN0RlDHTlH_secret_EAIkXbEMEEFLxXJt0LZsSragY",
          "confirmation_method": "automatic",
          "created": 1628189378,
          "currency": "pln",
          "customer": "cus_Jw6Bwgk4ELpk0K",
          "description": "Order 3699 from ZenTime",
          "invoice": null,
          "last_payment_error": null,
          "livemode": true,
          "metadata": {
            "gateway_id": "stripe_p24",
            "order_id": "3699",
            "user_id": "13",
            "ip_address": "31.183.199.150",
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
            "partner": "PaymentPlugins",
            "created": "1628190821",
            "product_3359": "Mentoring: pakiet wewn?trzny spokój x 1"
          },
          "next_action": null,
          "on_behalf_of": null,
          "payment_method": "pm_1JLBdPEB70wXXOtNtY2UFrpN",
          "payment_method_options": {
            "p24": {
            }
          },
          "payment_method_types": [
            "p24"
          ],
          "receipt_email": null,
          "review": null,
          "setup_future_usage": null,
          "shipping": null,
          "source": null,
          "statement_descriptor": null,
          "statement_descriptor_suffix": null,
          "status": "requires_confirmation",
          "transfer_data": null,
          "transfer_group": null
        },
        "type": "invalid_request_error"
      }
    }
    

    and

    {
      "return_url": "https://www.zentime.pl/zamowienie/?key=wc_order_mfS2x5ao3hyId&order_id=3703&_stripe_local_payment=stripe_p24",
      "payment_method_data": {
        "type": "p24",
        "billing_details": {
          "name": "Konrad Falba",
          "address": {
            "city": "Warszawa",
            "country": "PL",
            "line1": "test",
            "line2": "3",
            "postal_code": "03-101"
          },
          "email": "[email protected]"
        },
        "p24": {
          "bank": "bank_pekao_sa"
        },
        "guid": "58c9cfc4-02f0-46eb-ba3a-3f716d1eeb5c155586",
        "muid": "479c72ca-caaf-43c0-ba98-d95c32458733ebbce5",
        "sid": "4ccb7cff-05e7-493c-b7cb-0d340f9082dbd112c6",
        "payment_user_agent": "stripe.js/8c6f8685b; stripe-js-v3/8c6f8685b",
        "time_on_page": "29608",
        "referrer": "https://www.zentime.pl"
      },
      "expected_payment_method_type": "p24",
      "key": "pk_live_*********************************************************************************************rtCAm5",
      "_stripe_account": "acct_1HT3ZyEB70wXXOtN",
      "client_secret": "************************************************************"
    }
    Response body
    {
      "error": {
        "code": "payment_method_not_available",
        "message": "The payment type <code>p24</code> is not currently available. Please try again later.",
        "payment_intent": {
          "id": "pi_3JLCFQEB70wXXOtN0mfndkRu",
          "object": "payment_intent",
          "amount": 64900,
          "canceled_at": null,
          "cancellation_reason": null,
          "capture_method": "automatic",
          "client_secret": "pi_3JLCFQEB70wXXOtN0mfndkRu_secret_sxSJUHGgM59iFoTM80dBiY5rv",
          "confirmation_method": "automatic",
          "created": 1628191736,
          "currency": "pln",
          "description": "Order 3703 from ZenTime",
          "last_payment_error": null,
          "livemode": true,
          "next_action": null,
          "payment_method": "pm_1JLCFREB70wXXOtNaBSvEAQf",
          "payment_method_types": [
            "p24"
          ],
          "receipt_email": null,
          "setup_future_usage": null,
          "shipping": null,
          "source": null,
          "status": "requires_confirmation"
        },
        "type": "invalid_request_error"
      }
    }
    Request POST body
    {
      "return_url": "https://www.zentime.pl/zamowienie/?key=wc_order_mfS2x5ao3hyId&order_id=3703&_stripe_local_payment=stripe_p24",
      "payment_method_data": {
        "type": "p24",
        "billing_details": {
          "name": "Konrad Falba",
          "address": {
            "city": "Warszawa",
            "country": "PL",
            "line1": "test",
            "line2": "3",
            "postal_code": "03-101"
          },
          "email": "[email protected]"
        },
        "p24": {
          "bank": "bank_pekao_sa"
        },
        "guid": "58c9cfc4-02f0-46eb-ba3a-3f716d1eeb5c155586",
        "muid": "479c72ca-caaf-43c0-ba98-d95c32458733ebbce5",
        "sid": "4ccb7cff-05e7-493c-b7cb-0d340f9082dbd112c6",
        "payment_user_agent": "stripe.js/8c6f8685b; stripe-js-v3/8c6f8685b",
        "time_on_page": "29608",
        "referrer": "https://www.zentime.pl"
      },
      "expected_payment_method_type": "p24",
      "key": "pk_live_*********************************************************************************************rtCAm5",
      "_stripe_account": "acct_1HT3ZyEB70wXXOtN",
      "client_secret": "************************************************************"
    }

    While testing in test mode everything works but after going to live mode it gives me errors.

    On my previous website it was working just fine with the same plugins and configuration. After changing the domain it just stopped. What do I do?

    • This topic was modified 3 years, 3 months ago by ayathy.

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

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

    (@mrclayton)

    Hi @ayathy

    I also received your email. Please don’t create multiple supports requests as it won’t result in a quicker response.

    What is different between your test mode and live mode testing?

    Have you tried as a guest user instead of testing as an admin?

    Kind regards

    Thread Starter ayathy

    (@ayathy)

    I’m sorry for duplicate requests. I wasn’t sure whether I should post on forum or use the help option through plugin that’s why I did both.

    Regarding test and live mode nothing changes. I just change mode through plugin settings. And as I mentioned, in test mode everything works good, but as soon as I switch back to live “przelewy24” gateway gives me an error. Stripe card payments work fine it’s just this one gateway that stops working.

    I tried both as a guest user and an admin. Both don’t work. I also tried disabling all other plugins except woocommerce and your plugin, as well as using different theme to see if something was correlating but it didn’t help.

    It just all of a sudden started giving errors about return_url or that “p24 is not available at the moment, please try again later.”

    I also tried step by step configuring the webhook again using documentation but it didn’t work as well.

    That’s why I decided to turn to you for help as I ran out of ideas.

    Thank you for reply.
    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @ayathy

    It sounds like Stripe might be having some issues with their P24 integration in live mode. Anytime you see the return URL error it usually means there is a communication problem between Stripe and the payment method.

    I recommend reaching out to Stripe’s support team and asking if they have reports of an issue with P24.

    Kind regards

    Thread Starter ayathy

    (@ayathy)

    So I did contact Stripe’s support team but they didn’t help much. They don’t have any reports of an issue with P24, also they did resubmit P24 ppo although it didn’t solve anything.

    I’m not sure what else could I do. They redirect me back to contact you, so I’m quite in the middle of everything and without a single idea what else I can do.

    If you have any other ideas as what can be done I would greatly appreciate it.

    Thank you again for your time and help.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    @ayathy you appear to not have P24 activated at this time. Can you enable it so I can take a look?

    Thread Starter ayathy

    (@ayathy)

    @mr.clayton sure, I’ve enabled it just now. Feel free to take a look

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @ayathy,

    I received the message The payment typep24is not currently available. Please try again later. That is not an issue with the plugin but rather an error coming directly from Stripe.

    I confirmed this via the Stripe logs. I have submitted a support request to Stripe with your details so hopefully they will figure it out. This isn’t an issue that can be resolved via the plugin.

    Kind Regards,

    Thread Starter ayathy

    (@ayathy)

    I understand, thank you. I’ll wait for the Stripe’s support team response then. Hopefully with the information you provided they’ll be able to sort things out. I’ll update as soon as I will know something.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    @ayathy Stripe said they’re looking in to it but haven’t heard anything beyond that.

    Thread Starter ayathy

    (@ayathy)

    @mrclayton Writing just to update. It’s been one week since Stripe contacted me and told me as well that they are working on it. Today I received an email stating that they closed the ticket… without actually helping in any way.

    I ended up creating a new Stripe account just to test if it changes anything and voila, everything works like it should’ve been. I can only guess but it was probably something regarding configuration on my previous Stripe account.

    Thank you for the time and effort you put in helping me solve this issue.

    Regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘402 / 400 error while in live mode’ is closed to new replies.