pypi razorpay 1.0.0

latest releases: 1.3.0, 1.2.0, 1.1.1...
7 years ago

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)

Don't miss a new razorpay release

NewReleases is sending notifications on new releases.