How can I accept credit card payments in my iphone app?
I wanted to do the following
Allow users to give their credit card information
When they do, send credit card to my server using https and proces credit card using stripe on my server.
Is that the right way to do this technically? How can I make sure the credit card information will stay secure?
You can use Stripe's iOS bindings to easily accept your customers' payment information.
This library uses our create token API call to securely send any sensitive data to our servers. We'll then turn that into a token and pass it back to your application – you can submit this to your server to create an actual charge as normal.
Related
I have just added Paypal SDK, installing products to be paid through credit card using Paypal SDK instead of paying through Paypal Redirect.
Does this mean if you pay by entering your credit card details using Paypal SDK, you still have too register the card with paypal, in order to pay by the card?
there are 2 major ways to do that.
First, let Paypal handle the processing. you need to save the card or reference, for payment management, such as refunds. or if it's recurring payments, updating the card. that way paypal returns an ID you can use later for management.
this is done by redirecting to paypal with payment creation (via Paypal UI).
Second, if you wish to have your own UI without redirect, you can use the API to send credit card details, but then you also need to save the card details somewhere. if you wish to self-manage the cards, then you have to become PCI-compliant, which is a major security concern (you can't just keep the numbers and cvv).
Or, you can use Paypal's "Vault" service via API to save the card, while inserting the card details in your UI, then you can use payment with the returned ID. you can use the ID for future management functions.
If you need more help, try using Paypal's support, or add more details on what API's you're using, etc...
I wanna store card details while using Paypal payment, there is any why in Paypal SDKs which store details of card.
PayPal's REST API calls this a "Vault" and allows you to save the credit card details on PayPal's server so you don't have to save it on your own server. This way you can still process saved cards without any risk of saving it on your own server.
The Classic API (which is what I still prefer) has the same thing except that it's called Reference Transactions. You can run a card verification / $0 authorization, and then in the future you make a call to DoReferenceTransaction to process any amount you need using the card details PayPal has saved on their server.
Either way it's just a matter of building the API requests per the documentation. There are SDKs available to help you with this.
Paypal does not share its users' account details, especially card details to anyone. You have to use the unique account email address to define a user.
It is highly recommended to not save any payment information of users. Only transaction IDs, and perhaps a unique user ID or hash.
Is it possible to update my card details stored in my PayPal account via a 3rd party app with the use of an API? I came across the below documentation but wasn't too sure in which scenarios it could be used?
"Update a stored credit card
Operation
PATCH /v1/vault/credit-cards/
Use this call to modify a credit card."
Any thoughts?
There is no API's available for updating the credit card on your PayPal account.
But, using Adaptive Payments, you can just add a new Payment Card using AddPaymentCard API.
Although, you would need to apply for an application at apps.paypal.com
The vault is for REST API which is used to store(encrypt) the buyer's credit card information and could be used for future transactions.The Vault API provides a secure way to store customer credit cards. By storing cards with PayPal, you can avoid storing them on your servers.
Can we store or use the vault feature of paypal via the IOS Mobile SDK?
I know we have to use the REST API to verify the payment after it has been made - Can we also call the vault API to store the customers credit card so that the customer doesn't have to renter their credit card details again when using our app?
Thanks!
Dave from PayPal here.
Within the PayPal iOS SDK we do store the customer's credit card information (using the PayPal vault), so that your customer can in the future make another payment using your app without needing to re-enter that information.
For this storage to occur, when you create the PayPalPaymentViewController you must pass in a non-nil payerId string. If for a subsequent payment you provide the same payerId, then the previously stored credit card information will be retrieved.
We have a kiosk type of application with an attached credit card reader.
It allows a person to swipe a credit card and select a specific amount of $ to donate.
What are the steps for passing this data to PayPal and conducting an actual donation transaction?
Can you make HTTPS calls from your kiosk app? If so, you should be able to do this with the new REST based APIs fairly simply. Here's the link: https://developer.paypal.com/webapps/developer/docs/integration/direct/accept-credit-cards/
Hope this helps.