Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
I am trying to get the transaction data available to my success/thankyou page but am not having luck. I have tried turning Pass thru on in the admin but do not get what I have turned on. I have tried the unique_key stuff but also get nothing. How can I get the PayPal transaction id and various other things like the amount and data and time etc and can the transaction id be saved to the database with the rest of the form submission data? I read somewhere in the tutorials that the database gets uploaded with some indication that the transaction was successful or paid but cannot find out where or how to do it.
Dave
Posts: 2
Threads: 0
Joined: May 2010
Reputation:
0
I'm not a top level programmer but I was able to get back data on my thank you/success page by making the following modification to my success.php file. (it is included in the files you download for a paypal form)
<?php
$curr_folder = dirname(__FILE__);
require_once("$curr_folder/includes/library.php");
require_once("../path to your/global/api/api.php"); //change this to point to your api.php file in the global folder.
$fields = ft_api_init_form_page();
$submission_id = $fields["form_tools_submission_id"]; //pulls in the submission id.
$submission_info = ft_get_submission_info(your form id, $submission_id); //replace this with the value of your form id. You can find this in formtools.
//pull in your form fields
$yourfieldname = $submission_info["yourfieldname"]; // use this construct to get all the field names you wish to display to the user.
ft_api_clear_form_sessions();
?>
Hope this helps. Any improvements to the code is more than welcome.
Posts: 4
Threads: 1
Joined: Jun 2010
Reputation:
0
I think Paypal have facility of display everything about the transaction. And if you can't get that then you can make changes in coding that all the data of the transaction will be displayed on the site and only final amount goes to the paypal. That can helps you a lot.
Posts: 10
Threads: 0
Joined: Dec 2017
Hello. I am new to these issues, I will be happy with any information.