I just checked the attached images; One is contaied with user details like First Name, last Name, email, state, Tax ID, card, validation, CVC no, Zip code etc.
And other screen is contained with Email id, Card No, validity period, CvC, Zip cod etc and Pay button. So from the code bases, need to fetch TAX Id, Location etc; Those details user mentioned and be saved into database. Need to fetch the values from database;
And for tracking user IP, Geolocation concept can be used.
In my previous project, I was trying to get the transaction ID after the purchase; But it returns empty on thank you page; Basically I set:
\Stripe\Stripe::setApiKey('<test token>');
Also mention $amount and $card $_POST['stripeToken'];
Next create Customer; Charge the customer instead of the card; Amount, currency, customer id be mentioned as well.
Billing informations be saved with customer_id, address, city, state, country, postal, trans_id and save the transaction id. Here applied set_billing($fields = array()) this function.
On billing date, time, customer address etc be mentioned. And on final completion, it will be redirected to the Thank you. That is why it returns empty thank you page;
Later, I have applied this: $charge = \Stripe\Charge::create(array(
"amount" => 100,
"currency" => "usd",
"customer" => $customer->id)
);
Also try print_r($charge); // to check the output variable; It will get response as $charge->id;
Please let me know your convenient time.