Going live
Live means real NEDApay users, who approve the link themselves inside NEDApay. This page covers what your users see, where the link opens, what to handle when they return, and the rules that apply to real data.
- Your key
- nc_live_…
- Who approves
- The user, in NEDApay
- Who can link
- Fully verified users
- Access
- Read-only, 12 months
Before you receive a live key
From you
- Your integration handles a declined request, token refresh and a removed link.
- Your final return address, for example
yourapp://nedapay-linkedor an https address. - Your server addresses, if they are fixed, so calls from elsewhere are refused.
- A signed data-sharing agreement.
- A named person we can reach about security.
From NEDApay
- Your live key and secret, sent once through a private channel.
- Live linking switched on, first for a small pilot group of users.
- Your app's name as users will see it on the consent screen.
- Confirmation of which data you may ask for: balances, transactions, stocks.
What your user sees Live · live key
From tapping Link NEDApay in your app to being back in it. The middle three screens are NEDApay's.
link_urlcode and stateWhere link_url opens
Open it in the system browser or as a normal link from your app. Do not load it inside an embedded web view: the hand-off to the NEDApay app does not work from there.
| The user's situation | What happens |
|---|---|
| iPhone, NEDApay installed | The NEDApay app opens directly on the consent screen. |
| Android, NEDApay installed | A NEDApay web page opens and hands over to the app. If the app does not open, the user can continue on that page. |
| No app, or a computer | The same consent on the web at app.nedapay.xyz, after an ordinary sign-in. |
| Signed out of NEDApay | They sign in first. In the app they are then asked to return to you and tap Link again; on the web the consent follows directly. |
| Not fully verified | They are told linking needs a fully verified account and offered Verify identity. They link after that. |
| New to NEDApay | They can create an account from the page. Sign-up and verification usually take longer than a request lasts, so expect them back later, tapping Link again. |
link_url.Handling the return
The user arrives at your return address in one of two ways.
Allowed yourapp://nedapay-linked?code=ncc_…&state=<the state you sent>
Declined yourapp://nedapay-linked?error=access_denied&state=<the state you sent>| Do this | Why |
|---|---|
Check state first | It must be the value you created for this user and this attempt. If it is not, stop and show an error. |
Send code to your server at once | It works once and for 60 seconds. Your server swaps it with POST /token and the code_verifier it kept. |
On access_denied | Show the account as not linked, with no blame and a way to try again later. |
On INVALID_GRANT | The code was late or already used. Ask the user to tap Link again. |
| Store tokens on your server | Encrypted, per user. Never in the app, never in a URL or a log. |
After linking
The user sees when you last looked, and can remove you at any time in NEDApay, under Settings, Linked apps. Access ends at once, and your next call answers 401 LINK_REMOVED.
Links also expire after 12 months, pause while an account is paused, and end if a refresh token is used twice. What each answer means and what to show the user is on Errors.
Rules for real data
Always
- Say in your app that the data comes from NEDApay and that you can only view it.
- Call
DELETE /linkwhen a user disconnects or deletes their account with you. - Read on demand and cache briefly. Keep only what your feature needs, for as long as it needs it.
- Send users into NEDApay to pay, deposit or trade.
- Refresh when the user opens your screen. Notifications from NEDApay when something changes are not in version 1.
- Tell us straight away if a key, secret or token may have leaked. We replace keys the same day.
Never
- Ask a user for their NEDApay password, code or passkey.
- Put the secret or any token in a mobile app, a web page, a URL or a log.
- Share or sell what you read, or use it for anything outside the agreement.
- Keep reading after a link is removed or expired.
- Imply that your app holds or moves the user's money.