Skip to content

Commit

Permalink
fixed according comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 committed Jul 1, 2022
1 parent 6239273 commit 14a6957
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documents/card.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ client.registration_link.create({

| Name | Type | Description |
|-----------------|---------|------------------------------------------------------------------------------|
| customer | object | Details of the customer to whom the registration link will be sent. |
| type* | string | the value is `link`. |
| customer | object | All keys listed [here](https://razorpay.com/docs/api/recurring-payments/cards/authorization-transaction/#121-create-a-registration-link) are supported |
| amount* | integer | The amount to be captured (should be equal to the authorized amount, in paise) |
| currency* | string | The currency of the payment (defaults to INR) |
| description* | string | A brief description of the payment. |
Expand Down Expand Up @@ -535,6 +534,7 @@ client.card.fetch(cardId)
|-----------------|---------|------------------------------------------------------------------------------|
| cardId* | string | card id to be fetched |

**Response:**
```json
{
"id": "card_JXPULjlKqC5j0i",
Expand Down
29 changes: 29 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import razorpay
import requests
from pprint import pprint
import json

client = razorpay.Client(auth=("rzp_test_k6uL897VPBz20q", "EnLs21M47BllR3X8PSFtjtbd"))

data = {"customer_id":"cust_JnFmpXS63vWgYJ"}

#x = client.addon.delete("ao_JniYt836HF7aQm")

x = client.transfer.all({
'expand[]':'recipient_settlement'
})

print(json.dumps(x))

# def delete(self, addon_id, data={}, **kwargs):
# """
# Delete addon for given id

# Args:
# addon_id : Id for which addon object has to be deleted
# """
# url = '{}/{}'.format(self.base_url, addon_id)

# return self.delete_url(url, data, **kwargs)
# "please check response error_code , error_desc , tax and other are missing
# tested with account va_JccSJQQoGOBi2q"

0 comments on commit 14a6957

Please sign in to comment.