雄迈sdk使⽤⽰例_使⽤增强的API,⽰例代码和SDK⾃定义⽀
付解决⽅案
雄迈sdk 使⽤⽰例
As developers build sites for merchants, we know that payment processing capabilities are important. But it’s not always easy to set up a payment solution that is not only reliable and secure, but also flexible and tailored to each merchant’s specific needs.
当开发⼈员为商⼈建⽴站点时,我们知道付款处理功能很重要。 但是,建⽴⼀个不仅可靠,安全⽽且灵活且可针对每个商⼈的特定需求量⾝定制的⽀付解决⽅案并⾮总是容易的。
That’s why has enhanced its toolset for developers, offering a new, streamlined API, better sample code and SDKs, as well as a developer forum for support. The improvements make it easy for you to help your customers get paid — with security, flexibility and scalability. They also simplify PCI compliance and make meeting the requirements easier for merchants.
因此, 增强了针对开发⼈员的⼯具集,提供了新的简化的API,更好的⽰例代码和SDK,以及开发⼈员论坛以提供⽀持。 这些改进使您可以轻松地以安全性,灵活性和可伸缩性帮助您的客户获得报酬。 它们
还简化了PCI合规性,并使商家更容易满⾜要求。
Below, I’ll walk through the developer center, showing how you can use the improved tools to get your merchants’payment solutions up and running — with just a few lines of code. If you’d like a refresher on how credit card payments work, check out and keep the page open for reference as we go. Now, let’s get started:
下⾯,我将浏览开发⼈员中⼼,展⽰如何使⽤改进的⼯具,仅需⼏⾏代码即可启动并运⾏商⼈的⽀付解决⽅案。 如果您想复习信⽤卡付款的⼯作⽅式,请查看并在打开页⾯时随时参考。 现在,让我们开始:
( )
The Authorize.Net API makes it easy to create, capture, refund and void secure payment transactions. Offering both XML or JSON, the API works with our SDKs in six languages: PHP, C#, Java, Python, Ruby and Node.js.
Authorize.Net API使创建,捕获,退款和取消安全付款交易变得容易。 该API提供XML或JSON,可与我们的SDK结合使⽤六种语⾔:PHP,C#,Java,Python,Ruby和Node.js。
The streamlined API also has the bandwidth to accept payments in every environment, meeting the demands of mobile devices and apps—from food cart to storefront and website to app.
简化的API还具有在各种环境中接受付款的带宽,可以满⾜从⾷品推车到店⾯以及从⽹站到应⽤程序的移动设备和应⽤程序的需求。( )
The live console enables you to run a variety of transactions, from charging and authorizing a credit card to issuing refunds, debiting a bank account and more — without signing up for a sandbox account.
实时控制台使您可以运⾏各种交易,从收费和授权信⽤卡到发⾏退款,从银⾏帐户借记等等,⽽⽆需注册沙箱帐户。
1)进⾏交易 (1) Run a transaction)
You can run a payment transaction using the in either JSON or XML, without even setting up a Sandbox account. From the “Payment Transactions” menu on the right side of the screen, you can select from more than a dozen transaction types.
您可以使⽤ (以JSON或XML格式)运⾏付款交易,⽽⽆需设置沙箱帐户。 在屏幕右侧的“付款交易”
菜单中,您可以从⼗⼏种交易类型中进⾏选择。
2)充值信⽤卡 (2) Charge a credit card)
Charge a credit card by opening the API reference, going to the “Payment Transactions” heading to the right, and selecting, “Charge a Credit Card.” Next, enter your default credentials and hit the “Send” button. You can also edit the sample request in the live console and try APIs with different combinations.
sdk打开API参考,转到右侧的“付款交易”,然后选择“为信⽤卡充值”,即可为信⽤卡充值。 接下来,输⼊您的默认凭据,然后单击“发送”按钮。 您还可以在实时控制台中编辑⽰例请求,并尝试使⽤具有不同组合的API。
3)尝试⽰例代码 (3) Try the sample code)
Once you’ve run a payment, you can look at various sample code by clicking on the “Sample Code” tab in the API reference. Choose your desired sample code and language. Then click the and follow the steps to clone the repository. Click download.
付款后,您可以通过单击API参考中的“⽰例代码”标签查看各种⽰例代码。 选择所需的⽰例代码和语⾔。 然后单击并按照以下步骤克隆存储库。 点击下载。
4)解密错误代码 (4) Demystify error codes)
Enter the response code you’re getting from the Authorize.Net Payment Gateway into the and get a clear translation and suggestions for debugging. For example, if you search for “error 44,” you’ll get the explanation (the transaction has been declined), a list of integration suggestions (using only valid card codes), plus any other relevant suggestions to solve the problem (make sure the card code submitted with the transaction matches the card code on file at the card issuing bank).
将您从Authorize.Net Payment Gateway获得的响应代码输⼊到并获得清晰的翻译和调试建议。 例如,如果您搜索“错误44”,则将获得解释(交易已被拒绝),集成建议列表(仅使⽤有效的卡代码)以及解决问题的任何其他相关建议(使确保与交易⼀起提交的卡代码与发
卡⾏中存档的卡代码匹配)。
5)全部测试 (5) Test it all out)
Use the to trigger specific transaction responses while you’re running tests in the Sandbox. You can test responses including card numbers, bank accounts, CVV responses, NOC and return codes for echecks. The guide enables you to test the most important aspects of your merchant’s payment solution.
在沙盒中运⾏测试时,请使⽤《 触发特定的交易响应。 您可以测试响应,包括卡号,银⾏帐户,CVV响应,NOC和电⼦⽀票的返回码。
该指南使您能够测试商家付款解决⽅案的最重要⽅⾯。
( )
Authorize.Net features APIs, SDKs, and sample code in six different coding languages, which makes integrating with Authorize.Net as easy as possible. Whether you want to build the next breakthrough app or simply allow your merchants to accept a range of credit cards, you’ll find an easy-to-use SDK and sample code in the language of your choice. Authorize.Net具有六种不同的编码语⾔的API,SDK和⽰例代码,这使得与Authorize.Net的集成尽可能容易。 ⽆论您是要构建下⼀个突破性的应⽤程序,还是只是让您的商家接受各种信⽤卡,您都将到⼀种易于使⽤的SDK和⽰例语⾔(使⽤您选择的语⾔)。
To explore our new sample code and SDKs, visit the , choose which language you’d like to use, and read the “read me file” to understand how to use it.
要浏览我们的新⽰例代码和SDK,请访问 ,选择要使⽤的语⾔,然后阅读“⾃述⽂件”以了解如何使⽤它。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论