paypal / paypal-here-sdk-ios-distribution

Add credit card (tap, insert, swipe & key-in) capabilities to your iOS app
Other
82 stars 91 forks source link

PPHTransactionManager encryptedCardData #144

Closed rrepaka closed 6 years ago

rrepaka commented 6 years ago

Do you have any code samples for encryptedCardData() method ?

ppmtscory commented 6 years ago

If you're integrating with the SDK itself, then you wouldn't need to use this method at all as the card information is already encrypted at the time of the card swipe/insert/tap.

rrepaka commented 6 years ago

Yes , card information is encrypted at the time of swipe. Sorry i did not provide full information, Basically we are trying to provide a deals/ promotions based on customer credit card , for that we are asking some help from you guys.

if you have any examples please share it with us.

ppmtscory commented 6 years ago

There's PPHTokenizedCustomerInformation as a part of the PPHTransactionRecord which contains a customerId. This ID is specific to the card used for the payment so it would be the same each time that particular card is used. This is usually what folks use for loyalty/promotions/etc.

rrepaka commented 6 years ago

Thanks for sharing this info. can we get this Object without processing any transaction ? the reason is customer swiped his credit card just to know his loyalty / promotions without any transaction amount .

How do we get this object ?

nbaulesglobalsolutions commented 6 years ago

No. I don’t think I have one.. how do I get one?

Sent from myMail for iOS

Wednesday, November 22, 2017, 2:52 AM +0800 from notifications@github.com notifications@github.com:

Do you have any code samples for encryptedCardData() method ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaypal%2Fpaypal-here-sdk-ios-distribution%2Fissues%2F144&data=02%7C01%7Cepadfin%40outlook.com%7C47cf89f720fe4b6d90d008d5311105b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636468871525017507&sdata=ezWVEhetjii40%2FpWHSz62pta37TFMhobwpjxJ7roqGo%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQTcdkltL7Z2KZEJ0NyOrZebBN1HMFQDks5s4xvugaJpZM4QmUgF&data=02%7C01%7Cepadfin%40outlook.com%7C47cf89f720fe4b6d90d008d5311105b0%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636468871525017507&sdata=AgGKNenCA9WV%2Fq7q4nhwm40cjjmnqb8z1bpKQ68J9f4%3D&reserved=0.

rrepaka commented 6 years ago

Hello ppmtscory, Sorry, we are trying to get credit card information without any transaction amount and trying to avoid back end call if possible . Is there any method in paypalHereSDK so that we an show loyalty/promotions based on card data

ppmtscory commented 6 years ago

You would need to store that information when it's available and then if the customer wants to know, you would look in your DB to determine what their loyalty balance is. There's no way to run a transaction for a $0 amount. You'd store the customer ID alongside some other identifying info (card last 4 maybe?) so that when the customer wants to know, you simply need to ask for that info, type into your app, and make the call to your DB.

rrepaka commented 6 years ago

Thanks a lot for your help

nbaulesglobalsolutions commented 6 years ago

Ok will do it right away..

Thanks

NBaules

Sent from myMail for iOS

Wednesday, November 22, 2017, 6:45 AM +0800 from rrepaka notifications@github.com:

Thanks a lot for your help

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaypal%2Fpaypal-here-sdk-ios-distribution%2Fissues%2F144%23issuecomment-346186014&data=02%7C01%7Cepadfin%40outlook.com%7C413633554c7c43aa533408d5313181fe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636469011055542166&sdata=F8Y8n0IjprdhPQFfgHMs9hGajWyoC%2F0%2FaeCgNn2AzOo%3D&reserved=0, or mute the threadhttps://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQTcdk5q0dw12iuua5ioOYVolovpvxqLks5s41JvgaJpZM4QmUgF&data=02%7C01%7Cepadfin%40outlook.com%7C413633554c7c43aa533408d5313181fe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636469011055542166&sdata=mQPIcuYoTxEU7r%2Bv0XnvuzRyojqvt2ZwPCEGHpZTPpY%3D&reserved=0.