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

error: `order_id` is mandatory on medusa-payment-razorpay 7.24 #25

Open shubham399 opened 3 months ago

shubham399 commented 3 months ago
warn:    received payment data from session not order data
error:   `order_id` is mandatory
Error: `order_id` is mandatory
    at Object.fetch (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/razorpay/dist/resources/orders.js:55:15)
    at RazorpayProviderService.<anonymous> (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:153:68)
    at step (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:59:23)
    at Object.next (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:40:53)
    at /private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:34:71
    at new Promise (<anonymous>)
    at __awaiter (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:30:12)
    at RazorpayBase.getPaymentStatus (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:136:16)
    at RazorpayProviderService.<anonymous> (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:514:55)
    at step (/private/var/folders/nm/k0dxvggn2qj1gbdbtt5p30l80000gn/T/tmp.enwDy6jKrc/my-medusa-store/node_modules/medusa-payment-razorpay/dist/core/razorpay-base.js:59:23)
shubham399 commented 3 months ago

While trying with Netbanking payment in TEST Mode.

And

Error: Invalid Parameters: Please give request body,signature sent in X-Razorpay-Signature header and webhook secret from dashboard as parameters
    at validateWebhookSignature
When trying with CARD
abhinav-arya-innovation commented 1 month ago

i have been facing this issue and its a pain....medusa contributors should do something about this bug...