• Resolved leonlem

    (@leonlem)


    Hello!

    I set up my website on wordpress to receive online payments via a platform called “stripe”

    On my website I have set up a webhook to receive calls from the stripe and receive notifications of completed payments.

    in my case the webhook in question that receives the stripe notifications is https://ibpan.com.br/novosite/?give-listener=stripe

    But I get a Redirect error when stripes try to communicate via this webhook.

    I read on the internet that if the hosting provider is enabling some redirect on my site, I won’t be able to use the webhook, because stripe doesn’t accept redirects in its requests.

    Can you help me to make this type of communication possible?
    Is there any configuration to allow this to work?

    Thank you very much for your help!

    The following error log shows the stripe trying to communicate with the site ibpan.com.br/novosite :

    Código de status do HTTP

    301 (Moved Permanently)

    Solicitação para seu endpoint

    {
    “id”: “evt_3JKRDhFdhDcXVNck1rvPOEYA”,
    “object”: “event”,
    “api_version”: “2020-08-27”,
    “created”: 1628010962,
    “data”: {
    “object”: {
    “id”: “ch_3JKRDhFdhDcXVNck1n0Npd8s”,
    “object”: “charge”,
    “amount”: 1000,
    “amount_captured”: 1000,
    “amount_refunded”: 0,
    “application”: “ca_9aCrgIfxIYTRTkMvw30fMqg92su6Sr1i”,
    “application_fee”: null,
    “application_fee_amount”: null,
    “balance_transaction”: “txn_3JKRDhFdhDcXVNck19rhgAtk”,
    “billing_details”: {
    “address”: {
    “city”: null,
    “country”: null,
    “line1”: null,
    “line2”: null,
    “postal_code”: null,
    “state”: null
    },
    “email”: “leonardolemos3@gmail.com”,
    “name”: “Leonardo Dos Passos Lemos”,
    “phone”: null
    },
    “calculated_statement_descriptor”: “IBPAN – IGREJA”,
    “captured”: true,
    “created”: 1628010961,
    “currency”: “brl”,
    “customer”: “cus_JyMN3sySnUWoo5”,
    “description”: “Missões Nota 10 – LEONARDO LEMOS (leonardolemos3@gmail.com)”,
    “destination”: null,
    “dispute”: null,
    “disputed”: false,
    “failure_code”: null,
    “failure_message”: null,
    “fraud_details”: {
    },
    “invoice”: null,
    “livemode”: false,
    “metadata”: {
    “Email”: “leonardolemos3@gmail.com”,
    “Donation Post ID”: “3512”,
    “Sequential ID”: “8”
    },
    “on_behalf_of”: null,
    “order”: null,
    “outcome”: {
    “network_status”: “approved_by_network”,
    “reason”: null,
    “risk_level”: “normal”,
    “risk_score”: 60,
    “seller_message”: “Payment complete.”,
    “type”: “authorized”
    },
    “paid”: true,
    “payment_intent”: “pi_3JKRDhFdhDcXVNck1L2bBYAU”,
    “payment_method”: “pm_1JKPf7FdhDcXVNckN7dppzf8”,
    “payment_method_details”: {
    “card”: {
    “brand”: “visa”,
    “checks”: {
    “address_line1_check”: null,
    “address_postal_code_check”: null,
    “cvc_check”: null
    },
    “country”: “US”,
    “exp_month”: 2,
    “exp_year”: 2029,
    “fingerprint”: “paIpKqXG7BjiOFZ9”,
    “funding”: “credit”,
    “installments”: null,
    “last4”: “4242”,
    “network”: “visa”,
    “three_d_secure”: null,
    “wallet”: null
    },
    “type”: “card”
    },
    “receipt_email”: “leonardolemos3@gmail.com”,
    “receipt_number”: null,
    “receipt_url”: “https://pay.stripe.com/receipts/acct_1JK336FdhDcXVNck/ch_3JKRDhFdhDcXVNck1n0Npd8s/rcpt_JyNz23JXZrKZORnFkUTIlaaXhJRyAeQ”,
    “refunded”: false,
    “refunds”: {
    “object”: “list”,
    “data”: [
    ],
    “has_more”: false,
    “total_count”: 0,
    “url”: “/v1/charges/ch_3JKRDhFdhDcXVNck1n0Npd8s/refunds”
    },
    “review”: null,
    “shipping”: null,
    “source”: null,
    “source_transfer”: null,
    “statement_descriptor”: “Ibpan – Igreja”,
    “statement_descriptor_suffix”: null,
    “status”: “succeeded”,
    “transfer_data”: null,
    “transfer_group”: null
    }
    },
    “livemode”: false,
    “pending_webhooks”: 1,
    “request”: {
    “id”: “req_qgefg9VkpFX1lZ”,
    “idempotency_key”: null
    },
    “type”: “charge.succeeded”
    }
    Ocultar linhas
    Resposta

    Invalid encoding: ISO-8859-1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @leonlem,

    Glad you reached out here.

    Server errors are best handled by your host so I recommend you reach out to them for clarification on what’s causing the redirect.

    There are a couple of things you can check on your end too.

    1. If you are using GiveWP on the root domain https://ibpan.com.br/ you can just edit the webhook URL in Stripe to https://ibpan.com.br/?give-listener=stripe

    2. “Coming Soon” plugins can also cause these redirects. Remove your coming soon page and do another test donation and see if you get the webhook to work that way.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hello @leonlem,

    Do you still need assistance here? I’ll close this ticket for now but if you still need assistance with it, please reopen it and we’ll happily assist you.

    If you have other issues, you can open a new ticket and we’ll help you there too.

    Thanks for using GiveWP! Have a great day.

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

The topic ‘I can’t receive online payments confirmation via stripe’ is closed to new replies.