codenteq / iyzico-payment-gateway Goto Github PK
View Code? Open in Web Editor NEWThe Laravel eCommerce Iyzico Payment Gateway
Home Page: https://codenteq.com
License: MIT License
The Laravel eCommerce Iyzico Payment Gateway
Home Page: https://codenteq.com
License: MIT License
İyzico redirec-page sayfası halen boş geliyor.
codenteq/stripe-payment-gateway#4 (comment)
We are encountering an error similar to this when the request returns successfully:
Call to undefined method Webkul\Checkout\Cart::prepareDataForOrder()
This error is preventing the progression to complete the payment process and create the order.
OS: Windows 10 pro
Browser: Chrome 123.0.6312.122 Release
PHP 8.1
redirect() Method: This method redirects the user to the Iyzico server to initiate the payment process. It collects necessary information from the shopping cart (such as billing address, shipping address, items, and total amount) and creates a checkout form request to be sent to Iyzico. Once the request is processed successfully, it renders a view with the payment form for the user to proceed with the payment.
callback() Method: After the payment process is completed on the Iyzico server, the user is redirected back to the application with a token. This method retrieves the checkout form details using the token and checks the payment status. If the payment is successful, it redirects the user to the success route; otherwise, it redirects to the cart page with an error message.
success() Method: When the payment is successful and the user is redirected to the success route, this method creates an order using the data from the shopping cart. It deactivates the cart, flashes the order details into the session, and redirects the user to the checkout success page.
failure() Method: If the payment process fails or is cancelled, this method flashes an error message indicating the failure reason and redirects the user back to the cart page.
prepareInvoiceData() Method: This method prepares the data necessary for creating an invoice for the order. It iterates over each item in the order and prepares the invoice data accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.