Paypal付款问题 [英] Paypal payment issue

查看:136
本文介绍了Paypal付款问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用paypal支付网关,但在运行代码时出错,任何一个请帮我解决这个问题。





HI i am using paypal payment gateway but getting error while running the code , any one pls help me out of this .


System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.







private static string GetAccessToken()
        {
            var config = ConfigManager.Instance.GetProperties();
            var accessToken = new OAuthTokenCredential(config).GetAccessToken();
            return accessToken;
        }










In

GetAccessToken

我在第2行的错误中获得错误。



我尝试过:



i我也在我的应用程序中添加ssl

i am getting error on line no 2 for accesstoken.

What I have tried:

i am also add ssl in my application

推荐答案

我们无法解决这个问题:我们无法在相同的情况下运行您的代码你可以,还有你的数据。



所以,它取决于你。

幸运的是,你有一个可用的工具你将帮助你找出发生了什么:调试器。你如何使用它取决于你的编译器系统,但是一个快速的谷歌用于你的IDE名称和调试器应该给你你需要的信息。



放一个断点在函数的第一行,并通过调试器运行代码。然后查看您的代码,并查看您的数据并找出手动应该发生的事情。然后单步执行每一行检查您预期发生的情况正是如此。如果不是,那就是当你遇到问题时,你可以回溯(或者再次运行并仔细观察)以找出原因。


对不起,但是我们不能为你做到这一点 - 时间让你学习一门新的(非常非常有用的)技能:调试!



和除此之外:

永远不要接受来自不安全网站的代码来处理与真钱有关的任何事情。

你不知道是谁给你的代码,你不知道它做了什么,你不知道它将钱正确地放入适当的帐户,而不将细节传递给任何第三方。



只从paypal本身获取此类代码 - 否则欺诈的范围太大。请记住,如果您的行为被视为疏忽,您本人可能要对任何损失承担责任 - 从公共论坛获取您的代码肯定会是!
We can't fix that for you: we can't run your code under the same circumstances you can, and with your data.

So, its going to be up to you.
Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. How you use it depends on your compiler system, but a quick Google for the name of your IDE and "debugger" should give you the info you need.

Put a breakpoint on the first line in the function, and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.

Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!

And besides:
Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from paypal themselves - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!


这篇关于Paypal付款问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆