Releases: razorpay/razorpay-php
Releases · razorpay/razorpay-php
2.0.2
Added
- Support for creating and fetching transfers
- Support for creating reversals on transfers
Note: Please download the razorpay-php.zip
file, instead of the source zips. The razorpay-php.zip
is pre-compiled to include all dependencies.
2.0.1
2.0.0
Added
- Support for custom Application header (
$api->setAppDetails($title, $version)
) - Support for card entity (
$card = $api->card->fetch($cardId)
) - Support for Webhook and Order Signature verification:
Razorpay\Api\Utility::verifyPaymentSignature(['razorpay_signature' => '', 'razorpay_order_id' => '', 'razorpay_payment_id' => ''])
throwsRazorpay\Errors\SignatureVerificationError
if fails - Support for direct refund creation via
Razorpay\Api\Refund::create()
:
$refund = $api->refund->create(array('payment_id' => $id))
- Support for Utility functions via
Razorpay\Api\Utility::verifyPaymentSignature
andRazorpay\Api\Utility::verifyWebhookSignature
:
verifyWebhookSignature($payload = '{requestbody}', $expectedSignature = 'X-Razorpay-Signature header')
throwsRazorpay\Errors\SignatureVerificationError
if signature doesn't match - Support for case insensitive error codes
- Support for 2xx HTTP status codes
Changed
Razorpay\Api\Payment::refunds()
now returns aRazorpay\Api\Collection
object instead ofRazorpay\Api\Refund
objectRazorpay\Api\Api::$baseUrl
,Razorpay\Api\Api::$key
andRazorpay\Api\Api::$secret
are now protected instead of public
Api::getKey()
andApi::getSecret()
are provided instead
1.2.9
1.2.8
1.2.7
[release] New release 1.2.6
Version bump.
1.2.5
1.2.4
Order Support
- Add support for Orders
Please download the razorpay-php.zip
file