简体   繁体   中英

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?

The Api for Square is here

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? #1, can that be done? #2 Are there some code examples?

This is a timely question as Square just released a public playments API and updated the documentation a couple of days ago!

If you check back at connect.squareup.com , you'll see there's new documentation for the E-commerce APIs. 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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