简体   繁体   English

使用 Vb.Net 和 Square?

[英]Using Vb.Net and Square?

This is probably a stupid or easy question, but is it possible to use vb.net with the square app to accept and verify payments?这可能是一个愚蠢或简单的问题,但是是否可以将 vb.net 与 square 应用程序一起使用来接受和验证付款?

The Api for Square is here Square 的 Api 在这里

https://docs.connect.squareup.com/api/connect/v1/#overview https://docs.connect.squareup.com/api/connect/v1/#overview

But the functions only seem to relate to reporting.但这些功能似乎只与报告有关。 How do I offer a product for like $5 online using vb.net and use my Square App information to accept a payment online and then VERIFY they paid it?我如何使用 vb.net 在线提供大约 5 美元的产品,并使用我的 Square App 信息在线接受付款,然后验证他们已付款? #1, can that be done? #1,可以吗? #2 Are there some code examples? #2 有没有一些代码示例?

This is a timely question as Square just released a public playments API and updated the documentation a couple of days ago!这是一个及时的问题,因为 Square 刚刚发布了一个公共游戏 API 并在几天前更新了文档!

If you check back at connect.squareup.com , you'll see there's new documentation for the E-commerce APIs.如果您再次访问connect.squareup.com ,您会看到电子商务 API 的新文档。 It's a standard ReST-like HTTPS API, so you should be able to adapt the REST exmaple to VB and make the necessary requests yourself.它是一个标准的类似于 ReST 的 HTTPS API,因此您应该能够将REST 示例适应 VB 并自己提出必要的请求。

One vitally important thing to remember is that, as the documentation says, you should not pass the actual card details back to your own server.要记住的一个非常重要的事情是,作为文件说,你应该通过实际的卡细节回自己的服务器。 You'll want to follow the recommended path of obtaining card token (what Square calls a card_nonce ) in JavaScript, then send that back to your VB server and charge it from there using the APIs.您需要遵循在 JavaScript 中获取卡令牌(Square 称之为card_nonce )的推荐路径,然后将其发送回您的 VB 服务器并使用 API 从那里收取费用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM