src/px_payload.c
static int digest_payload(const risk_payload *payload, request_context *ctx, const char *payload_key, const char **signing_fields, char *buffer, int buffer_len) {
    if (ctx->px_payload_version == 3) {
        return digest_payload3(payload, ctx, payload_key, signing_fields, buffer, buffer_len);
    }
    return digest_payload1(payload, ctx, payload_key, signing_fields, buffer, buffer_len);
}
// create digest for payload, return 1 for success or 0 if an error occurred.
create digest for payload, return 1 for success or 0 if an error occurred.
create digest for payload return 1 for success or 0 if an error occurred .
static int digest_payload(const risk_payload *payload, request_context *ctx, const char *payload_key, const char **signing_fields, char *buffer, int buffer_len) {
    if (ctx->px_payload_version == 3) {
        return digest_payload3(payload, ctx, payload_key, signing_fields, buffer, buffer_len);
    }
    return digest_payload1(payload, ctx, payload_key, signing_fields, buffer, buffer_len);
}
static int digest_payload ( const risk_payload * payload , request_context * ctx , const char * payload_key , const char * * signing_fields , char * buffer , int buffer_len ) { if ( ctx -> px_payload_version == 3 ) { return digest_payload3 ( payload , ctx , payload_key , signing_fields , buffer , buffer_len ) ; } return digest_payload1 ( payload , ctx , payload_key , signing_fields , buffer , buffer_len ) ; }
create digest for payload, return 1 for success or 0 if an error occurred.
create digest for payload return 1 for success or 0 if an error occurred .