• Resolved yousefem

    (@yousefem)


    Stripe is accepting all payments from USD cards, but declining all other currencies, I have set up the gateway and connected the webhook properly.

    I get 2 Errors:

    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:

    Stripe Payment Intent Error
    
    {
        "post_title": "Stripe Payment Intent Error",
        "post_content": "Unable to create a payment intent. Details: Your card was declined.",
        "post_parent": 0,
        "log_type": "gateway_error",
        "file": "/var/www/vhosts/azzamaid.org/httpdocs/wp-content/plugins/give/includes/gateways/functions.php",
        "line": 271,
        "function": "add",
        "class": "Give_Logging"
    }
    Unhandled payment intent status:
    
    {
        "Payment Gateway": "stripe",
        "Donation": {
            "id": 11188,
            "formId": 11030,
            "formTitle": "Gaza Emergency Appeal",
            "purchaseKey": "f19fb485d09ac8db02ef3eae5ed2c39c",
            "donorIp": "188.123.162.144",
            "createdAt": {
                "Object Class": "DateTime",
                "date": "2024-02-14 22:35:17.000000",
                "timezone_type": 1,
                "timezone": "+00:00"
            },
            "updatedAt": {
                "Object Class": "DateTime",
                "date": "2024-02-14 22:35:17.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": "136",
                    "\u0000Money\\Money\u0000currency": {
                        "Object Class": "Money\\Currency",
                        "\u0000Money\\Currency\u0000code": "CAD"
                    }
                }
            },
            "feeAmountRecovered": null,
            "exchangeRate": "1",
            "gatewayId": "stripe",
            "donorId": 1,
            "firstName": "Yousef",
            "lastName": "Emad",
            "email": "[email protected]",
            "subscriptionId": 0,
            "billingAddress": {
                "Object Class": "Give\\Donations\\Properties\\BillingAddress",
                "country": "JO",
                "address1": "Amman",
                "address2": "",
                "city": "Amman",
                "state": "Al Tla'a Al Sharqi",
                "zip": "11192"
            },
            "anonymous": false,
            "levelId": "custom",
            "gatewayTransactionId": null,
            "company": null,
            "comment": null
        }
    }

    System info

    ### WordPress Environment ###
    
    Home URL: https://azzamaid.org
    Site URL: https://azzamaid.org
    WP Version: 6.4.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    Permalink Structure: /%postname%/
    Show on Front: page
    Page on Front: Home (#7419)
    Page for Posts: Unset
    Table Prefix Length: 6oKmy_
    Table Prefix Length: 6
    Table Prefix Status: Acceptable
    Admin AJAX: Accessible
    Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, in-progress, failed, refunded, revoked, cancelled, abandoned, processing, preapproval
    
    ### Server Environment ###
    
    Hosting Provider: DBH: localhost:3306, SRV: azzamaid.org
    TLS Connection: Connection uses TLS 1.3
    TLS Connection: Probably Okay
    Server Info: Apache
    PHP Version: 8.2.15
    PHP Post Max Size: 20 MB
    PHP Time Limit: 600
    PHP Max Input Vars: 3000
    PHP Max Upload Size: 20 MB
    cURL Version: 7.81.0, OpenSSL/3.0.2
    SUHOSIN Installed: –
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    gzip: ✔
    GD Graphics Library: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### GiveWP Configuration ###
    
    GiveWP Version: 2.33.5
    GiveWP Cache: Enabled
    Database Updates: All DB Updates Completed.
    Database Updates: All Database Migrations Completed.
    Database Tables: ✔ 6oKmy_give_donors✔ 6oKmy_give_donormeta✔ 6oKmy_give_comments✔ 6oKmy_give_commentmeta✔ 6oKmy_give_sessions✔ 6oKmy_give_formmeta✔ 6oKmy_give_sequential_ordering✔ 6oKmy_give_donationmeta✔ 6oKmy_give_revenue✔ 6oKmy_give_migrations✔ 6oKmy_give_log
    GiveWP Cache: Enabled
    GiveWP Cache: ✔New Donation✔Donation Receipt✔Donation Processing Receipt❌New Offline Donation❌Offline Donation Instructions✔New User Registration✔User Registration Information✔Donation Note✔Email access
    Upgraded From: –
    Test Mode: Disabled
    Currency Code: USD
    Currency Position: Before
    Decimal Separator: .
    Thousands Separator: ,
    Success Page: https://azzamaid.org/donation-confirmation/
    Failure Page: https://azzamaid.org/donation-failed/
    Donation History Page: https://azzamaid.org/donor-dashboard/
    GiveWP Forms Slug: /donations/
    Enabled Payment Gateways: Stripe - Credit Card *(v2)
    Default Payment Gateway: Stripe - Credit Card *(v2)
    PayPal IPN Notifications: N/A
    Donor Email Access: Enabled
    Stripe Webhook Notifications: February 15, 2024 2:08 am
    
    ### Active GiveWP Add-ons ###
    
    
    ### Other Active Plugins ###
    
    BigHearts Core: by WebGeniusLab – 3.0.1
    Contact Form 7: by Takayuki Miyoshi – 5.8.7
    Elementor: by Elementor.com – 3.19.2
    Maintenance: by WebFactory Ltd – 4.08
    Post SMTP: by Post SMTP – 2.8.11
    Slider Revolution: by ThemePunch – 6.6.18
    WPForms Lite: by WPForms – 1.8.6.4
    Yoast SEO: by Team Yoast – 22.0
    
    ### Inactive Plugins ###
    
    Fee recovery for GiveWP: by Link Nacional – 1.1.2
    Give - Currency Switcher: by GiveWP – 1.5.1
    Give - Email Reports: by GiveWP – 1.1.4
    Give - Fee Recovery: by GiveWP – 1.9.8
    Give - PDF Receipts: by GiveWP – 2.3.13
    Give - Recurring Donations: by GiveWP – 2.5.0
    Give - Stripe Gateway: by GiveWP – 2.5.0
    W3 Total Cache: by BoldGrid – 2.6.1
    
    ### Theme ###
    
    Name: BigHearts Child
    Version: 1.0
    Author URL: http://webgeniuslab.net
    Child Theme: Yes
    Parent Theme Name: BigHearts
    Parent Theme Version: 3.0.2
    Parent Theme Author URL: http://webgeniuslab.net/
    

    Please advise.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yousefem

    (@yousefem)

    When I connected through direct stripe button and disconnected the api method, stripe started rejecting payments for the below reason:

    invalid_request_error
    
    The statement_descriptor parameter is not supported for the payment_method_type card. To continue supporting payment_method_type card, please pass in statement_descriptor_suffix or remove the statement_descriptor parameter altogether. Please see https://support.stripe.com/questions/use-of-the-statement-descriptor-parameter-on-paymentintents-for-card-charges for additional details.
    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @yousefem.

    Glad you reached out.

    When I check the logs you shared, it seems like your card was declined: Details: Your card was declined.

    And for the statement descriptor, you need to edit it and add a small piece of text describing your business. You can do it under donations > settings > payment gateways > Stripe:

    Can you test it and let me know how it goes? Looking forward to helping you get to the bottom of this!

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

The topic ‘Stripe Payment Intent Error’ is closed to new replies.