Skip to content

Releases: razorpay/razorpay-python

1.0.1

28 Jul 08:05

Choose a tag to compare

Added

  • Adds support for setting application details in the user-agent header.

App Details

After setting up client, you can set your app details before making any request
to Razorpay using the following:

client.set_app_details({"title" : "<YOUR_APP_TITLE>", "version" : "<YOUR_APP_VERSION>"})

For example, you can set the title to Django and version to 1.8.17. Please ensure
that both app title and version are strings.

1.0.0

10 Mar 07:18

Choose a tag to compare

Added

  • Added Support For Signature Validation
  • Added Client for Card, Customer, Token
  • Now Sdk throws BadRequestError, GatewayError, ServerError, SignatureVerificationError depending on error occurred
  • Supports Notes for Order and Refund, and line items in Invoices

Changed

  • Refund Can be fetched by just refund id, previously it needed payment id also
  • Test Coverage Increased to 100%
  • Deprecated fetch_all in favor of all
  • Take params in a dictionary instead of key/value pair

Upgrade Notes

  • Deprecated fetch_all, instead use all
  • Fetching refund Doesn't require payment_id
  # v0.X
  client.refund.fetch("<PAYMENT_ID>", "<REFUND_ID>")
  
  # v1.0.0
  client.refund.fetch("<REFUND_ID>")
  • Fetching all payment for order
  # v0.X
  client.order.fetch_all_payments("<ORDER_ID>")
  
  # v1.0.0
  client.order.payments("<ORDER_ID>")
  • Utility class can be used to verify signatures received from Razorpay
    • Payment response verification
      params_dict should have razorpay_order_id, razorpay_payment_id, razorpay_signature
      which are received after payment callback
 client.utility.verify_payment_signature(params_dict)

You can find more details at the Orders API Documentation

  • Webhook verification
 client.utility.verify_webhook_signature(webhook_signature, webhook_body)

v0.1.2

19 Dec 13:04

Choose a tag to compare

This release fixes the python packaging issues.