【发布时间】:2016-07-05 23:11:16
【问题描述】:
我正在通过 Magento API 开发流程支付,但遇到了问题:
我创建了一个购物车,添加/更新/删除了产品,添加了运输方式,所有这些都是通过 Magento API 完成的,它们都运行良好。
如果我使用 CC Save(代码:ccsave)、支票/汇票(代码:checkmo)等付款方式,我可以为该购物车创建订单。
但是,如果我使用 Paypal Pro 付款方式,我在创建订单的步骤中遇到错误
(api:cart.order):未捕获的 SoapFault 异常:[1008] 信用卡号与信用卡类型不匹配。
而我调用apicart.info时的数据,也没有卡号,这里是cart.info返回的数据:
array(.... , ['payment'] => Array (25)| (| | ['payment_id'] = NULL(0) NULL| | ['quote_id'] = String(3) "868"| | ['created_at'] = String(19) "2012-03-28 03:12:21"| | ['updated_at'] = String(19) "2012-03-28 03:12:21"| | ['method'] = String(13) "paypal_direct"| | ['cc_type'] = String(2) "VI"| | ['cc_number_enc'] = NULL(0) NULL| | ['cc_last4'] = String(4) "1663"| | ['cc_cid_enc'] = NULL(0) NULL| | ['cc_owner'] = NULL(0) NULL| | ['cc_exp_month'] = String(1) "6"| | ['cc_exp_year'] = String(4) "2012"| | ['cc_ss_owner'] = NULL(0) NULL| | ['cc_ss_start_month'] = NULL(0) NULL| | ['cc_ss_start_year'] = NULL(0) NULL| | ['cybersource_token'] = String(0) ""| | ['paypal_correlation_id'] = NULL(0) NULL| | ['paypal_payer_id'] = NULL(0) NULL| | ['paypal_payer_status'] = NULL(0) NULL| | ['po_number'] = NULL(0) NULL| | ['ideal_issuer_id'] = NULL(0) NULL| | ['ideal_issuer_list'] = NULL(0) NULL| | ['additional_information'] => Array (0)| | (| | )| | ['additional_data'] = NULL(0) NULL| | ['cc_ss_issue'] = NULL(0) NULL| ))
我使用了有效的信用卡。
当我评论验证信用卡的代码时,我收到一个错误:
未捕获的 SoapFault 异常:[1008] PayPal 网关已拒绝请求。无法处理此交易。请输入有效的信用卡号和类型(#10527:无效数据)。似乎信用卡号没有传递给 paypal api 调用。
那么,谁能帮我找出这个问题?
感谢和最好的问候!
【问题讨论】: