Skip to content
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

Multiple razorpay.Client with different keys #288

Open
zehawki opened this issue Dec 18, 2024 · 0 comments
Open

Multiple razorpay.Client with different keys #288

zehawki opened this issue Dec 18, 2024 · 0 comments

Comments

@zehawki
Copy link

zehawki commented Dec 18, 2024

wrt https://github.com/razorpay/razorpay-python?tab=readme-ov-file#usage

We use different keys for different purposes / customers etc etc.

We don't cache the client object created using client = razorpay.Client(auth=(keyX, secretX)). We create a new one every time processing starts, eg create or verify, and its immediately consumed in the call, eg client.order.create(data=data), or client.utility.verify_payment_signature(verify_params)

Is there any issue in having multiple clients created with different keys like this? Obviously this is quite normal at the API, so my question is regarding the SDK internals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant