S2s API payload escape symbol in string is removed

send data:

{“payment_method_name”:“Visa / MasterCard”}

but when handle the data, the \ in the value is missing.

is it possible to get the original string of payload. we need to use it to verify signature. any small change will fail it.

Hello @mengxin,

I’m not sure I understand the problem, can you provide a more concrete example please?

we need provide webhook api to 3rd service,

the 3rd service invoke the s2s api and the body json is

{“payment_method_name”:“Visa \/ MasterCard”}

after i receive the it as payload in s2s RPC, i use the JSON.parse and JSON.stringly, then the \ is missing, the body become

{“payment_method_name”:“Visa / MasterCard”}

as we need to use the body to verify signature, then the verify always fail.

my current temp solution is hard replace / → / after get the body, but seem like not perfect, is there any way we can get pure origin HTTP body or any way can easy handle this escape symbol in body?