razorpay / razorpay-ruby

Razorpay Ruby SDK
https://rubygems.org/gems/razorpay
MIT License
64 stars 59 forks source link

update payment & unit test cases #129

Closed ankitdas13 closed 2 years ago

ankitdas13 commented 2 years ago

command for runnning api from sdk folder : bundle exec ruby test.rb command for runnning testing : bundle exec rake test

Reference :

for createRecurringPayment :https://github.com/razorpay/razorpay-node/blob/master/documents/emandate.md#create-a-recurring-payment Link : https://razorpay.com/docs/api/recurring-payments/paper-nach/subsequent-payments/#32-create-a-recurring-payment

for createJsonPayment : https://github.com/razorpay/razorpay-php/blob/master/documents/payment.md#create-payment-json Link : https://razorpay.com/docs/payments/payment-gateway/s2s-integration/payment-methods/#next-steps check above Next Step in doc

for fetchPaymentDowntime : https://github.com/razorpay/razorpay-php/blob/master/documents/payment.md#fetch-payment-downtime-details Link : https://razorpay.com/docs/api/payments/downtime/#fetch-payment-downtime-details

for fetchPaymentDowntimeById : https://github.com/razorpay/razorpay-php/blob/master/documents/payment.md#fetch-payment-downtime Link : https://razorpay.com/docs/api/payments/downtime/#fetch-payment-downtime-details-by-id

for fetchCardDetails : https://github.com/razorpay/razorpay-php/blob/master/documents/card.md#fetch-card

for fetchTransfer : https://github.com/razorpay/razorpay-php/blob/master/documents/transfer.md#fetch-transfer-for-a-payment Link : https://razorpay.com/docs/api/payments/route/#fetch-transfers-for-a-payment

for fetchRefund : https://github.com/razorpay/razorpay-php/blob/master/documents/refund.md#fetch-a-specific-refund-for-a-payment Link : https://razorpay.com/docs/api/refunds/#fetch-a-specific-refund-for-a-payment

for fetchMultipleRefund : https://github.com/razorpay/razorpay-php/blob/master/documents/refund.md#fetch-multiple-refunds-for-a-payment Link : https://razorpay.com/docs/api/refunds/#fetch-multiple-refunds-for-a-payment

for transfer : https://github.com/razorpay/razorpay-php/blob/master/documents/transfer.md#transfers Link : https://razorpay.com/docs/api/payments/route/#create-transfers-from-payments

for edit : https://github.com/razorpay/razorpay-php/blob/master/documents/payment.md#update-a-payment link : https://razorpay.com/docs/api/payments/#update-the-payment