Salesforce 3045:缺少货币字段

Salesforce 3045:缺少货币字段,salesforce,opayo,Salesforce,Opayo,我在salesforce与的集成中遇到以下错误。我用的是‘AES128’算法 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

我在salesforce与的集成中遇到以下错误。我用的是‘AES128’算法

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加密算法

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);

提前谢谢。

您检查过填充物是PCKS 5吗?加密错误时,首先出现错误3045(货币)…

是,填充为PCKS#5。我的加密密码也是正确的。我检查了三遍。。