错误:购物车商品总金额与订单金额不符

时间:2021-01-21 16:59:00

标签: php api paypal response

我对一项特定的贝宝付款有疑问。您可以在此处找到客户旅程的摘要:

  1. 添加了一项 5.59 英镑

  2. 应用的优惠券代码将总金额固定为 0.01 英镑。 总计:0.01 英镑

  3. 使用 paypal express 付款。

付款未通过,我收到此错误消息:

Error: The totals of the cart item amounts do not match order amounts

我在这里分解所有回复:

paypal_error: 'We were not able to complete your order at this time'

SUCCESSPAGEREDIRECTREQUESTED: 'false'
ACK: 'Success'
VERSION: '123.0'
L_ERRORCODE0: '10413'
L_SHORTMESSAGE0: 'Transaction refused because of an invalid argument. See additional error messages for details.'
L_LONGMESSAGE0: 'The totals of the cart item amounts do not match order amounts.'
L_SEVERITYCODE0: 'Error'
BILLINGAGREEMENTACCEPTEDSTATUS: '0'
CHECKOUTSTATUS: 'PaymentActionNotInitiated'

PAYERSTATUS: 'verified'

ADDRESSID: 'PayPal'
ADDRESSSTATUS: 'Confirmed'
CURRENCYCODE: 'GBP'
AMT: '0.01'
ITEMAMT: '0.01'
SHIPPINGAMT: '0.00'
HANDLINGAMT: '0.00'
TAXAMT: '0.01'
INSURANCEAMT: '0.00'
SHIPDISCAMT: '0.00'
INSURANCEOPTIONOFFERED: 'false'
L_NUMBER1: '/* coupon code writing here */'
L_QTY0: '1'
L_QTY1: '1'
L_TAXAMT0: '0.92'
L_TAXAMT1: '-0.91'
L_AMT0: '4.57'
L_AMT1: '-4.57'
PAYMENTREQUEST_0_CURRENCYCODE: 'GBP'
PAYMENTREQUEST_0_AMT: '0.01'
PAYMENTREQUEST_0_ITEMAMT: '0.01'
PAYMENTREQUEST_0_SHIPPINGAMT: '0.00'
PAYMENTREQUEST_0_HANDLINGAMT: '0.00'
PAYMENTREQUEST_0_TAXAMT: '0.01'
PAYMENTREQUEST_0_INSURANCEAMT: '0.00'
PAYMENTREQUEST_0_SHIPDISCAMT: '0.00'

PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED: 'false'
PAYMENTREQUEST_0_ADDRESSSTATUS: 'Confirmed'
L_PAYMENTREQUEST_0_NAME1: 'Coupon describtion writing here'
L_PAYMENTREQUEST_0_NUMBER1:'/* coupon code writing here */'
L_PAYMENTREQUEST_0_QTY0: '1'
L_PAYMENTREQUEST_0_QTY1: '1'
L_PAYMENTREQUEST_0_TAXAMT0: '0.92'
L_PAYMENTREQUEST_0_TAXAMT1: '-0.91'
L_PAYMENTREQUEST_0_AMT0: '4.57'
L_PAYMENTREQUEST_0_AMT1: '-4.57'
PAYMENTREQUESTINFO_0_ERRORCODE: '0'
payment_cost: '0.01'

有人解决问题吗?因为看起来计算是正确的,没有丢失参数。

1 个答案:

答案 0 :(得分:2)

PAYMENTREQUEST_0_ITEMAMT: '0.01'
PAYMENTREQUEST_0_SHIPPINGAMT: '0.00'
PAYMENTREQUEST_0_HANDLINGAMT: '0.00'
PAYMENTREQUEST_0_TAXAMT: '0.01'

这些不等于总PAYMENTREQUEST_0_AMT: '0.01'