Closed rahulsingh81 closed 1 year ago
What is the sdk version you are using and what is the x-api-version ?
sdk version is "cashfree-pg-sdk-nodejs": "^2.0.2", and
x-api-version 22-09-01
Thanks @suhas-cashfree as a change the api version perfect work
payment session id is undefiend
paymentSessionId: undefined,
this code : const userId = request.user?.["_id"]; const { mobile, email, amount, name } = request.body; const customerDetails = new CFCustomerDetails(); customerDetails.customerId = userId; customerDetails.customerPhone = mobile; customerDetails.customerEmail = email; customerDetails.customerName = name; const orderTags = {}; orderTags["order_tag_01"] = "TESTING IT"; const cFOrderRequest = new CFOrderRequest(); cFOrderRequest.orderAmount = amount; cFOrderRequest.orderCurrency = "INR"; cFOrderRequest.customerDetails = customerDetails; cFOrderRequest.orderTags = orderTags;