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

Access Denied #373

Open
kirankumarmitnas opened this issue Mar 18, 2024 · 0 comments
Open

Access Denied #373

kirankumarmitnas opened this issue Mar 18, 2024 · 0 comments

Comments

@kirankumarmitnas
Copy link

Steps to reproduce the behavior

Screenshot 2024-03-18 165726

Expected behavior

webhook not created or edited

Actual behavior

webhook not created or edited

Code snippets

$webhookID='webhookid';
$accountID='account id';
$webHookProcessUrl='http://workingapp.com/index.php/razorpay/status/846db8b2598bd3db9f3285db17711e26';
$webhookSupportedEvents=array('payment.captured','order.paid','payment_link.paid');
$webHookSecretPost='07e7caf67b4142f44b09c7cc4fd9386f';
Create Webhook
=================
$api->account->fetch($accountID)->webhooks()->create(array(
"url" => $webHookProcessUrl,
"secret" => $webHookSecretPost,
"events" => $webhookSupportedEvents
));
For edit Webhook code
================
$api->account->fetch($transferAccountID)->webhooks()->edit($webhookID, array("url" => $webHookProcessUrl,"events" => $webhookSupportedEvents));

Php version

8.2

Library version

2.9.0

Additional Information

No response

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

No branches or pull requests

1 participant