Support the development of TastyIgniter Learn more
I want to retrieve and display order_id while checkout. let me know, TI stores order information before or after checkout?
There is only an order_id once the checkout has been processed (attempted payment, successful payment etc).
Okay ryan, now i cleared.
so i need to fetch last order_id form ti_orders table. Display and pass it to payment gateway for additional information. Right!?
It depends on what you are trying to do? What gateway?
I have Developed Razorpay integration, it is working as other default payment, and i want to pass order_id parameter as additional information, As the gateway generates own order_id for transaction and payment_id for reference. but i just wanted to make my client more clear on each transaction with TI order_id.
See getPaymentFormFields() in the stripe payment gateway
Thank you very much Ryan,
And one more thing, Why the address_1 field validated when field is blank or no address is selected!?
Im not sure what you mean by this. Can you give more detail?
The checkout form submitted without validation of address. And after completing the successful payment, this will redirect back to checkout page again and alert for Address 1 is required!!
It sounds like you are not following the correct flow that page register expects. You’ll just need to look around the other gateways and see if you can borrow approaches from how they work.
That’s my point. There is no flow that allows the payment to be made before the form is submitted.
We may revisit this after v3 as it’s needed for some features I want to add
For now, I have completed by validating either address select value not zero or address_1 not empty. 🙂