【发布时间】:2021-01-02 12:57:50
【问题描述】:
Authorize.net 新生成的密钥在 woo commerce authorize.net 支付网关中不起作用。
我有一个 authorize.net 的旧密钥。效果很好,我测试了好几次。
但是当我从 authorize.net 帐户生成新的交易密钥和签名密钥并将其放在 WooCommerce authorize.net 设置中时。然后在 authorize.net 下订单,附上卡号、有效期和 cvp。它显示以下错误:
"Code: E00003, Message: The element 'getCustomerPaymentProfileRequest' in
namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child
element 'customerPaymentProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
List of possible elements expected: 'clientId, refId, customerProfileId'
in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
An error occurred, please try again or try an alternate form of payment.
【问题讨论】:
-
您使用新字段
customerPaymentProfileId调用端点,但服务器使用带有customerProfileId的旧字段。您需要更新元数据 -
v1 架构在第 3132 行包含两个属性:api.authorize.net/xml/v1/schema/AnetApiSchema.xsd
标签: php woocommerce e-commerce payment-gateway authorize.net