• Resolved johnbautista

    (@johnkbautista)


    Hi All, has anyone experienced a UNPROCESSABLE_ENTITY CANNOT_BE_NEGATIVE error when checking out with Paypal? Our site has been using TeraWallet with WooCommerce PayPal Payments and before the latter’s update last week, all has been working as expeted.

    Now it seems to us that there’s incompatibility between the two plugins. We’re in limbo because we can’t seem to figure out which author should we contact to get some help. It’s worth noting that whatever’s the balance of the wallet, is the same negative value that PayPal is complaining about.

    Finally, our PayPal contact told us that the developer of the plugin should amend their code to add a new discount property to indicate the discount from the wallet (and perhaps for any discounts a coupon might apply). Here’s the sample payload – notice the discount property.

    purchase_units: [
     {
             description: "Coffee Things",
             amount: {
           currency_code: "USD",
           value: "13.00",
             breakdown: {
                item_total: {
                                       currency_code: "USD",
                                       value: "15.00"
                },
                shipping: {
                                       currency_code: "USD",
                                       value: "2.00"
                },
                              tax_total: {
                                       currency_code: "USD",
                                       value: "1.00"
                 },  
                              discount: {
                                       currency_code: "USD",
                                       value: "5.00"
                              }
                     }
          },

    We will appreciate any help that you could provide.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘CANNOT_BE_NEGATIVE Error When Paying with Paypal’ is closed to new replies.