Stripe on iOS and saving card details - ios

I need to implement "Save card" and "Delete card" features in my iOS app.
From Stripe documentations I found that we can create a customerId on our backend and link it to our internal userId.
But we need part of card details to display it to user. E.g.
Visa card xxxx xxxx xxxx 8153
Is it ok to store this data on backend and iOS app? I'm talking about card type and last 4 digits.
Should we create new customerId in Stripe if we want to store more than one card per customer?
Thanks.

There are certain details that are available when you store a card; you don't need to store them separately. "Last 4" and type are some of the fields available from the API; check out the Stripe docs for cards for more. https://stripe.com/docs/api#cards
No, you don't need to create a new customer (and in fact, would probably be a bad thing for keeping everything cleanly coordinated). Store additional cards on the same customer.

Related

Stripe: how to omit 3D Secure?

We have created an iOS app for short rental owners with the objective of holding rental deposits on a credit card during a few days. The user can decide to capture the payment if there is something broken in the flat.
This app has been made with Stripe.
We encounter the following issue: when the user enters his client's credit card in the app for holding a deposit of about 300€ for exemple, Stripe doesn't accept to continue the operation without 3D Secure verification.
While in the same time, it works perfectly without 3D Secure when doing this operation on the Stripe Dashboard, with the same credit card, the same amount and the same location.
We would like to omit 3D secure in our iOS app, just like the Stripe Dashboard.
How is it possible ?
Thanks for your help
This is not recommended, you should build your integration to support 3D Secure authentication, even when placing a hold to capture later.

How to create a discount card for Apple Wallet?

How can I create (and is it possible at all) discount cards for a coffee shop using Apple Wallet and iOS APIs?
The effect I want to get is the following: iOS users should have a personal card in Apple Wallet which they will bring to the coffee shop. In the coffee shop there will be a scanner which can add score for each scan and nullify it when the score reaches let's say 7 scans (so users will have each 7-th cup of coffee for free).
Creating a Apple Wallet pass is described here: Apple Docs
You edit the pass.json describing your pass, then you can sign it using Apples signpass tool after you have registered a pass type identifier and found your Team ID. If you want to update the pass to display the information to customers, you would need a server that implements the web service API.
As Paulw11 has said, you will need some sort of scanner to read the data from customers passes. One way is QR codes, in which your cashier will hold a camera to the QR code on the pass to read the customer info, usually it will just be a unique ID which you have mapped to a customer account. Another possibility is using NFC so the customer taps their phone to a NFC reader which will transmit their unique ID for you to process.
If you would like to try reading passes using NFC, see PassNinja.
Here is a video of it in action:
NFC Pass Solution for Mobile Wallets
Disclosure: I work for Flomio, the company behind PassNinja.

Can I store this user information in NSUserDeafaults

Overview:
I have an IOS app that allows a user to create an order from menu items and then check out that order using a credit card.
I am aware that you cannot store a users credit card information and that this can only be stored with a registered authority i.e.: the credit card gateway (somewhere that is PCI compliant).
The Question:
I need to store a users first name, last name, mobile number and email address, so these fields can be autofilled on a future order. Just to be clear the name and number are not in any way associated with the credit card or payment method, that is a separate field and is handled differently. This is just user information for the actual order that is handled through our servers.
Could I store these pieces of information in NSUserDefaults so when the user goes to checkout in the future these fields are autofilled?
You can definitely store the information in NSUserDefaults but as others have pointing out a database like SQLITE will be a better option. In the future your app might grow and might want history of items user has purchased or shown interest in. At that point you don't want to store collections in NSUserDefaults.
One more option for you is using Core data

Apple Pay :Is it possible to get name on card which is selected by user from apple pay tray?

I am working on Integrating Apple Pay in my app. I need following details to post to api :
1. Name on the card,
2. last 4 four digits,
3. type of card (VISA, AMEX etc)
Is there a way to retrieve those from the card selected by user in Apple Pay tray ?
You cannot get the name on the card via ApplePay. This is one of the reasons why a lot of merchants have resisted it. But Apple did this to protect users' privacy: you should be able to buy something without telling someone your name. If someone doesn't know your name then how can they identity fraud you?
If you want the customer's name, ask them, or have employees check their ID and require that the name be entered into the system. If you can't be asked to bother asking the customer to identify themselves, then, since the customer has not voluntarily given you their name, why do you deserve to have it?

Apple Application Submission - Unable to fill Tax Info (Non-US Resident)

I did below for submitting TAX -
Submitted "NO" on - Are you a U.S. citizen, U.S. resident, U.S. partnership, or U.S. corporation?
Submitted "NO" on - Do you have any U.S. Business Activities?
on Next Page I am unable to change following details:
1.Individual or Organization Name &
2. Country of incorporation & 3. Permanent Residence
please help me on how can I modify these because the information in above colums is not correct. I need to change them, where does apple picks up these informations.
My applications is complete and I am stuck because of just this single step.
Thanks in advance
This isn't as easy as it should be, but if you have already entered tax information and wish to change it, you have to make a request to Apple via email, and they will tell you exactly what forms you'll have to fill out. I recently went through this (in the U.S.) to convert my personal account into a business account, and I'd imagine the process will be similar for you.
The Permanent Residence panel on the tax forms is not editable because it uses information from Dun & Bradstreet. It has the address when you originally requested a DUNS number
I suspect the other two details also come from the D&B record. If all three are wrong you may have the wrong DUNS details linked to your Apple ID.
You need to contact them directly - I just went through this on the phone with Apple Developer support and was advised to directly email appdeveloper#dnb.com

Resources