Coder Social home page Coder Social logo

codenteq / iyzico-payment-gateway Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 4.0 75 KB

The Laravel eCommerce Iyzico Payment Gateway

Home Page: https://codenteq.com

License: MIT License

PHP 94.03% Blade 2.82% JavaScript 3.16%
ecommerce iyzico payment bagisto codenteq opensource acikkaynak

iyzico-payment-gateway's People

Contributors

ahmetarsiv avatar karabayyazilim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iyzico-payment-gateway's Issues

Call to undefined Cart::prepareDataForOrder

Bug Report

codenteq/stripe-payment-gateway#4 (comment)

Issue Description

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.

Preconditions

OS: Windows 10 pro
Browser: Chrome 123.0.6312.122 Release
PHP 8.1

Expected Result

  • 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.