PayPal REST API .net SDK - 400 Bad Requests

后端 未结 8 1633
庸人自扰
庸人自扰 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条回答
  •  萌比男神i
    2021-02-13 13:50

    Improving the solution here is... Simply (Imports PayPal)

        Try
        Catch ex As PaymentsException
            For Each i In ex.Details.details
                Response.Write(i.field) 'Name of Field
                Response.Write(i.code) 'Code If Any
                Response.Write(i.issue) 'Validation Issue
            Next
        End Try
    

提交回复
热议问题