Skip to content

[Feature]: [PHP] I need an option to fetch payment detail using locally generated order_id #405

Description

@anuragk098

🚀 Feature Proposal

Hi Everyone,

I have been using RazorPay for a long time, but recently we made some changes on our website due to which I need to fetch and verify a payment status later using locally stored data.

RazorPay already has these options to fetch the status, but with their generated IDs (orderid or paymentid).
What I need is to check the status using my locally produced Order_ID, which I generate and store in the database to match the payment with the customer.

All other Payment Gateways already have this feature, where they accept a parameter from you to process the payment.

Suggested Solution

I already passed a locally generated Order_IDs in the notes section because RazorPay does not have any option to send and receive a custom parameter.
If you can allow a custom parameter to pass and return in response, then use it with the fetch function/class.

Alternatives

No response

Additional Information

Need this feature because sometimes a user makes a payment and drops the session without redirection.
In this situation, we do not get any response, and even after a successful payment, the order does not get created locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions