Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added razorpay_subscription_id on success handler args #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kunalkeshan
Copy link

@kunalkeshan kunalkeshan commented Oct 1, 2023

Updated with reference to changes in

Success Handler for Authorisation Transaction

image

Added the field - razorpay_subscription_id as a return type for the same function args.

Optional Parameters Updated

As per the Razorpay documentation, some parameters are now optional based on the transaction type. The order_id and amount fields are not always required, depending on the specific transaction. This enhancement allows for more flexibility and customization when using the Razorpay API.

Reference: https://razorpay.com/docs/api/payments/subscriptions/#authentication-transaction

image

interface RazorpayOptions {
    ...
   key: string;
   amount?: string;
   currency?: string;
   name?: string;
   order_id?: string;
   ...
}

This update provides developers with more control and adaptability in their interactions with the Razorpay API.

Thanks! If any issue with this PR let me know if I've done anything wrong, happy to hear your thoughts on it.

@kunalkeshan kunalkeshan marked this pull request as draft October 1, 2023 13:03
@kunalkeshan kunalkeshan marked this pull request as ready for review October 1, 2023 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants