• Resolved abdulahad0013

    (@abdulahad0013)


    hello I’m facing issue with the live payment and getting error in return please help this is urgent .

    Response body
    {
      "error": {
        "code": "parameter_invalid_empty",
        "doc_url": "https://stripe.com/docs/error-codes/parameter-invalid-empty",
        "message": "You passed an empty string for 'payment_method'. We assume empty values are an attempt to unset a parameter; however 'payment_method' cannot be unset. You should remove 'payment_method' from your request or supply a non-empty value.",
        "param": "payment_method",
        "type": "invalid_request_error"
      }
    }

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @abdulahad0013,

    We typically see the “You passed an empty string for ‘payment_method’ because of a lack of the proper webhook (the only mechanism for sending data from Stripe to your GiveWP site) set in your Stripe account. The good news is that the fix is a few steps of copy-pasting, and we’ve documented it very thoroughly.

    The webhook endpoint is a URL that you need to copy and paste into a specific tab of the Stripe Dashboard, and then configure to receive the following events:

    checkout.session.completed
    payment_intent.succeeded
    payment_intent.payment_failed
    charge.refunded
    customer.subscription.created
    customer.subscription.deleted
    invoice.payment_failed
    invoice.payment_succeeded

    Our documentation (with screenshots!) on setting up the webhook is here:
    https://givewp.com/documentation/add-ons/stripe-gateway/#connecting-stripe-and-your-webhook-required

    If the webhook is correctly configured, you should see a record in the logs at Donations > Tools > Logs > Stripe for every event at Stripe (going forward). You’ll need to manually go through and mark the older ones as complete, using your Stripe account to cross-reference, but moving forward you shouldn’t need to continue manually marking them.

    Plugin Support Rick Alday

    (@mrdaro)

    Just checking in on this issue.
    Do you still need assistance here?

    If you still need help, reply and we’ll make sure everything is handled.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Payment failed “code”: “parameter_invalid_empty”,’ is closed to new replies.