peterzog

Missing message from decline callback

0 votes

Any thoughts on why message is null? I entered text on the decline to sign.  I received the decline event notification.

Event:

11:05:02:031 USER_DEBUG [16]|DEBUG|ossCallback: OSSCallback:[documentId=null, message=, name=PACKAGE_DECLINE, packageId=z8dM5486HxkamDPcX9kZ6x6Ma0A=, sessionUser=c1d15155-6ddd-4c5a-881a-e2d0f1cb5cc0]

This is my rest resource class: 

@RestResource(urlMapping='/oss/callback')
global with sharing class OSSCallbackResource {
    @HttpPost
    global static void callback() {
        OSSCallback ossCallback = (OSSCallback)JSON.deserialize(RestContext.request.requestbody.tostring(), OSSCallback.class);
                
        OneSpan_Event__e platformEvent = new OneSpan_Event__e(
            Name__c = ossCallback.name,
            Package_ID__c = ossCallback.packageId,
            Session_User__c = ossCallback.sessionUser,
            Document_ID__c = ossCallback.documentId,
            Message__c = ossCallback.message
        );
        
        EventBus.publish(new List<OneSpan_Event__e>{platformEvent});
        System.debug('ossCallback: ' + ossCallback);
    }
    
    global class OSSCallback {
        global String name;
        global string sessionUser;
        global String packageId;
        global string message;
        global String documentId;
    }
}


Reply to: Missing message from decline callback

0 votes

Hi Peter,

 

I can reproduce the same - below is an example payload that I captured where the message appears as an empty string:

{"name":"PACKAGE_DECLINE","sessionUser":"a221ee1c-e69c-436c-9036-4aa5c7d4f9d0","packageId":"xyJEta8OeU_TiCD_djE3BvBwNqk=","message":"","documentId":null,"createdDate":"2022-06-01T17:10:00.602Z"}

If you already have a support ticket opened, please provide our findings there, otherwise I'd also like to file one on your behalf.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Missing message from decline callback

0 votes

I created a support case: Case number: CS0100354

Thank you for looking into it!

Peter


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off