Get Stripe Payment Intent Id in gform_stripe_fulfillment() [RESOLVED]

Hi,

I need to get information in my session $session after the payment is valid (gform_stripe_fulfillment).

I try to get :

  • apiKey
  • payment_intent

My problem is, the $session is a Stripe Object and i have no idea how to call this informations ?

Content of $session :

Stripe\Checkout\Session::__set_state(array(
   'saveWithParent' => false,
   '_opts' => 
  Stripe\Util\RequestOptions::__set_state(array(
 'headers' => 
array (
),
 'apiKey' => 'sk_test_518uY9pCOg5xUH23xyvsUYPPXZbruPgf1ASjkxFZrZkhJLIxiSw4XWVQm2D1oNOiVPMeaeLKPJ2OkuwnRPCKPJGb500xy11IsI6',
 'apiBase' => NULL,
  )),
   '_originalValues' => 
  array (
'id' => 'cs_test_a1jjiWTs8WxXdcNqKNrSNKUCFc6ri51iz4OfelT2KKTTxlSYDaoSb2snMu',
'object' => 'checkout.session',
'allow_promotion_codes' => NULL,
...

How i can i do this ?

Thanks

About payment intent it’s actually pretty simple :
$session->payment_intent

1 Like