Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to refund payment #5

Open
nikantkamat opened this issue May 16, 2023 · 8 comments
Open

Unable to refund payment #5

nikantkamat opened this issue May 16, 2023 · 8 comments

Comments

@nikantkamat
Copy link

nikantkamat commented May 16, 2023

while trying to refund payment from medusa admin i get following error

error: 'order_id' is mandatory Error: order_id is mandatory at Object.fetch (/project/node_modules/razorpay/dist/resources/orders.js:57:15) at RazorpayProviderService._callee17$ (/project/node_modules/medusa-payment-razorpay/services/razorpay-provider.js:455:41)

I believe below line causing the error
code

i checked the cart data of payment and found that it has payment.data.id not paymentData.data.order_id,
now i would have made a PR but i'm not familiar much with packages because i never did but ill try after buying some time

@SGFGOV
Copy link
Owner

SGFGOV commented May 16, 2023 via email

@nikantkamat
Copy link
Author

nikantkamat commented May 17, 2023

Hi Happy to accept a pr

How can i test this plugin locally i need reference will medusa's current create plugin doc can help ?

@nikantkamat
Copy link
Author

Help me regarding local setup of plugin because im able to link plugin with my medusa server, routes are working but services are not getting initialised same happens when i create custom plugin from medusa doc, if u have time just guide me about it

@SGFGOV
Copy link
Owner

SGFGOV commented May 18, 2023 via email

@nikantkamat
Copy link
Author

tgz?

@nikantkamat
Copy link
Author

if u have any other way of communication please

@SGFGOV
Copy link
Owner

SGFGOV commented May 18, 2023 via email

@SGFGOV
Copy link
Owner

SGFGOV commented May 18, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants