NabeelHassan's avatar

How to read payment intent object from payment response i tried all possible solloutions but still failed

Here is the payment intent object

Laravel\Cashier\Payment Object ( [paymentIntent:protected] => Stripe\PaymentIntent Object ( [id] => pi_1HlqlaLK1qi3VTofoUXrAj0m [object] => payment_intent [amount] => 2000 [amount_capturable] => 0 [amount_received] => 2000 [application] => [application_fee_amount] => [canceled_at] => [cancellation_reason] => [capture_method] => automatic [charges] => Stripe\Collection Object ( [object] => list [data] => Array ( [0] => Stripe\Charge Object ( [id] => ch_1HlqlbLK1qi3VTofbHxrP67b [object] => charge [amount] => 2000 [amount_captured] => 2000 [amount_refunded] => 0 [application] => [application_fee] => [application_fee_amount] => [balance_transaction] => txn_1HlqlbLK1qi3VTofnvWnQO2y [billing_details] => Stripe\StripeObject Object ( [address] => Stripe\StripeObject Object ( [city] => [country] => [line1] => [line2] => [postal_code] => [state] => )

                                        [email] => 
                                        [name] => nabeel
                                        [phone] => 
                                    )

                                [calculated_statement_descriptor] => Stripe
                                [captured] => 1
                                [created] => 1604991347
                                [currency] => eur
                                [customer] => cus_IGGmrKs0LpwUqR
                                [description] => 
                                [destination] => 
                                [dispute] => 
                                [disputed] => 
                                [failure_code] => 
                                [failure_message] => 
                                [fraud_details] => Array
                                    (
                                    )

                                [invoice] => 
                                [livemode] => 
                                [metadata] => Stripe\StripeObject Object
                                    (
                                    )

                                [on_behalf_of] => 
                                [order] => 
                                [outcome] => Stripe\StripeObject Object
                                    (
                                        [network_status] => approved_by_network
                                        [reason] => 
                                        [risk_level] => normal
                                        [risk_score] => 51
                                        [seller_message] => Payment complete.
                                        [type] => authorized
                                    )

                                [paid] => 1
                                [payment_intent] => pi_1HlqlaLK1qi3VTofoUXrAj0m
                                [payment_method] => pm_1HgrHkLK1qi3VTofs71nYmbp
                                [payment_method_details] => Stripe\StripeObject Object
                                    (
                                        [card] => Stripe\StripeObject Object
                                            (
                                                [brand] => visa
                                                [checks] => Stripe\StripeObject Object
                                                    (
                                                        [address_line1_check] => 
                                                        [address_postal_code_check] => 
                                                        [cvc_check] => 
                                                    )

                                                [country] => US
                                                [exp_month] => 2
                                                [exp_year] => 2022
                                                [fingerprint] => 5pmd12fI4r3CqNmH
                                                [funding] => debit
                                                [installments] => 
                                                [last4] => 5556
                                                [network] => visa
                                                [three_d_secure] => 
                                                [wallet] => 
                                            )

                                        [type] => card
                                    )

                                [receipt_email] => 
                                [receipt_number] => 
                                [receipt_url] => https://pay.stripe.com/receipts/acct_1HeEJwLK1qi3VTof/ch_1HlqlbLK1qi3VTofbHxrP67b/rcpt_IMZvCb8ISHcc5sEvl9ED37U75gKXwJa
                                [refunded] => 
                                [refunds] => Stripe\Collection Object
                                    (
                                        [object] => list
                                        [data] => Array
                                            (
                                            )

                                        [has_more] => 
                                        [total_count] => 0
                                        [url] => /v1/charges/ch_1HlqlbLK1qi3VTofbHxrP67b/refunds
                                    )

                                [review] => 
                                [shipping] => 
                                [source] => 
                                [source_transfer] => 
                                [statement_descriptor] => 
                                [statement_descriptor_suffix] => 
                                [status] => succeeded
                                [transfer_data] => 
                                [transfer_group] => 
                            )

                    )

                [has_more] => 
                [total_count] => 1
                [url] => /v1/charges?payment_intent=pi_1HlqlaLK1qi3VTofoUXrAj0m
            )

        [client_secret] => pi_1HlqlaLK1qi3VTofoUXrAj0m_secret_xxxxxxx1ywsh9SqPe7SZUy
        [confirmation_method] => automatic
        [created] => 1604991346
        [currency] => eur
        [customer] => cus_IGGmrKs0LpwUqR
        [description] => 
        [invoice] => 
        [last_payment_error] => 
        [livemode] => 
        [metadata] => Stripe\StripeObject Object
            (
            )

        [next_action] => 
        [on_behalf_of] => 
        [payment_method] => pm_1HgrHkLK1qi3VTofs71nYmbp
        [payment_method_options] => Stripe\StripeObject Object
            (
                [card] => Stripe\StripeObject Object
                    (
                        [installments] => 
                        [network] => 
                        [request_three_d_secure] => automatic
                    )

            )

        [payment_method_types] => Array
            (
                [0] => card
            )

        [receipt_email] => 
        [review] => 
        [setup_future_usage] => 
        [shipping] => 
        [source] => 
        [statement_descriptor] => 
        [statement_descriptor_suffix] => 
        [status] => succeeded
        [transfer_data] => 
        [transfer_group] => 
    )

)

0 likes
1 reply
martinbean's avatar

@nabeelhassan Try formatting your question better, and actually showing what you tried and what you’re trying to do.

Please or to participate in this conversation.