我使用柑橘付款在iOS中使用信用卡付款。我已从我的服务器生成帐单,并使用商家交易ID,金额,请求签名,商家访问密钥,返回网址和通知网址创建了一个CTSBill。我然后将此传递给requestChargePayment方法,但是我收到错误无效的签名密钥。
let creditCard = CTSElectronicCardUpdate(creditCard: ())
creditCard.number = "5555555555554444" //test card
creditCard.expiryDate = "12/2017"
creditCard.scheme =
creditCard.ownerName = "Anna"
creditCard.cvv = 132 //Dummy one
let paymentInfo : CTSPaymentDetailUpdate = CTSPaymentDetailUpdate()
paymentInfo.addCard(creditCard)
PaymentUtil.sharedInstance.paymentLayer.requestChargePayment(paymentInfo, withContact: self.getContactInfo(), withAddress: self.getAddressInfo(), bill: bill, customParams: nil, returnViewController: self, withCompletionHandler: { (cashRes, error) -> Void in
//error
})
我在块中收到以下错误:
错误Domain = com.citrus.errorDomain Code = 383066336"签名密钥无效" UserInfo = 0x16b57490 {NSLocalizedDescription =无效的签名密钥}
相同的参数适用于Android,我已经验证了我一直在使用的按键,但不确定我做错了什么。