#cpt.mactavish

1 messages · Page 1 of 1 (latest)

slate wraithBOT
spare sun
#

Hello!

#

What debugging have you done so far? Have you logged the payload right before signature verification to confirm it's what you expect?

worthy coral
#

Yes. I have logged and I can provide the logs as well

spare sun
#

Gotcha - so what are you seeing with the payload?

worthy coral
#
{
"id": "evt_3NfrlhDvwR627kOY0OEqUac8",
"object": "event",
"api_version": "2022-11-15",
"created": 1692223245,
"data": {
"object": {
"id": "pi_3NfrlhDvwR627kOY0uDIa1cb",
"object": "payment_intent",
"amount": 4900,
"amount_capturable": 0,
"amount_details": {
"tip": [
]
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3NfrlhDvwR627kOY0uDIa1cb_secret_UYJKSRGGXRSCrPMuSCEooTEsd",
"confirmation_method": "automatic",
"created": 1692223245,
"currency": "usd",
"customer": "cus_OSnLULFiBYUMkr",
"description": "Subscription creation",
"invoice": "in_1NfrlgDvwR627kOYFcCc4GKJ",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": [
],
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": "mactavish10101@gmail.com",
"review": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_g08PKzHDSVyVoG",
"idempotency_key": "e19579bc-1f0b-411c-acb2-50bed3c61fb8"
},
"type": "payment_intent.created"
}
#

sorry, let me paste in latest one

spare sun
#

Is that the exact payload you're working with? If so, it looks like some of the spaces are being stripped out?

worthy coral
spare sun
worthy coral
#

Thanks, sorted. it was framework thing.