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

前端 未结 3 1500
北海茫月
北海茫月 2021-01-18 20:54

There are a lot of posts about this error, but they all not apply on me. I really don\'t understand why the amounts wouldn\'t match. I have ITEMAMT which matches AMT0 * QTY0

3条回答
  •  無奈伤痛
    2021-01-18 21:11

    The answer to my question is probably not helpful to most of you passing by. But one of my items contained an & in the description (L_PAYMENTREQUEST_0_DESC0). '&' escaped the data passed through with CURL. And that created the error (which is totally off). Remember that this will also happen when you put in any characters that will contain an & when the URL is being encoded e.g. é will become é

    I apologize for removing the item description from my first post, but i had no idea this had something to do with it, due to the error message about amounts.

提交回复
热议问题