razorpay / react-native-razorpay

React Native wrapper for Razorpay's mobile SDKs
https://www.npmjs.com/package/react-native-razorpay
MIT License
121 stars 107 forks source link

FRAMEWORK not required #401

Closed CHANDRAMOHANnegi closed 2 years ago

CHANDRAMOHANnegi commented 2 years ago

{ "error": { "code": "BAD_REQUEST_ERROR", "description": "FRAMEWORK is\/are not required and should not be sent", "source": "provider", "step": "payment_authorization", "reason": "extra_field_sent", "metadata": {} }, "http_status_code": 400 }

"react-native-customui": "^2.2.0",
"react-native": "0.67.4",
"react": "17.0.2",
vivekshindhe commented 2 years ago

@CHANDRAMOHANnegi can you specify the version of react-native-razorpay you are using?

CHANDRAMOHANnegi commented 2 years ago

@CHANDRAMOHANnegi can you specify the version of react-native-razorpay you are using?

"react-native-customui": "^2.2.0", "react-native": "0.67.4", "react": "17.0.2",

vivekshindhe commented 2 years ago

which payment method is this happening for? @CHANDRAMOHANnegi

CHANDRAMOHANnegi commented 2 years ago
Screenshot 2022-04-13 at 1 47 39 PM
CHANDRAMOHANnegi commented 2 years ago

which payment method is this happening for? @CHANDRAMOHANnegi

"All payment methods"

Razorpay.open({})

this method is giving error

if we comment below line in node_modules/react-native-customui/Razorpay.js , it is working fine

options['FRAMEWORK'] = "react_native"

vivekshindhe commented 2 years ago

@CHANDRAMOHANnegi you can use that for now. We'll make a fix for this by tomorrow. It'd be great if you can wait till tomorrow though. Will update here when done.

CHANDRAMOHANnegi commented 2 years ago

@CHANDRAMOHANnegi you can use that for now. We'll make a fix for this by tomorrow. It'd be great if you can wait till tomorrow though. Will update here when done.

This issue is with other versions also , changes are not backward compatible. existing users are getting affected heavily.

vivekshindhe commented 2 years ago

This was released with 2.2.0. It should not affect existing users.

CHANDRAMOHANnegi commented 2 years ago

it is affecting other version also

v2.1.8 ,v2.1.9

we are facing this issue from 8th april.

vivekshindhe commented 2 years ago

was it released with the caret symbol? ^2.1.9? I'm guessing it picked 2.2.0 when it was built. We've identified the issue. Will update this by EOD today.

CHANDRAMOHANnegi commented 2 years ago

was it released with the caret symbol? ^2.1.9? I'm guessing it picked 2.2.0 when it was built. We've identified the issue. Will update this by EOD today.

yes

"react-native-customui": "^2.1.9",
vivekshindhe commented 2 years ago

@CHANDRAMOHANnegi please use version 2.2.1. This has been resolved.

shubhambuccha commented 2 years ago

Can't we handle this on the API end? Else will have to make a new release to the playstore.

Please look into it.

vivekshindhe commented 2 years ago

@shubhambuccha Will look into it. But it doesn't seem feasible at the moment. Will update here if i find anything