#404 after completing an order

43 messages · Page 1 of 1 (latest)

lunar musk
timid grotto
#

Alright

timid grotto
#

I hagr started upgrading the interface

lunar musk
#

same here, ill be using typescript for the service.

timid grotto
#

Ok

#

I thought it's better to rewrite from scratch

#

Using the strapi plugin as the base

#

I can send you the branch

#

If thar helps

timid grotto
#

Would you like to build it together?

lunar musk
#

sure thing :)

#

looking into it

timid grotto
lunar musk
#

btw how are you testing this while developing? I was directly writing the service into a service file of my medusa backend. Let me know what is the workflow with this.

timid grotto
#

Its the same as stripe

#

The development process is 3 step

#
  1. Get the tests to work locally
#

Don't change the test vectors

#

This will validate the flow against medusa

#
  1. Create a dummy test account with razorpay and use the keys here
#

Ideally everything should work as such..99% it wont

#

Remember paymentIntent maps to orders in razorpay

#

And then step by step to see that orders are created

#

Payment is completed via ui

#

So this is the point you need to integrate with the ui

#

Which I believe you have already done

lunar musk
#

what I meant was how are you testing it with a medusa instance? since this branch isn't published on npm, how am I supposed to add it to my medusa backend?

#

wanted to test what all parameters does medusa pass with all the async function calls

timid grotto
#

Run npm pack

#

And install as local package

#

That is the easiest

lunar musk
#

makes sense. Thanks :)

#

can you also highlight what has been implemented, what needs to be improved on, and what hasn't been implemented? Creating issues will do wonders which we can assign to whoever is dealing with them.

timid grotto
#

Actually this is completely new implementation

timid grotto
#

I have made progress

#

Will push the changes today

#

And yes I too get 404

timid grotto
#

Try medusa-payment-razorpay@7.0
0-next

timid grotto
#

It's done

#

You can use plugin version 7.0.1

timid grotto
#

Two things are un tested..cancellation

#

Meany capture and refunds