PayPal REST API .net SDK - 400 Bad Requests

后端 未结 8 1432
庸人自扰
庸人自扰 2021-02-13 12:57

I\'m working in the sandbox and using the PayPal REST .net SDK method Payment.Create with a CreditCard object. When all parameters are valid and using the test CC number from h

8条回答
  •  攒了一身酷
    2021-02-13 13:54

    My problem was that my total, detail.subtotal, and items.price were passing in values like $1,000.00 and it needs decimal so use something like:

    total = Regex.Replace(model.OrderTotal, "[^0-9.]", "")
    

提交回复
热议问题