• Resolved Magicways

    (@akash-khurana)


    I want to update the form entry after the payment is completed.

    I am using gform_post_payment_completed action hook. But it is not working at all. I want to know if your addon is compatible with or not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Magicways

    (@akash-khurana)

    Ignore it was my mystake. its working now.

    Plugin Support Reüel

    (@pronamic_reuel)

    Glad to hear you were able to resolve the issue. Standard Gravity Forms actions/filters are supported, as you discovered with gform_post_payment_completed 🙂

    Plugin Author Remco Tolsma

    (@remcotolsma)

    I just tested this and can confirm that it works.

    add_action(
    	'gform_post_payment_completed',
    	function( $entry, $action ) {
    		file_put_contents( __DIR__ . '/log.txt', print_r( $entry, true ), \FILE_APPEND );
    	},
    	10,
    	2
    );

    log.text

    Array
    (
        [id] => 1
        [form_id] => 1
        [post_id] => 
        [date_created] => 2023-05-26 12:44:02
        [date_updated] => 2023-05-26 12:44:02
        [is_starred] => 0
        [is_read] => 0
        [ip] => 172.20.0.1
        [source_url] => http://localhost:8888/?page_id=8
        [user_agent] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
        [currency] => EUR
        [payment_status] => Paid
        [payment_date] => 23-05-26 12:44:14
        [payment_amount] => 10
        [payment_method] => 
        [transaction_id] => tr_tyEa66hKCS
        [is_fulfilled] => 1
        [created_by] => 1
        [transaction_type] => 1
        [status] => active
        [1.1] => Product Name
        [1.2] => € 5,00
        [1.3] => 2
    )

    👌

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘gform_post_payment_completed Not working’ is closed to new replies.