Reply
Highlighted
Member
Posts: 6
Registered: ‎03-24-2020

Basic guide to test webhooks in sandbox live env?

hi all,

 

I've doing authrorize.net integration into a website and im having a issue when testing a webhook,

I switch sandbox mode to LIVE

 

I've setup a webhook with http://webhookinbox.com/ and did some payments through Accept hosted form, Success repose came with  Transaction ID :0

but my webhooks never hits, appreciate if someone help me with this, please?

here is my backend code(token generation

var AuthorizeDotNetloginId = (await _paymentSettingService.GetAuthorizeDotNetLoginId()).Value;
var AuthorizeDotNetTransactionKey = (await _paymentSettingService.GetAuthorizeDotNetTransactionKey()).Value;
var currency = "USD";

var authorizeDotNetScript = string.Empty;

ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
authorizeDotNetScript = "https://jstest.authorize.net/v3/AcceptUI.js";


 ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
    {
        name = AuthorizeDotNetloginId,
        ItemElementName = ItemChoiceType.transactionKey,
        Item = AuthorizeDotNetTransactionKey,
    };

),




thanks

Highlighted
Administrator
Posts: 132
Registered: ‎11-29-2017

Re: Basic guide to test webhooks in sandbox live env?

From your description (transaction id = 0), it sounds like you are still sending the transaction in test mode. In test mode, no webhooks are generated.

 

Test mode can be enabled at either or both the account level and the transaction level, so check your account settings and the transaction request log to find where it is being set.

Highlighted
Member
Posts: 6
Registered: ‎03-24-2020

Re: Basic guide to test webhooks in sandbox live env?

can you tell me other than sandbox dashboard, where else we set the test/live mode please?