Title: Payment failed &#8220;code&#8221;: &#8220;parameter_invalid_empty&#8221;,
Last modified: August 13, 2022

---

# Payment failed “code”: “parameter_invalid_empty”,

 *  Resolved [abdulahad0013](https://wordpress.org/support/users/abdulahad0013/)
 * (@abdulahad0013)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/payment-failed-code-parameter_invalid_empty/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpayment-failed-code-parameter_invalid_empty%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Rick Alday](https://wordpress.org/support/users/mrdaro/)
 * (@mrdaro)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/payment-failed-code-parameter_invalid_empty/#post-15918661)
 * Hi [@abdulahad0013](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/mrdaro/)
 * (@mrdaro)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/payment-failed-code-parameter_invalid_empty/#post-15926193)
 * 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.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [payment error](https://wordpress.org/support/topic-tag/payment-error/)
 * [stripe error](https://wordpress.org/support/topic-tag/stripe-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rick Alday](https://wordpress.org/support/users/mrdaro/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/payment-failed-code-parameter_invalid_empty/#post-15926193)
 * Status: resolved