402 / 400 error while in live mode
-
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?
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘402 / 400 error while in live mode’ is closed to new replies.