razorpay / razorpay-python

Razorpay Python SDK
https://pypi.python.org/pypi/razorpay
MIT License
153 stars 81 forks source link

Razorpay Payment Link #184

Closed moonlightCoder2002 closed 1 year ago

moonlightCoder2002 commented 2 years ago

Hi, I am trying to make razorpay payment link using API in django but cannot do so because client cannot recognise the payment_link function. I am getting the below error while creating the payment link:-

'Client' object has no attribute 'payment_link'

Kindly look into the matter.

rohitsangwan01 commented 2 years ago

@moonlightCoder2002 try this

client.invoice.create(data={ "customer": { "name": "Test", "email": "test@gmail.com", "contact": "12345" }, "type": "link", "view_less": 1, "amount": 100, "currency": "INR", "description": "Payment link for Testing", })

this function will sned payment link to email + contact

moonlightCoder2002 commented 2 years ago

@rohitsangwan01 I have already implemented this method but I was wondering why isn't the method specific to payment link working. I wanted to use payment_link method because it is specific to my work. I guess razorpay team hasn't yet updated it. Anyways, thanks for your help.

sid10on10 commented 2 years ago

@rohitsangwan01 It has been implemented in the SDK you can create a payment link using client.payment_link.create @kkyusufk @ankitdas13 we can close this issue along with https://github.com/razorpay/razorpay-python/issues/152

ankitdas13 commented 1 year ago

Closing this issue because it has already been implemented in one of recent releases