#smartkiparis-paymentintent-decline

1 messages · Page 1 of 1 (latest)

static sinewBOT
viscid seal
#

smartkiparis-paymentintent-decline

sturdy rover
#

So any errors are in Charge too?

viscid seal
#

not "any" but declines are

sturdy rover
#

okay, thanks

sturdy rover
#

I am using PHP. To access object itself (e.g. PaymentIntent) on a webhook, I can use $event->data->object ?
and to access retrieved charge's fields, can I use $charge->payment_method_details->last4 ?

viscid seal
#

$event->data->object->id for the id for example yes

sturdy rover
#

My IDE throws error when I am trying to access it this way

viscid seal
#

seems like a typing/validation issue in your system/IDE

#

which version of stripe-php do you use?

sturdy rover
#

latest

#

i just required without defining a version

viscid seal
#

Yeah so to me it feels like just your IDE being too strict with validation, we don't have "types" in PHP, just PHPdocs for top-level properties

sturdy rover
#

I fixed something, by installing library for phpstan-stripe