setExpressCheckout and SSL/TLS error

前端 未结 4 1692
暗喜
暗喜 2021-02-14 02:35

I\'m trying to develop a simple application that will enable users to purchase services off a website through the Paypal API. This application is running on ASP.NET with C#.

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-14 03:12

    Thanks a lot that really helps me.

    For reference here is my code for establishing the interface in VB.NET

      'Create a service Binding in code
                                Dim ppEndpointAddress As New System.ServiceModel.EndpointAddress("https://api-3t.sandbox.paypal.com/2.0/")
                                Dim ppBinding As New System.ServiceModel.BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.Transport)
    
                                Dim ppIface As New PayPalAPI.PayPalAPIAAInterfaceClient(ppBinding, ppEndpointAddress)
    
                                Dim ppPaymentReq As New PayPalAPI.DoDirectPaymentReq()
    
                                ppPaymentReq.DoDirectPaymentRequest = ppRequest
    

提交回复
热议问题