Card.io sdk in android phonegap, does not get any other data except Credit card number - card.io

I am working with the card.io Android PhoneGap SDK but have had trouble with getting any other data except credit card number. I also want to get the name and expiry date. Is there a way to do that in the latest card.io sdk?
In CardIOPGPlugin.js (https://github.com/mudasserajaz12/card.io-phonegap-plugin/blob/b5cb05d502b84e5b4d1bd029ebc7ec81e3134345/www/card.io.js), it is written in the comments that:
//Your response array contain these fields
// redacted_card_number, card_number, expiry_month,expiry_year, cvv, zip
Is there anything which i am missing? please guide me, thanking you in anticipation.

Dave from card.io here.
card.io is designed to automatically scan the card number. We are currently working on also scanning the expiration date.
Besides using automatic scanning, the user can also choose to tap the "Enter Manually" button, in which case card number, expiration date, CVV, and ZIP are all available. This is the route through which the various other fields in the response array will be filled in.

Related

openSea NFT SDK, how to buy and sell an NFT using the api

I recently stumbled upon the OpenSeaSDK and I want to use it to buy and sell NFTs using it. But I couldn't find a single request to sell or buy, everything is in the Order keyword and they don't show how to use it easily.
Can someone point me to a tutorial or maybe a simple script that I can understand this with?
This is definitely possible in OpenSea -- I'm doing it right now! Here's the code example I'm working off that has how to use the createSellOrder API to create NFT listings with a fixed price or for auctions (the word Order means marketplace listing in their SDK).
https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js

Number of online users and app visits in single page application

I making a SPA (single page application) and want to show the number of online users and app visits in the admin panel like this:
online users: 5 people
Today visits: 12 people.
This Year visits: 5263 people.
I don't know what the proper procedure is for implementing this.
What I'm doing as a solution is to make an endpoint at the server for computing number of online users and visits. In the client I've created a random string as UserKey and saved it into localStorage.Then I've used setInterval to send a request with UserKey payload to the endpoint every 5 minutes. This endpoint calculates the number of online users and visits based on UserKey and current date and time. Calculating Is not 100% Accurate but it's satisfactory for me.
I'm not sure if I'm in the right way. Please share me your advice.
You can simply do it with Navigator.onLine :
Source
Websockets (pusher) should be a right solution for your case. This way you don't have to poll every 5 minutes.
See https://pusher.com/docs/channels/getting_started/javascript/?ref=docs-index
It is free but just for 50 users if you want more users you can also choose to start an own Websocket server. Which is a little more complicated (without external libraries of course).

2checkout inline payment 3D secure issue

I was implemented inline payment and set Approved URL(return url) in business account with select 'Header Redirect' options, But after 3D secure page not redirected to given return URL with transaction parameters like order number,transaction id etc. because this parameters store in my system. It's working well on sandbox mode but when i have set live mode not return to set return URL.
Any possibility, can i set 3d secure page in inline (iframe). Currently 3d secure page showing on new page.
Please help me, if any one handle same issue.
Thanks in advance,
Rakesh
I would look to see if the issue is present only on IOS devices.
I manage multiple payment systems and just over a month ago, all of them started failing on the redirect. After careful investigation it was proven that it only occurred when using IOS.
The reason is apple released a stealth update that turned off cookies. They are required by the vendor (Worldpay, Protec etc) to hold your data while processing through the 3D secure as it is an Iframe.
Since the data is not saved, although a payment is made successfully (remember 3D secure is to verify cardholder present and not the actual payment) there is no information for the call-back to use and therefore it fails.
This is entirely in the hands of Apple, the banks cannot do anything, the vendors are helpless and the end user is none the wiser.
One has to wonder if this was an intentional move by Apple to undermine other payment processors as this started after the announcement of 'Apple Pay'.
I hope this clarifies things for you

alternative of CIM authorized.net

I have a website(PHP) which has payment functionality with recuring/autopayment feature where user will enter their credit card detail once for shopping and from next time onward they don't need to enter their credit card detail again. Credit Card detail will not be saved to my database but will be saved in payment gateway with unique id/reference. I just need to use reference id for payment whenever user do shpping.
Earlier, i was using authorize.net payment gateway with its CIM(Customer Information Management) feature for auto payment which was working fine but now my client does want this payment gateway. I want some alternate payment gateway which support CIM feature.
If someone has already done same kind of stuff then please help me.
Authorized.net is the best option, because of reputation, costs and developer friendly environment. However there are alternatives as stripe, 2checkout, braintree...

Do I need back-end and database for single page app using Facebook Connect?

I want to create a one page site that will use Facebook Connect and allow my friends to reserve a spot for an upcoming event. Using there Facebook ID I would like my friends to pay(reserve) a spot and then show their Facebook picture in the spot they reserved. Sort of like Meetup.com when you RSVP except its a one page site and for a one time event. Can I build this only using front-end technologies or do I need a backend?
The answer is yes, you will need a back end system to store the paid registrants, print out a list of paid users to have at the door of the event to make sure they paid, store the user id to be able to display their picture, etc. etc. etc.

Resources