#kuvana-referrer-missing

1 messages · Page 1 of 1 (latest)

pliant ridgeBOT
dreamy hornet
#

Can you share the error you encounter and snippets form where exactly that happenins in your integration

#

Ah, you using a beta feature

#

Were you working with someone at Stripe related to that? I would expect you had a contact to reac out to for that.

solar mauve
#

Yes we have a contact at Stripe, but were directed here as well.

#

Here is the error using test data

{
    "code": "parameter_invalid_empty",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-invalid-empty",
    "message": "You passed an empty string for 'payment_method_data[referrer]'. We assume empty values are an attempt to unset a parameter; however 'payment_method_data[referrer]' cannot be unset. You should remove 'payment_method_data[referrer]' from your request or supply a non-empty value.",
    "param": "payment_method_data[referrer]",
    "payment_intent": {
        "id": "pi_3Nv3icHFzwE4pTge0rsI5sp4",
        "object": "payment_intent",
        "amount": 7500,
        "amount_details": {
            "tip": {}
        },
        "amount_subtotal": 7500,
        "automatic_payment_methods": {
            "allow_redirects": "always",
            "enabled": true
        },
        "canceled_at": null,
        "cancellation_reason": null,
        "capture_method": "automatic",
        "client_secret": "pi_3Nv3icHFzwE4pTge0rsI5sp4_secret_5ZmkQSZCPM08aUeCqmBHCHdlb",
        "confirmation_method": "automatic",
        "created": 1695844102,
        "currency": "usd",
        "description": null,
        "last_payment_error": null,
        "livemode": false,
        "next_action": null,
        "payment_method": null,
        "payment_method_configuration_details": {
            "id": "pmc_1NTW8PQmXeJ46Vn5g1D10fnJ",
            "parent": "pmc_1NO4RjHFzwE4pTgeyHuLdXYz"
        },
        "payment_method_types": [
            "card",
            "link",
            "affirm"
        ],
        "processing": null,
        "receipt_email": null,
        "setup_future_usage": null,
        "shipping": null,
        "source": null,
        "status": "requires_payment_method",
        "total_details": {
            "amount_discount": 0,
            "amount_tax": 0
        }
    },
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_RQ61eBJszzwzgv?t=1695844135",
    "type": "invalid_request_error"
}
#

This payment intent worked locally using the same feature
pi_3Nv456HFzwE4pTge196UAU0I
This payment intent failed in our production build
pi_3Nv3icHFzwE4pTge0rsI5sp4

dreamy hornet
#

taking a look

#

Can you share who you were working with that directed you here? I can invite you as a friend to DM

solar mauve
#

aolson is the username in our Slack channel with Stripe. We do have a thread with Stripe through Slack, but they say they are still investigating after recommending I contact you

dreamy hornet
#

One thing that stands out to me in your failing request is a return URL pointing to a chrome extension

#

Is this request coming from within a chrome extension?

solar mauve
#

Thats just because it is in the desktop application which is not browser based.

dreamy hornet
#

I suspect that's related to the referrer issue

solar mauve
#

I reverted back to an old version of our desktop application that uses a different Stripe version, and that request did not send a referrer field at all

payment_method_data[type]: card
payment_method_data[card][number]: 4242 4242 4242 4242
payment_method_data[card][cvc]: 242
payment_method_data[card][exp_year]: 24
payment_method_data[card][exp_month]: 02
payment_method_data[billing_details][address][postal_code]: 84043
payment_method_data[billing_details][address][country]: US
payment_method_data[billing_details][address][line1]: 1331 West Powell Way
payment_method_data[billing_details][address][city]: Lehi
payment_method_data[billing_details][address][state]: UT
payment_method_data[billing_details][name]: Kristy Abbott
payment_method_data[billing_details][phone]: 
payment_method_data[payment_user_agent]: stripe.js/f69fe3ae73; stripe-js-v3/f69fe3ae73; payment-element; deferred-intent; autopm
payment_method_data[time_on_page]: 49469
dreamy hornet
#

Stripe JS isn't meant to be used like that, only in browsers

solar mauve
#

Well, that's not entirely true, because this element has been working without issue for years in our desktop application

pliant ridgeBOT
solar mauve
#

Looks like stripe fixed it. It's no longer sending the failing referrer.

iron moth
#

kuvana-referrer-missing

#

@solar mauve yeah we fixed it sorry for the trouble! It seems you are already in touch with our support team so I would recommend following up with them directly for more details