• Resolved chameera199010

    (@chameera199010)


    I have connected Stripe account to the Give WP plugin. However, when I try to make a real donation payment, an error occurs. I checked with Stripe end, but there is no issue with that side. I checked with different credit cards, but the result is same.

    The error is as follows,

    Error: There was an issue with your donation transaction. Please check your payment method or contact your card issuer for assistance. If the issue persists, try a different payment method or contact the site administrators.

    Error: Unhandled payment intent status:

    Please help me in this regard

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

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

    (@matheusfd)

    Hi, @chameera199010.

    I’m glad you reached out. I can certainly help you.

    Every time a donation is made on your site – or attempted, GiveWP creates a new entry on the logs section on the dashboard that gives us further information on what is happening. Can you send me logs for when you try to make a donation and get the errors below? You can find the logs under Donations > Tools > Logs.

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

    Thread Starter chameera199010

    (@chameera199010)

    @matheusfd

    Thank you for your attention to this,

    I get 2 logs with a payment failure.

    Description:Unhandled payment intent status:

    {
        "Payment Gateway": "stripe",
        "Donation": {
            "id": 19574,
            "formId": 118,
            "formTitle": "Our Donation Is Hope For Regenerative Treatments",
            "purchaseKey": "a65ec01db13e8269e27cfe6a947e0167",
            "donorIp": "112.134.214.11",
            "createdAt": {
                "Object Class": "DateTime",
                "date": "2024-05-15 05:00:08.000000",
                "timezone_type": 1,
                "timezone": "+00:00"
            },
            "updatedAt": {
                "Object Class": "DateTime",
                "date": "2024-05-15 05:00:08.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": "live"
            },
            "amount": {
                "Object Class": "Give\\Framework\\Support\\ValueObjects\\Money",
                "\u0000Give\\Framework\\Support\\ValueObjects\\Money\u0000amount": {
                    "Object Class": "Money\\Money",
                    "\u0000Money\\Money\u0000amount": "200",
                    "\u0000Money\\Money\u0000currency": {
                        "Object Class": "Money\\Currency",
                        "\u0000Money\\Currency\u0000code": "USD"
                    }
                }
            },
            "feeAmountRecovered": null,
            "exchangeRate": "1",
            "gatewayId": "stripe",
            "donorId": 1,
            "honorific": "",
            "firstName": "Chameera",
            "lastName": "lakruwan",
            "email": "[email protected]",
            "phone": null,
            "subscriptionId": 0,
            "billingAddress": {
                "Object Class": "Give\\Donations\\Properties\\BillingAddress",
                "country": "",
                "address1": "",
                "address2": "",
                "city": "",
                "state": "",
                "zip": ""
            },
            "anonymous": false,
            "levelId": "custom",
            "gatewayTransactionId": null,
            "company": null,
            "comment": null
        }
    }

    Description:Stripe Payment Intent Error

    {
        "post_title": "Stripe Payment Intent Error",
        "post_content": "Unable to create a payment intent. Details: Invalid URL: An explicit scheme (such as https) must be provided.",
        "post_parent": 0,
        "log_type": "gateway_error",
        "file": "/home/insuarnu/lendodigital.br.com/wp-content/plugins/give/includes/gateways/functions.php",
        "line": 299,
        "function": "add",
        "class": "Give_Logging"
    }
    Thread Starter chameera199010

    (@chameera199010)

    @matheusfd Would you be able to resolve this issue?

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @chameera199010.

    Thanks for the logs!

    From what I can see in the error, it looks like the donation was made by someone accessing your site using HTTP and not HTTPS.

    The long version of what can be going on here: your site’s resources should load over HTTPS (using an SSL certificate). One of those files, which is critical to the operation of WordPress in general, and Give specifically, is the admin-ajax.php file. A security feature of that file is that it is not able to be executed from a different url. https://example.com and https://example.com are technically different URLs. So if a person is visiting in a browser that is on https://example.com and attempting to execute the file at https://example.com the security feature kicks in and prevents anything from happening.

    The fix is to route all traffic on your site to https, and to change all instances of the http version of the URL in the database to the https version. Another “gotcha” that sometimes results in frustration is that the www and non-www versions all need to be standardized, and the files should be delivered over the same version (https://www.example.com or https://example.com) that all traffic is forced over.

    We have a detailed tutorial that covers these items really well. The article will walk you through the following things that are relevant to this issue:

    1. the “update your Site URL” section
    2. the “Force HTTPS Throughout your Site” section
    3. the “Resolve insecure elements your Pages” section.

    That article is here:?https://givewp.com/documentation/resources/how-to-use-ssl-and-https-for-your-wordpress-website/

    Feel free to reach out to us if you have any further inquiries or require additional assistance. We’re always happy to help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.