Skip to content

Commit

Permalink
Webhook - Added
Browse files Browse the repository at this point in the history
Now take benefit of late processed payment s, once they authorized by bank, 
pending orders will be processed  automatically by Razorpay webhoook.
  • Loading branch information
chandra-bhanu authored Sep 3, 2021
1 parent 38d0077 commit 28c873f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@ To get the payment info : status, razorpay_orderId, razorpay_paymentID
$additional=$order->payment->additional;
Will update it to synk to webhooks in next update

*WebHook*
webhook Url : <YOUR DOMAIN>/razorpay/payment/razorpay-hook

Create a DB table rzp_payment to handle webhooks: SQL statement is available on header of : packages/Neexpg/Razorpay/src/Models/RazorpayEvents.php
/*CREATE TABLE `rzp_payments` (
`id` int(11) NOT NULL,
`razorpay_event_id` varchar(50) DEFAULT NULL,
`razorpay_invoice_id` varchar(40) DEFAULT NULL,
`razorpay_order_id` varchar(80) DEFAULT NULL,
`razorpay_payment_id` varchar(40) DEFAULT NULL,
`razorpay_invoice_status` varchar(40) DEFAULT 'issued',
`razorpay_invoice_receipt` varchar(40) DEFAULT NULL,
`razorpay_signature` longtext,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;*/




*Note*
As I didn't got any free extention to integrate Razorpay in bagisto, created it in sheer need.
Use it as at your own risk, as it involves financial transaction, I don't bear any responsibility.
Expand Down

0 comments on commit 28c873f

Please sign in to comment.