Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Card payment integration for applications

Discussion in 'Scripting' started by RoyalCoder, Oct 26, 2020.

  1. RoyalCoder

    RoyalCoder

    Joined:
    Oct 4, 2013
    Posts:
    301
    Hi friends,

    In my project (Android/iOS), I need to integrate a direct card payment system for services and goods, processing and callbacks, for example, payment on Uber App, etc.

    Can be this done? Can you guys, recommend third-party services for this implementation?

    P.S: The app is only for mobile platforms Android/iOS.
    Thanks in advance!
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,724
    I'd recommend Stripe. Assuming of course you're only talking about physical, real-life goods and services. Any digital goods need to go through Apple/Google's IAP systems I believe.
     
    RoyalCoder and Joe-Censored like this.
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,878
    I also recommend stripe having used it for a few client projects now, its pretty easy to integrate.

    As @PraetorBlue said already, it is only valid for physical goods and real life services, anything digital must go through IAP and is subject to the IAP % cut, or it is seen as circumventing the app store and will not get accepted onto the store at submission.
     
    RoyalCoder likes this.
  4. RoyalCoder

    RoyalCoder

    Joined:
    Oct 4, 2013
    Posts:
    301
    Hi, @PraetorBlue & @MadeFromPolygons, my project is indeed for real-life goods and services, wow thanks it looks like a very powerful payment provider, I will check it out.
    Do they provide a Unity SDK? Or you guys integrate their API with .NET?
     
  5. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,878
    Its a REST api and provides a .NET implementation:

    https://stripe.com/docs/api?lang=dotnet



    So you can just go ahead and use the API directly from your unity scripts :) but no there is not a SDK for unity, but no need when there is one for .NET as I dont know what unity-API specific stuff would be needed beyond the .NET capabilities anyway!
     
    RoyalCoder likes this.
  6. greg-fine

    greg-fine

    Joined:
    Jul 10, 2020
    Posts:
    2
    @MadeFromPolygons do you know how this works with PCI compliance? I might have this wrong but I believe that with Stripe's .NET APIs you have to take credit card info from a unity text input field and pass it into the API. Because the app is handling the payment info in this way, don't you have to file compliance/security reports and stuff?

    Thanks!