get values from contact form 7 wp plugin [closed]

First change the `on_sent_ok’ to:

on_sent_ok: 'my_redirect();'

then create that my_redirect() function in the page that displays the form:

<script>
    function my_redirect() {
        var price = document.getElementById('PRICE_FIELD').value;
        var url="https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_xclick&[email protected]&currency_code=USD&amount="+price+'&return=http://http://cratecreative.com/norpac&item_name=contribution';
        window.location = url;
    }
</script

and done!
Just make sure that you correct the email in that url and replace PRICE_FIELD with the actual id of the price field.