Reputation: 41
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!
Upvotes: 4
Views: 652
Reputation: 2257
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.
Upvotes: 3