#stripeuser_96421
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- stripeuser_96421, 2 days ago, 54 messages
What specifically do you need clarifying? Why are you manually verification payload signatures?
Our use case cannot support the predefined libraries.
Can you explain the manual approach?
Not sure what I can explain beyond what is documented here: https://stripe.com/docs/webhooks#verify-manually
Is it not working? Do you have an error?
It is not working
my payload looks like this after doing the steps manually
"1701436772".{ "id": "evt_1OILG0Fnpfya5sMz9zQg2cOG", "object": "event", "api_version": "2022-11-15", "created": 1701393064, "data": { "object": { "id": "po_1OIL8vFnpfya5sMzufFyJI4h", "object": "payout", "amount": 124529, "arrival_date": 1701388800, "automatic": true, "balance_transaction": "txn_1OIL8vFnpfya5sMzbnEhExxE", "created": 1701392625, "currency": "eur", "description": "STRIPE PAYOUT", "destination": "ba_1OFZswFnpfya5sMzwY78UQyG", "failure_balance_transaction": null, "failure_code": null, "failure_message": null, "livemode": false, "metadata": { }, "method": "standard", "original_payout": null, "reconciliation_status": "in_progress", "reversed_by": null, "source_type": "card", "statement_descriptor": null, "status": "in_transit", "type": "bank_account" } }, "livemode": false, "pending_webhooks": 1, "request": { "id": null, "idempotency_key": null }, "type": "payout.created" }
the signature which I get from this is :
whsec_lAcT1ejdFgV1ZyECncK7I1B2pG8IgWlY
but the expected signature is :
7aebe656a60357aa81c83c08c72afa27e7cdd45d088e3064edfebecbfa3f975c
there?
Yes, please be patient. We're helping others users, too
I think you need to stringify the JSON payload too
ok, let me try
Ok, found it. There's a decent Node.js example here: https://stackoverflow.com/questions/65306706/writing-unit-tests-for-stripe-webhooks-stripe-signature/65323265#65323265