• Resolved silviaserpe1979

    (@silviaserpe1979)


    Hello 🙂

    I configured your plugin to receive donations. I wanted to know if it was possible, after making a donation by credit card (I connected my Stripe account), to immediately receive a donation receipt email. And not “donation processing.” I tried disabling the “donation processing” email, but no email arrived. I’d like to do this because once someone pays by credit card (or PayPal), the donation arrives immediately.
    Let me know!

    Greets

    Silvia

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @silviaserpe1979,

    Glad you reached out, happy to help! What you are describing tells me the donation does not have a “Completed” status, which is required for the emails to be sent, and the donation total to be added to the statistics. Can you check on that please?

    Reasons for a donation stuck in “Processing” could be a form error, or not having setup a Stripe webhook.

    To solve this, we have a screencast that covers creating the Stripe webhook process in detail.

    https://www.loom.com/share/cec585f6fcda4c26999c28fb71e79c47?sid=ae9794b1-b500-4f95-8ecd-5b9af3f08bd4

    You’ll be connecting the 8 “events” in the webhook below that I’ve listed in alphabetical order:

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

    After that, the next Stripe donation will populate the Last webhook received entry the current date/time in GiveWP > Settings > Payment Gateways – Stripe – General Settings – Stripe Webhooks as seen in this example below:

    If that checks out you are good to go for <u>new</u> donations that arrive post-webhook creation. You will, however, have to change any existing donations with the Processing status to a Complete status manually by clicking to edit on the donation. Use your Stripe transactions as a guide when doing so to ensure all payments were successful.

    I hope this helps to point you in the right direction! Please let us know if you have further questions 🙂

    Thread Starter silviaserpe1979

    (@silviaserpe1979)

    Thanks! I created a new webhook.
    But how do I create a test area? I created the webhook in the Stripe sandbox. I activated test mode on the site, but when I try to pay with card 42424242424242, I get an error. You can try here https://staging.ailmodena.org/dona-ora-per-ail-modena/ by clicking “donate now” in the slider with the girl.
    Greets
    Silvia


    Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello @silviaserpe1979 ,

    Thanks for the updates! Super smart to create the Test Mode webhook in your Stripe account, that is the best way to test donations. I was able to create a donation successfully, here is a screenshot of my donor confirmate page:

    https://loom.com/i/8f0a9a16c3f24109bc6cf5edee06f5ea

    Don’t forget to also create the same webhook in your live Stripe account as well. Regarding the error you received, I would suggest to try again with a different email address and see if it’s successful.

    Have a great rest of your day/evening 🙂

    Thread Starter silviaserpe1979

    (@silviaserpe1979)

    Hi, thanks for your fast answer.
    I tried, but I still get an error. I also tried with your email, but it still gets an error. I’m sending you a video with the settings I set for both Stripe and the plugin. I saw that your payment arrived, but it’s still processing, not confirmed. In the video, you can also see how the Stripe webhook is set up.

    https://bmrng.me/s/D85VC2K0EDKy6ni28Qsj0

    Sivlia

    Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello again,

    Thank you for the video, I see the issue now! Stripe makes this a little confusing in that they have “sandboxes” and also “test mode”. The blue bar at the top of your screen shows it’s a sandbox, and sandboxes do not connect to external applications. What you want to do is go to your live Stripe account, then click to enable “Test Mode” and add your webhook there. In Test Mode, the top of the screen will have an orange bar as seen in this (silent) video: https://www.loom.com/share/3a5dc4cc810f40868e21d741084fd568

    Once in Test Mode, follow the same steps to create your webhook as before. Try another test donation after that. If you still receive an error, we’ll need to see the form log.

    Every time a donation is made on your site – or attempted, GiveWP creates a new entry in the logs section that provides additional information on what is happening. The error logs are accessed by going to GiveWP > Tools > Logs. You’re looking for the entry for the date/time of the donation you just attempted. When you find it, click on the “eyeball” icon on the right of the log to expand it to view the contents.  After that, copy/paste the complete log into your next reply. (Note: a screenshot will not show us enough information. Here’s a quick (silent) screencast on how to get the form error log content for us: 

    Best regards,

    Thread Starter silviaserpe1979

    (@silviaserpe1979)

    Hello Ginger.

    I’ve created ad area test and I removed the sanbox.
    https://ibb.co/fYzvT073
    But when I try to make a test donation, I still get an error. I’ll send you a screenshot of the log.

    This is the error

    { “error_type”: “unknown_error”, “exceptionMessage”: “‘firstName’ is required.”, “formData”: { “gatewayId”: “stripe_payment_element”, “requestData”: { “givewp-route”: “donate”, “givewp-route-signature”: “c2f2b2e1a9f21fc4e79b0d3b1dae0079”, “givewp-route-signature-id”: “givewp-donate”, “givewp-route-signature-expiration”: “1772180068”, “amount”: “20”, “currency”: “EUR”, “donationType”: “single”, “formId”: “910”, “gatewayId”: “stripe_payment_element”, “firstName”: “Silvia”, “lastName”: “Duni”, “codice_fiscale”: “dnu”, “email”: “[email protected]”, “per_quale_progetto_vuoi_effettuare_una_donazione”: “ricerca”, “consent-2”: “accepted”, “donationBirthday”: “”, “originUrl”: “https://staging.ailmodena.org/dona-ora-per-ail-modena/#awb-oc__923&#8221;, “isEmbed”: “true”, “embedId”: “give-form-shortcode-1”, “locale”: “it_IT”, “gatewayData”: { “stripePaymentMethod”: “card”, “stripePaymentMethodIsCreditCard”: “redacted“, “formId”: “910”, “stripeKey”: “pk_test_51T3wWKEHS6GqNDpuaHgKS7BnjlcNPnfvU261jMBuCtYt6pXNoZ8m1IH5eRYxIAGLgBtlzjkXhx9qoF5LUeLKbBsI00ZrXYQSaF”, “stripeConnectedAccountId”: “acct_1T3wWKEHS6GqNDpu” }, “woocommerce-login-nonce”: null, “_wpnonce”: null, “woocommerce-reset-password-nonce”: “redacted“, “woocommerce-edit-address-nonce”: null, “save-account-details-nonce”: null }, “formId”: 910, “originUrl”: “https://staging.ailmodena.org/dona-ora-per-ail-modena/#awb-oc__923&#8221;, “embedId”: “give-form-shortcode-1”, “isEmbed”: true

    Thanks

    Silvia

    Plugin Support Ginger Coolidge

    (@gscoolidge)

    Hello Silvia,

    Thanks for sharing the logs! Your Stripe webhook looks good 👍🏻

    Looking at the error, it sounds like its an issue we’ve seen where a First Name is missing in the database, even though it shows in GiveWP. There was a migration a long time ago that took care of this, but we’ve had a handful of customers where the migration did not complete.

    That error is basically an upgrade issue for the core GiveWP plugin. Meaning, during an update, a database update process did not finish successfully or completely for some reason.

    The video below from our senior support technician below explains why the “firstName is required” error is happening, and how to correct it using a code snippet. You’ll want to allow it some time to check all existing donor records, and then it can be deactivated or removed. If you have a full staging site, I would suggest applying it there first. And of course, make sure and take a reliable backup you can restore from of your live site when you’re ready to apply it there.

    My colleague made this video to explain some context and how to fix it:
    https://www.loom.com/share/3df4fd999b8c46c594ae19d85ffcd47e?sid=0d08909b-c22c-4d2e-973d-66474c710707

    The code in the video can be found here: https://gist.github.com/rickalday/0c93e542144d93de78fccee6413da11e.

    We recommend adding PHP code snippets to your website via a code snippet plugin. We use this one https://ww.wp.xz.cn/plugins/code-snippets/, however, there are many available that can work.

    Also, if you need assistance implementing custom PHP code on your website we have this guide: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/.

    Please note that this code snippet is provided as an example of how you can extend GiveWP with code. It’s up to you to implement and customize to your liking. We cannot provide support for custom code on your website, only the code that we create and distribute.

    Let me know how things go after you’ve implemented and tested the above! 👍

    Thread Starter silviaserpe1979

    (@silviaserpe1979)

    Thank you very much. I solve!!!!!

    :-)))

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

You must be logged in to reply to this topic.