首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >3045 :缺少Currency字段

3045 :缺少Currency字段
EN

Stack Overflow用户
提问于 2015-06-16 19:09:49
回答 1查看 102关注 0票数 0

我在salesforce与sagepay test environment的集成中遇到以下错误。我使用的是'AES128‘算法。

代码语言:javascript
复制
This transaction attempt has failed. We are unable to redirect you back to the web store from which you were purchasing. The details of the failure are given below.

Status: MALFORMED

Status Detail:  3045 : The Currency field is missing.

我的源系统是Salesforce。我们使用的是AES128加密算法。

代码语言:javascript
复制
Blob stringToEncrypt = Blob.valueOf('VendorTxCode=Vtest&Amount=10&Currency=GBP&Description=test description&SuccessURL=https://ap1.salesforce.com/a01&FailureURL=https://ap1.salesforce.com/a01&BillingSurname=Ravi&BillingFirstnames=test ravi&BillingAddress1=BillAddressLine1&BillingCity=Atlanta&BillingPostCode=30004&BillingCountry=US&DeliverySurname=test&DeliveryFirstnames=Fnames&DeliveryAddress1=test&DeliveryCity=Atlanta&DeliveryPostCode=3004&DeliveryCountry=US');

Blob cryptoKey = Blob.valueOf('key');
Blob encryption = Crypto.encrypt('AES128', cryptoKey, cryptoKey, stringToEncrypt);

提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2015-06-17 03:19:23

你检查过填充物是PCKS#5了吗?当加密错误时,首先会出现错误3045 (货币)...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30865934

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档