Payfort 签名不匹配
Payfort Signature mismatch
我有这个请求正文来生成报告:
{
"from_date":"2020-06-17T00:00:01+03:00",
"to_date":"2020-06-18T10:59:59+03:00",
"signature":"df4c2bbbd5dd044036e11f26845a170b93249fd657339bf88b59b6340e2f****",
"merchant_identifier":"gGRRR***",
"merchant_reference":"1592472727964",
"columns":["amount","card_number"],
"query_command":"GENERATE_REPORT",
"access_code":"VYqRIJEhOHNFgDMbu***"
}
在签名之前我有我的签名:
MYPASSaccess_code=VYqRIJEhOHNFgDMbu***columns=[amount,card_number]from_date=2020-06-17T00:00:01+03:00merchant_identifier=gGRRR***merchant_reference=1592472727964query_command=GENERATE_REPORTto_date=2020-06-18T10:59:59+03:00MYPASS
所以它的 Hash256 = df4c2bbbd5dd044036e11f26845a170b93249fd657339bf88b59b6340e2f****
但我在响应中收到的哈希是:
1b3d301ff248ec0848eeb1376f4b4344e648cba60f18c63dcc9e939d6c83****
我做错了什么?可能与 date?
有关
到目前为止:我在文档中发现 important note:
NOTE!
In the columns parameter; you should:
Open brackets.
Put a “comma” then a “space” between the columns value.
Example: columns=[acquirer_name, authorization_code, amount, bin_number]
In
the filters parameter; you should:
- Open brackets.
- Then open a curly brackets.
- Write the “key”
- Put a “comma” then a “space.
- Write the “value” of the key.
payfort 文档中谈到生成你的签名在下面link你可以看到它
我有这个请求正文来生成报告:
{
"from_date":"2020-06-17T00:00:01+03:00",
"to_date":"2020-06-18T10:59:59+03:00",
"signature":"df4c2bbbd5dd044036e11f26845a170b93249fd657339bf88b59b6340e2f****",
"merchant_identifier":"gGRRR***",
"merchant_reference":"1592472727964",
"columns":["amount","card_number"],
"query_command":"GENERATE_REPORT",
"access_code":"VYqRIJEhOHNFgDMbu***"
}
在签名之前我有我的签名:
MYPASSaccess_code=VYqRIJEhOHNFgDMbu***columns=[amount,card_number]from_date=2020-06-17T00:00:01+03:00merchant_identifier=gGRRR***merchant_reference=1592472727964query_command=GENERATE_REPORTto_date=2020-06-18T10:59:59+03:00MYPASS
所以它的 Hash256 = df4c2bbbd5dd044036e11f26845a170b93249fd657339bf88b59b6340e2f****
但我在响应中收到的哈希是:
1b3d301ff248ec0848eeb1376f4b4344e648cba60f18c63dcc9e939d6c83****
我做错了什么?可能与 date?
有关到目前为止:我在文档中发现 important note:
NOTE!
In the columns parameter; you should:
Open brackets.
Put a “comma” then a “space” between the columns value.
Example: columns=[acquirer_name, authorization_code, amount, bin_number]
In the filters parameter; you should:
- Open brackets.
- Then open a curly brackets.
- Write the “key”
- Put a “comma” then a “space.
- Write the “value” of the key.
payfort 文档中谈到生成你的签名在下面link你可以看到它