Square Gift Card Balance - square-connect

Is there a way to check the balance of Square gift cards through the API? I'm making an app on behalf of a merchant at a school who would like to facilitate mobile orders through the use of prepaid gift cards.
According to the user documentation, the receipt of a transaction received by the customer will display any remaining balance, but when I look at the API documentation no such information seems to be provided.
Any advice? Thanks.

You were right to check out the documentation. At this time there isn't an API for any giftcard functionality, including checking balances.

Related

Validators gas fee payment in cosmos sdk?

How the validators are receiving money in their account.?
How gas price amount get deduced from the user account to validator accounts. ?
And how to check the balances of user account and validator account , before and after.?
How the validators are receiving money in their account?
Validators do not receive "money". In the Cosmos Hub (Gaia), which uses the x/distribution module in the Cosmos-SDK. This module implements the F1 distribution spec. In this spec, it is defined that validators earn inflation rewards, part of the globally collected fees and a possible commission (if they charge it). So to answer your question, the hub does lazy accounting where it tracks how many rewards a validator and its delegates earn on a block-by-block basis.
Validators and their delegates can withdraw these rewards at any time.
How gas price amount get deduced from the user account to validator accounts?
Fees are deducted from the fee paying account during the AnteHandler execution during DeliverTx. Every tx has a dedicated fee payer -- typically the first signer of the tx.
And how to check the balances of user account and validator account , before and after?
There exist APIs, in addition to the CLI, that allows you to query the balance of an address. You can easily search or google for these APIs.

Square Payments : International

I am trying to get some clarification on Square Payments and International Cards. I am setting up a payment processor for a site which will need to allow Credit cards from all over - not just US/CANADA. It looks like Square is only available for US,CANADA,AUSTRALIA,UK,JAPAN - can anyone confirm if this is correct?
The method I'll be using is the web form. User will enter their info into the form and submit, back end will process the transaction using the Square SDK (PHP).
If Square is not capable of processing in other countries, is it possible (and not violation of PCI compliance rules) for me to take the CC info from the user, submit to PHP script which will process it using cURL request that way the IP processing the payment is our host server in US? Would that allow me to get around the Country limitation?
Any guidance is greatly appreciated!
Square requires the seller/merchant account to be created in one of the supported countries (US, UK, Canada, Australia, Japan), but once that account is set up you can accept payments online via the APIs from any country (as long as it's a supported card of course). Note that the payment must be in the currency of the Square account though (USD for US-based account, for example), and the customer's bank would handle the currency exchange if they use a different currency.

processing loyalty swipe cards in square

I was taking a look at the Square API. I am trying to find a solution for VIP/loyalty cards for a private club. I feel like the square API would be useful. What I am trying to figure out is if it is possible to read data from a gift card/security card in the API. My Idea is to use the reader in two places, at the front door to verify VIP status and for payment. Ideally, the card would have a member id that could be linked to a Facebook account, as well as looking up saved payment info in Square. I would like to use the API to build a tablet app to manage all of these functions as well as provide discounts prior to payment processing.
I noticed mentions of 3rd party gift card support, does that mean this would be possible? or is the data for non credit card swipes still locked down?
You cannot get card data from the readers. The gift card support is only for payments.

Best practice to detect if 2 customers try to use same credit card in braintree

I want to know what's the best practice if:
User1 uses card xyz1 and xyz1 successfully verified and added in braintree.
User2 uses same card xyz1 and xyz1 verification failed and added in braintree with verification failure reason.
I want to find users which try xyz1 (either successful or failed) in braintree.
Anything like fingerprint in stripe.
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
You can search for transactions in your vault that used the same credit card by using the credit card unique identifier in a transaction search. This will get you a response containing all transactions that made use of the same card. From there, you can inspect the transaction response object for information about the customer that created it.
You cannot use the credit card unique identifier in verification searches. Instead, you could search for verifications based on customer ID or payment method token, then pull the credit card unique identifier from the verification response object.
In Ruby, the transaction search would look something like this:
collection = Braintree::Transaction.search do |search|
search.credit_card_unique_identifier.is "the_unique_identifier"
end
collection.each do |transaction|
puts transaction.customer_details.id
end
Looks like there's an option in their PaymentMethod.create call that will fail if the same card has already been added to your Braintree Vault. Link to that attribute here

Square API: How to generate test orders without getting charged?

I am developing an app that uses the Orders endpoint.
As far as I can tell, there is no way to place an "order" without providing a credit card. Which means there are fees (because there is no square sandbox...)
Is there any way to test my integration without incurring fees??
Note: This stackoverflow answer gives a work around for the Payments endpoint, but that is not helpful in my case.
Square has sandbox where you can use the sandbox nonce and predefined credit cards. In this way you will not get charged for the orders. Check this link https://docs.connect.squareup.com/articles/using-sandbox/

Resources