3
votes

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!

1
To clarify - We the user of our app to essentially use their CC to process a payment. Once processed we want to verify they payment and store the funding source with a payerID (UDID within our server side system). When that user returns we wish to use their 'stored' details as opposed to them entering their CC details agian. - user2928838

1 Answers

3
votes

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.