PayPal REST API .net SDK - 400 Bad Requests

后端 未结 8 1632
庸人自扰
庸人自扰 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:56

    If you are using a globalization outside the US you need to convert your decimals to a InvariantCulture:

    order.GetTotal().ToString("N2", CultureInfo.InvariantCulture)
    

提交回复
热议问题