Server-side Payment Token decryption for Apple Pay - ios

There are third party libraries that provide support for decrypting Apple Pay token on the server side. Is there any such .NET library?
Third-paty Libraries
Ruby library for decrypting Apple Pay payment tokens
PHP library for decrypting Apple Pay payment tokens
What we're trying to accomplish
We're using Compass XML platform for payment processing, and the goad is to decrypt the payment token on our server and then use the Compass XML for final payment processing.

I just pushed my works into github, it uses Bouncy Castle C# library to decrypt token on the server side, and works both for Android Pay and Apple Pay, please check it out.
https://github.com/chengbo/ApplePayAndroidPayDecryption
NOTE: The token verification for Apple Pay not implement yet.

I don't know of any .net libraries specifically, but there's a number of implementations available on GitHub that you could take a look at - here's another PHP one, for example: https://github.com/etsy/applepay-php
Payment decryption is fairly straightforward if you're familiar with crypto, and is achievable using something like OpenSSL. There's some documentation on the exact process here:
https://developer.apple.com/library/ios/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.html

I got it working in C# by creating a fork of a project and cleaning it up.
Here is the Github location:
https://github.com/fscopel/CSharpApplePayDecrypter

Related

What kind of encryption does Firebase Authentication SDK provide for iOS?

Basically, I'm using Firebase authentication SDK in my iOS app to provide secure login to users and trying to upload the app to TestFlight. Upon upload, I'm seeing this question below that asks if the app uses cryptography but then there are exceptions where some cryptography algorithms are exempted? Please advise on how to answer in regards to using Firebase Auth SDK.
Thank you!
"Is your product designed to use cryptography or does it contain or incorporate cryptography?
Please answer “YES” to the question even if your app uses or accesses encryption from another source, e.g., iOS or Mac OS X.
If your application does not use, access, implement or incorporate encryption, you can answer “NO” to this question and you can continue with the process of uploading your binary.
If your application does use, access, implement or incorporate encryption, it may be necessary to submit confirmation of approval by the United States Government and an approval from French authorities if your app is going to be distributed in France."
The Firebase Auth SDK does not currently make use of cryptography on the client. The SDK is now open source on github, please feel free to take a look at the source code.
https://github.com/firebase/firebase-ios-sdk

Working of Apple Pay in iOS swift

I have integrated the code required for Apple Pay in my app based on the documentation available with Apple.
However, as a beginner, I have a doubt.
We have not used any third party payment processors like PayPal, Stripe etc.
Is it mandatory to use a third party processors? Can we just use the code and passbook/wallet and do the transactions?
Note: Merchant IDs, Payment certificates are created in the developer account.
Based on Apple documentation a payment provider is recommended but not mandatory.
Using one of these SDKs or hosted solutions is highly recommended
About develop your own payment process...
The alternative is to provide your own server-side solution to receive
payments from your app or website, decrypt payment tokens and
interface with the payment provider to process the authorization.
Handling credit and debit card payments can be complicated and unless
you already have the expertise and systems in place, an Apple Pay SDK
or JS API from a payment provider is the quickest and most reliable
way to support Apple Pay in your app or website.
In my opinion, It's better use a payment provider than develop your own. You're working with money, credit cards numbers...

Use PayPal IPN with iOS PayPal library

I integrated the PayPal iOS library, but I noticed, that it is not I am not able to work with IPN. Is there a secure workaround or isn't it possible at all?
Dave from PayPal here.
The PayPal iOS SDK uses the new PayPal REST APIs to communicate with PayPal's servers. Unfortunately, these APIs do not currently work with IPN.
At some point in the future this situation will improve, but we don't yet have an estimated date.

Integration of PayTm payment in iOS

Could anyone please tell me how can I implement payTm payment gateway in my iOS app. Searched a lot in internet but couldn't get any result. Not sure whether they provide any SDK or API to use.
I was searching for payment gateways which are mainly focussed in India. found One97's Paytm Payments but not sure how to implement this in iOS app.
Could any one please help me.
Paytm has SDK for both iOS and Android platform. It is integrated already on few merchants. Write to us at pgsales#paytm.com and we will send you SDK and Integration document along with test credentials.
PayTM is only for Private Ltd. companies. Unlike PayPal(unfortunately not in India), which provides access to there SDK for developers as well.
If you want to integrate PayTM, you would have to contact them and they will give you a list of things (which includes: DIN number, company name, PAN.. etc) which you should have before getting the SDK access.
This to me is pretty outdated thing. PayTM should provide access to developers to at least test their platform. Sandbox account is something developers can test their app before going live they can definitely request for all the needed details. In that sense, PayPal integration is way way better.
#Prerna Kalra Please let your team know that developers want to test their integration before going into all the official details.
To integrate with Paytm payments, you would require an SDK that they provide for the same. You need to get in touch with the Paytm's integration team for the SDK.
I'm pretty sure a lot of people are asking this and Paytm is not really ready to make its own documentation. The only way I know of is to download their sdk and contact their customer care with your query about integration. And await their response for installation queries.

paypal api for blackberry

I am recently developing a business application naming MyTicket.
I want that paypal gateway should be open within the app So
for that is there any paypal api in blackberry that helps me in fulfilling this
task.
I have already tried with creating a Paypal API wrapper for example using PHP, which is used by a proxy page. Then in the BlackBerry, use standard HTTP requests to send GET/POST requests to the proxy page. The proxy page will in turn use the wrapper you created to set up payment for you and your customer.But by following this way we are able to make credit card payments with the application and entire transaction will happen at the server end and in response we may obtain a result at client end that transaction is happened successfully.
But i want that the paypal transaction will happen with the paypal account.So is there any
sdk in blackberry which helps me in fulfilling this request.
Thanks And Regards
Pinkesh Gupta
There was an API, but they dropped support. I think now the only platforms supported are iOS and Android: PayPal -Mobile Payment Libraries
(If you want to check out how the BB version was like, or if you manage to find the jar, this was the development guide:MPL Guide for BlackBerry)
Now RIM has a Payment Service that might help you: Payment Service
If you use the standard Express Checkout API within your app it'll automatically utilize the mobile checkout experience.
I use this in my jQuery Mobile Apps and it works great. If you're building a native Java app, though, you might have to use some sort of an embedded web page to make it work.

Resources