-
Notifications
You must be signed in to change notification settings - Fork 107
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
getting error undefined | undefined while calling RazorpayCheckout.open(options) #121
Comments
Hey @rajkishoreandia are you getting the callback? can you please verify with the sample app on this repo? |
closing due to inactivity. |
Hi @iThink32 |
@Suryanandsingh we do not support expo , please go through our readme. |
Thanks @iThink32 |
@iThink32 can you give me any idea how to connect razorpay python/django back-end with react native front-end using expo? |
@Suryanandsingh well here's a link I found as of now , will let you know if I find something better https://forums.expo.io/t/python-and-expo-integration/3976 |
@iThink32 thanks to given me this information but i am asking have you any idea to create checkout form with react native using expo?because I am using django for back-end and react native for front-end using expo. And I mostly want to use razorpay for payment gateway. |
@Suryanandsingh from expo there is currently no way I can help you as of now , you might have to use our backend integrations to get Razorpay set up and invoke it via a https request |
@iThink32 Please can you give me any idea how to invoke it via a https request? |
@Suryanandsingh well this is something you have to look into , for a heads up I found this link I meant use our available web integrations to set razorpay up on your backend and then communicate between your backend and the app by using https requests. |
@iThink32 We are facing the same issue in iOS and we are not using expo. We are using package version 2.1.31. Please note it was working fine for us and this started appearing all of a sudden without any changes to the checkout code. |
@bijuC1983 Can you please push your code to GitHub so that we can check? |
hi @bijuC1983 , Same issue here. Have you solved the issue? |
Still facing the issue with 2.1.33, Need to reopen the issue |
@akhilsanker any update? I'm facing the Error: undefined | undefined, and on console "open" is undefined. So if you had solve the issue. kindly help me as well. |
Its 1st Jan 2024 and i'm still getting error with expo. in README.md file they mentioned that this package support Expo then why its not opening payment window. |
@gxanshu @Akulvarshney
This fixed the issue for me. Could you please try these in order and see if it works? |
Thanks @vivek0079 it works for me too. but razorpay disabled my account 😑 so no need for it anymore. |
Pay=() => {
let options = {
description: 'Credits towards consultation',
image: 'https://i.imgur.com/3g7nmJC.png',
currency: 'INR',
key: 'my_test_key',
amount: '5000',
name: 'foo',
prefill: {
email: '[email protected]',
contact: '9191919191',
name: 'Razorpay Software'
},
theme: {color: '#F37254'}
}
console.log(options)
RazorpayCheckout.open(options).then((data) => {
console.log('inside data')
// handle success
alert(
Success: ${data.razorpay_payment_id}
);}).catch((error) => {
// handle failure
console.log('inside failure')
console.log('error : '+error.code)
console.log('description : '+error.description)
}
The text was updated successfully, but these errors were encountered: