Code Monkey home page Code Monkey logo

Comments (5)

a11rew avatar a11rew commented on June 2, 2024

@mannyAndem yes the plugin creates a transaction on the backend you "resume" on the frontend by using the transaction reference added to the session data.

If by "getting around this" you mean providing your own transaction reference, that's not supported by the plugin. It needs the transaction reference to verify the transaction on the backend. What's your use case for providing your own transaction reference?

Please provide more info about how you ran into this error, along with version numbers for the plugin & Medusa.

from medusa-payment-paystack.

mannyAndem avatar mannyAndem commented on June 2, 2024

I don't want to use my own transaction reference. The problem I'm running into is that while using the pop-up flow recommended by the docs, the pop-up attempts to create a new transaction with the ref I pass. Please how exactly do I resume an already existing transaction ?

from medusa-payment-paystack.

a11rew avatar a11rew commented on June 2, 2024

Gotcha. You don't have to do anything special to resume a transaction, that's the default behaviour when you provide a reference tied to an existing payment.

Outside of setup mistakes like passing an email, amount and currency to the popup different from what the plugin sends to Paystack on your backend, I could only see this happening from trying to retry a settled transaction. i.e. A transaction marked by Paystack as completed/errored/abandoned.

If so, you should could either intitialise a new transaction (take users to the cart page again) or manually refresh the payment session.

You'd need to provide a reproduction or a lot more info for further help.

from medusa-payment-paystack.

mannyAndem avatar mannyAndem commented on June 2, 2024

Thank you soo much! It appears the issue was caused by me passing the wrong amount into the popup's setup. I assumed the amount was in naira and passed in amount * 100 instead of just the amount itself.

Everything works well now, really appreciate the time.

I did notice however, that the docs still uses the v1 of the paystack popup which has been deprecated. Could I perhaps help in updating that section of the docs?

from medusa-payment-paystack.

a11rew avatar a11rew commented on June 2, 2024

Good to hear you have it working now, closing this.

Yes definitely, all help is welcome, you can create a pull request with a link to the deprecation notice (I can't find anything on it) and your changes.

from medusa-payment-paystack.

Related Issues (15)

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.