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

Store Razorpay order_id in WooCommerce order meta #178

Closed

Conversation

prathamesh-gharat
Copy link

Since the Razor pay API only allows users to reference orders using the Razor pay order_id it would be useful to retain the Razorpay order_id in WooCommerce for future reference. For example, in an order related automation / order sync process.

#176

Order Number is equal to Order ID by default but that might not always be the case.

Following code expects an Order ID and not an Order Number.
https://github.com/KDSPL/razorpay-woocommerce/blob/master/includes/razorpay-webhook.php#L158

Ref: https://docs.woocommerce.com/document/managing-orders/
> Order IDs are non-sequential as they use the default WordPress ID approach. For sequential order numbers, you can use Sequential Order Numbers Pro.
Since the Razor pay API only allows users to reference orders using the Razor pay order_id it would be useful to retain the Razorpay order_id in WooCommerce for future reference. For example, in an order related automation / order sync process.
@prathamesh-gharat
Copy link
Author

Accidentally added an older commit

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.

None yet

1 participant