• Resolved mikeshake

    (@mikeshake)


    hello, I have a handful of issues:

    1. Stripe payment gateway is giving me this error message after checkout: unhandled payment intent status, haven’t been able to successfully process a payment in either Live or Test Mode.
    2. PayPal Donations option is not showing up in any of the forms (PayPal account is connected)

    I’ve followed all the instructions, set up the webhook, and i just can’t seem to figure out what is going on.

    Can you please help me get this figured out. And does upgrading to a ‘Basic’ plan going to do anything for me? Will adding the Stripe Premium add-on do anything to remedy this as well?

    Thanks, Mike

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support alexwcoleman

    (@alexwcoleman)

    Hello!

    Glad you reached out. I can help here.

    You’ve connected to PayPal Donations (PPD), so that’s the correct first step! Have you enabled PPD at Donations >> Settings >> Payment Gateways? If so, you might need to clear the cache in any caching plugins and/or on your server.

    There should be an error log in the GiveWP logs for the Stripe issue. Error logs are accessed by going to Donations >> Tools >> Logs. Look for any relevant errors. Use the “eyeball” icon on the right of the log to expand it, and then copy/paste the complete log into your next reply – a screenshot will not show me enough. Here’s a screencast on how to get error logs: https://screencast-o-matic.com/watch/c3eD0AVFgVG.

    Once we see that we’ll be able to dig in deeper. Have a good day!

    Thread Starter mikeshake

    (@mikeshake)

    Hello Alex,

    Thank you for getting back to me so quickly, I really appreciate it.

    I have cleared the cache and browser but PayPal donations option is still not showing up on the donation forms. And yes, it is Enabled on the payment gateway settings.

    As for the Stripe issue, here are the results for the logs:

    Description:
    Unhandled payment intent status:
    Category:
    Payment Gateway
    Source:
    Payment Gateway
    Date & Time:
    2023-07-11 02:03:37
    Error details:
    {
    "Payment Gateway": "stripe",
    "Donation": {
    "id": 987739,
    "formId": 987693,
    "formTitle": "Make a donation",
    "purchaseKey": "096b90f13e08bc49135f6fb1f120ebec",
    "donorIp": "37.120.244.102",
    "createdAt": {
    "Object Class": "DateTime",
    "date": "2023-07-11 02:03:36.000000",
    "timezone_type": 1,
    "timezone": "+00:00"
    },
    "updatedAt": {
    "Object Class": "DateTime",
    "date": "2023-07-11 02:03:36.000000",
    "timezone_type": 1,
    "timezone": "+00:00"
    },
    "status": {
    "Object Class": "Give\Donations\ValueObjects\DonationStatus",
    "\u0000\u0000value": "pending" }, "type": { "Object Class": "Give\Donations\ValueObjects\DonationType", "\u0000\u0000value": "single"
    },
    "mode": {
    "Object Class": "Give\Donations\ValueObjects\DonationMode",
    "\u0000*\u0000value": "test"
    },
    "amount": {
    "Object Class": "Give\Framework\Support\ValueObjects\Money",
    "\u0000Give\Framework\Support\ValueObjects\Money\u0000amount": {
    "Object Class": "Money\Money",
    "\u0000Money\Money\u0000amount": "2000",
    "\u0000Money\Money\u0000currency": {
    "Object Class": "Money\Currency",
    "\u0000Money\Currency\u0000code": "USD"
    }
    }
    },
    "feeAmountRecovered": null,
    "exchangeRate": "1",
    "gatewayId": "stripe",
    "donorId": 7,
    "firstName": "Audrey",
    "lastName": "Halse",
    "email": "[email protected]",
    "subscriptionId": 0,
    "billingAddress": {
    "Object Class": "Give\Donations\Properties\BillingAddress",
    "country": "US",
    "address1": "Via Palermo 12",
    "address2": "Via Palermo 12",
    "city": "Serro",
    "state": "NJ",
    "zip": "98040"
    },
    "anonymous": true,
    "levelId": "1",
    "gatewayTransactionId": null,
    "company": null,
    "comment": null
    }
    }
    Description:
    Stripe Payment Intent Error
    Category:
    Payment
    Source:
    Give Core
    Date & Time:
    2023-07-11 02:03:37
    Error details:
    {
    "post_title": "Stripe Payment Intent Error",
    "post_content": "Unable to create a payment intent. Details: 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.",
    "post_parent": 0,
    "log_type": "gateway_error",
    "file": "/home1/varacall/public_html/wp-content/plugins/give/includes/gateways/functions.php",
    "line": 258,
    "function": "add",
    "class": "Give_Logging"
    }

    Please advise as to what the next steps are and if you need access into the backend. 

    Thank you, 

    Mike

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @mikeshake.

    Thanks for sharing the error with us: “Unable to create a payment intent. Details: You passed an empty string for ‘payment_method’.”

    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

    Let me know if that helps.

    About PayPal, send us two things:

    1- A link to a form where it is supposed to show up

    2- System ingo

    Navigate to Donations –> Tools –> System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here. That will give me some more context to be able to help.

    Looking forward to helping you get to the bottom of this!

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @mikeshake.

    It’s been a while since we’ve heard back, and I know troubleshooting needs a little extra time. I’m marking this as resolved for now, but if you still have questions, you can send them along right here, and I’ll be happy to hop back in.

    Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘GiveWP not working: getting errors, paypal donations not showing up on forms’ is closed to new replies.