SGFGOV / medusa-payment-razorpay

A basic implementation for medusajs payment with razorpay
https://github.com/SGFGOV/medusa-payment-razorpay
21 stars 19 forks source link

Unable to refund payment #5

Open nikantkamat opened 1 year ago

nikantkamat commented 1 year ago

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

error: 'order_id' is mandatory Error:order_idis 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 commented 1 year ago

Hi

Happy to accept a pr

On Tue, 16 May, 2023, 18:17 Nikant Kamat, @.***> wrote:

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

https://github.com/SGFGOV/medusa-payment-razorpay/blob/538a71c624a6ce0f3a73a853d7dffc8baab8ab10/src/services/razorpay-provider.js#L499

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

— Reply to this email directly, view it on GitHub https://github.com/SGFGOV/medusa-payment-razorpay/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHF45PO7KFVVHBLJ6XDXGNZMNANCNFSM6AAAAAAYDTEK7M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.   

nikantkamat commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

You can use npm pack.. and install using yarn add local path to the tgz

On Thu, 18 May, 2023, 14:19 Nikant Kamat, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/SGFGOV/medusa-payment-razorpay/issues/5#issuecomment-1552740952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHDDIDLR43NTP2TABVLXGXPBZANCNFSM6AAAAAAYDTEK7M . You are receiving this because you commented.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.   

nikantkamat commented 1 year ago

tgz?

nikantkamat commented 1 year ago

if u have any other way of communication please

SGFGOV commented 1 year ago

Discord

On Thu, 18 May, 2023, 14:30 Nikant Kamat, @.***> wrote:

if u have any other way of communication please

— Reply to this email directly, view it on GitHub https://github.com/SGFGOV/medusa-payment-razorpay/issues/5#issuecomment-1552753011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHBTMTSGBWOHGSNHVSTXGXQJVANCNFSM6AAAAAAYDTEK7M . You are receiving this because you commented.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.   

SGFGOV commented 1 year ago

Discord govdiw

On Thu, 18 May, 2023, 14:42 Govind Diwakar, < @.***> wrote:

Discord

On Thu, 18 May, 2023, 14:30 Nikant Kamat, @.***> wrote:

if u have any other way of communication please

— Reply to this email directly, view it on GitHub https://github.com/SGFGOV/medusa-payment-razorpay/issues/5#issuecomment-1552753011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHBTMTSGBWOHGSNHVSTXGXQJVANCNFSM6AAAAAAYDTEK7M . You are receiving this because you commented.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.