Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7967577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:56:49+00:00 2026-06-04T06:56:49+00:00

I am implementing new Balanced API for the payment, and starting to think about

  • 0

I am implementing new Balanced API for the payment, and starting to think about putting it on our mobile (native) apps.

I see they have a javascript library for sending credit card information directly to their server. I obviously don’t want payment info to go through our server (PCI), and I don’t want to include my API key/secret in the app.

So what would be the best way to handle the credit card info on our mobile apps?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:56:49+00:00Added an answer on June 4, 2026 at 6:56 am

    UPDATE

    • For IOS please use the balanced-ios library
    • For Android please use the balanced-android library

    Since you’re writing for a smartphone you should be able to make a RESTful API call directly to Balanced to tokenize the card without using balanced.js.

    The card and bank account endpoints don’t require authentication to tokenize these resources so you don’t need to worry about including any API keys with the app. The documentation explains how to tokenize the card but let me explain it in more detail:

    TL;DR

    Make a POST directly from your mobile app to the card_uri or bank_account_uri that is associated with your Marketplace and it will return a response which includes the tokenized resource’s URI.

    Example

    If your Marketplace’s URI was /v1/marketplaces/M123-456-7890 then the flow would look like this:

    On the client

    The payload you pass through should look like:

    {
        "card_number": "5105105105105100",
        "expiration_month": "01",
        "expiration_year": "2020",
        "security_code": "123"
    }
    

    This should then be submitted like such

    POST /v1/marketplaces/M123-456-7890/cards
    

    The response will look something like:

    {
      "brand": "visa",
      "name": null, 
      "expiration_year": 2020, 
      "uri": "/v1/marketplaces/TEST-MP991-204-5261/cards/CCfc1596189e0911e18ba9024f5cb9b783", 
      "expiration_month": 12, 
      "state": "new", 
      "last_four": 5100, 
      "address": null
    }
    

    The client then only needs to return the uri of the response to your server, on the server you can associate the card with the user’s account.

    On the server

    To associate the card’s URI with an existing account you can make a PUT request to the account’s URI with the URI of the card passed through as a parameter called card_uri. If you’re creating a new account then POST to the marketplaces accounts_uri with the email address of the user.

    What you want to be careful of is that you don’t log the user’s card_number or security_code in any debugging log on the device as this would bring the device into PCI scope and could be bad if their phone was compromised.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're implementing a new solution in our classic ASP environment that's using COM interop
I have a question about the Singleton Pattern and MEF. I'm new in implementing
We are currently implementing a new WCF REST service in IIS for our site
I am working on implementing a new payment module for Magento and want to
We're implementing the new subscribe button on our webpage, one thing we were noticing
I have a question about implementing the new UI within a .net website that
Is there any good documentation on implementing new refactorings in Eclipse? Specifically, I'd like
I'm implementing a new iPhone app and am relatively new to Cocoa development overall.
we are implementing a new web service. The web service will be a store
I am relatively new to implementing JQuery throughout an entire system, and I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.