GithubHelp home page GithubHelp logo

vippsas / vipps-developers Goto Github PK

View Code? Open in Web Editor NEW
82.0 73.0 52.0 67.63 MB

Please see: Vipps MobilePay Technical Documentation: https://developer.vippsmobilepay.com

Home Page: https://developer.vippsmobilepay.com

vipps

vipps-developers's Introduction

vipps-developers's People

Contributors

ahysing avatar ameliemaucade avatar ananthb86 avatar aridder avatar christiandoormannmoller avatar cloveras avatar dependabot[bot] avatar finianobrien avatar flinkgutt avatar gnawybol avatar hakonslie avatar haldormyre avatar henriettebossen avatar jorgensel avatar khenrichsen avatar lende avatar markusdreyer avatar mats-vipps avatar mats93 avatar matsjohans avatar niklud avatar okpedersen avatar rebekaburnett avatar simenarvnes avatar sopbergmann avatar stinejohans1 avatar tht13 avatar tomas-zijdemans-vipps avatar vidarholm avatar vippsittommy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vipps-developers's Issues

Test phone number works for payments API but not login

Hi

When I submit the phone number on the login screen, it shows the error "To log in with Vipps you need to have Vipps on your phone and be at least 15 years old." , the POST request is sent to https://api.vipps.no/vipps-login-idp/fetch-api/login

In the FAQ, it says that error happens if using a real user in the test environment, but that isn't the case, and it works with payments.

Any idea how to fix this issue?

Thanks

Ingress missing section on newsletter email

Screenshot_20201007_172537

read that sentance it's missing the main 'what' of the entire sentence. If i hadn't lookd it up on github i wouldn't have the faintest ide what actually is beeing announced.

vipps:// app launch documentation

Where can I find the documentation for arguments when lunching the Vipps app from a vipps:// link click? The app is launching out of the box on my Android phone, but with errors. I need it to suggest the recipient, making it a donation button.

issue with callback

After 08/04/2022 our server is not receving response on callback url for most of transactions.

QR code image size and formatting

On README.md, there is an image tag:
<img src="images/demostore-qr-vipps-hurtigkasse.png" .../>

This doesn't render properly in Docusaurus.

Can we get a smaller version of this image so we can use the format: ![QR code to Vipps Hurtigkasse](images/demostore-qr-vipps-hurtigkasse_sm.png)

Support for custom claims in JWT

Hey,

I can´t find this feature in the docs.
Does vipps auth support adding custom claims into JWT token?

Example of how firebase auth support this feature: https://firebase.google.com/docs/auth/admin/custom-claims#set_and_validate_custom_user_claims_via_the_admin_sdk

example custom claim:

{
  "sub": "1234567890",
  "name": "John Doe",
  "admin": true,
  "iat": 1516239022,
  "https://hasura.io/jwt/claims": {
    "x-hasura-allowed-roles": ["editor","user", "mod"],
    "x-hasura-default-role": "user",
    "x-hasura-user-id": "1234567890",
    "x-hasura-org-id": "123",
    "x-hasura-custom": "custom-value"
  }
}

Problem with Reservation Callback

Hi, i'm using Vipps for Magento 2. It often happens that an order from a customer does not being registrated in ordersystem in backend of Magento 2. However, it get reserved in vipps portal (Vipps management system). The order get the status "New" in Vipps section "Quote Monotoring" in Magento 2 backend. When I open the quote with the status "New" there is not data in Quote Information, that is, Customer fullname and customer email is blank. The grand total show correct price.

Other times the orders has the status "canceled" (in Quote Monotoring )and there is no data in Quote information. But here the order can also be found in the order system for Magento 2 with status "Canceled". And also the order has status canceled in vipps portal management system.

When the order has the status "reserved" (in Quote Monotoring), all data in Quote information is there. And the order has status reserved in both magento order system and in Vipps portal.

I guess this issues can be explained with problems with Reservation Callbacks.

I have attached print screen from the API dashboard which shows the failures.

Hope you can help me out here.

Screen Shot 2021-10-07 at 11 10 28

Session destroy

Hi,
I am using VIPPS payment API for payment. When user used the VIPPS mobile App to pay the amount and cancel the amount.
It destroy all session I mean if user is logged in after cancelling the payment from mobile App user logged out automatically.
Any idea?

Thanks

Vipps express checkout works/doesnt work, seemingly by random

Hello!

I'm having some issues with the plugin "Vipps for woocommerce".

Whenever I try to use the express checkout, it sometimes sends me to the correct place where I would enter my phonenumber, but most of the time I get the error " Vipps er midlertidig utilgjengelig".

In the logs I get "2021-10-19T11:45:14+00:00 ERROR Kunne ikke opprette Vipps-betaling 500 cURL error 28: Resolving timed out after 5516 milliseconds"

I've tried to disable all the firewalls on the server, but the error still occurs by random.

If you have any more questions, or need further information, please contanct me at [email protected].

Thank you.

Test credit cards already in use

You note this in testdata/README.md

Nets offers a series of credit cards with pre-defined characteristics: shop.nets.eu/web/partners/test-cards Response codes: shop.nets.eu/web/partners/response-codes

We can't actually use any of these as they are already in use by someone else, and are required to be unique?

"missing subscription key"

So I've been trying to get an access token through your test API, and I keep getting

"statusCode": 401, "message": "Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API."

What I'm trying to execute is:

# I've obviously hidden the keys, trust that they're there in my file
json_data = '{"client_id" : "xxxxxxx", "client_secret" : "xxxxxxx", "Ocp-Apim-Subscription-Key" : "xxxxxxx" }'

digest = json.loads(json_data)

def get_access_token(mtd, url, data):
    data = json.dumps(data, sort_keys=True, indent=4)
    token = request(mtd, url, params=data)
    return token
    
token = get_access_token("POST", "https://apitest.vipps.no/accesstoken/get", digest)
print(token.content)

What am I doing wrong? 🤔

Please change the language on the demo.vipps.no to english

Hi
I look at the demo.vipps.no and see that what I want is the simple "Vipps Hurtigkasse".
The language of the github doc is in english - so I need to read the whole doc to figure out the english term for "Vipps Hurtigkasse".

Suggest you translate the demo.vipps.no to english or add the english term for "Vipps Hurtigkasse"

Regards
Terje

AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application'

I got this error "AADSTS9002326" when I request to apitest.vipps.no.

You need to look at the solution for this error.
Solution

I've been dealing with this issue for weeks now, by setting up a proxy on my own server, I've forwarded the requests and solved the cross-origin issue. The error I get can be fixed by you.

https://stackoverflow.com/questions/72575793/aadsts9002326-cross-origin-token-redemption-is-permitted-only-for-the-single-p

App2App person-person transaction

We just implemented Swish in our app we provide for our customers. We grab the numbers in the Colleague list in our app and prepopulate the Swish app with the number the colleague connected with. The user case will be to Swish for lunch or something similar, from colleague to colleague. When the Swish app is done either transaction is successful or canceled we will get a callback to our app. (iOS, Android)

It's done by an url scheme from Swish. Is this something that is possible with Vipps too?

X-Request-Id

Any value string limited to 30 characters
I am integrating the API:
Step 3:
Where are my credentials->
X-Request-Id --> Any value string limited to 30 characters.

I need details for this X-Request-ID please.

Possibility to "pay once"

Will be fine if vipps recurring API (Faste betalinger) will offer 1 time payment without signing an agreement.
Sometimes user ned to pay for something onec, it is overkill to draft an agreement or do the integration with "vipps enkeltbetaling"...

May be that possible to do 1 time charge without draft an agreement? Something like initial charge, but without recurring payment?
Maybe API in "Faste betalinger" that calls eCom api for One time payment without any special integration to that ?

the doner button doesnt work

hi.

so i have done everything as i should, everything is correct..

but, when i press the 'donér" button nothing happens on the site.

Vipps Login - Support Mark icon in login page

Will be fine if Vipps support option to login image in 2 options:

  • width login button with whole vipps login (today is supported)
  • just icon / mark button to logg in with vipps ()

All other third part ID solution support that: Facebook, Google or Apple....

Sugested solution, is to update https://github.com/vippsas/vipps-design-guidelines that button/mark is also possible to use...

Example (Source picture taken from Apple developer documentation):

image

Test app not getting open with deeplink on Android 12 and 13

Deeplink opens the app perfectly fine on all devices before Android 12 but in Android 12 and 13 it opens the default browser.

Deeplink is in this format
https://apitest.vipps.no/dwo-api-application/v1/deeplink/vippsgateway?v=2&token=TOKEN_GOES_HERE

And my code is as follows

// This intent opens app in Android 11, 10, 9 etc but opens browser in Android 12 and 13
val intent = Intent(Intent.ACTION_VIEW).apply {
        addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        data = Uri.parse(deepLink)
}
startActivity(intent)

And my guess is that it's due to web intent resolution changes in Android 12
https://developer.android.com/about/versions/12/behavior-changes-all#web-intent-resolution

Let me know if you need more details and if I'm missing something

Getting an error responseCode":"1000"

Hi Good afternoon..

We are integrating a Vipps e-commerce solution for a client for a Webshop developed in ASP.NET
We are getting the following error, while initiating the payment..

Response Text:
{"responseInfo":{"responseCode":"1000","responseMessage":"Something went wrong. Please try again later."}}

Following is our test URL
https://www.grefsenhudpleie.no/v3/vipps/vippsPayment.aspx

Can you please help and let us know what we are doing wrong..

Thanks in advance..

Best Regards
Rafiq Jakate

Fetch a charge may get details about charge failure/problems with status FAILED

Today we may get a charge info using 'fetch a charge'. It might return different status.
In addition to that will be helpful to change this API or create new one that returns a charge fails/problem description...

Today it only returns FAILED status, and that is all, we dont know why it faills and why we cannot charge a customer...

When I was asked support I get info:

Jeg kan sjekke det for dere denne gangen, men vi har egentlig ikke tid til å gå gjennom charges for å gi dere informasjon på hvorfor det feilet,

In that case I think we need to have a API that returns Problem description like:

  • Card expired
  • Invalid paymentsource
  • ....

In that cases we may do a different actions, and it is good to know what happend.

We get plenty times FAILED status befor becouse yours implementation was wrong, or sometimes Failed on server, or you have disabled user and enabled again and on this sytuation payment source was not attached again....

Today looks like Vipps works OK. so thats is fine, but will be fine to know what goes wrong and do some actions when we get
Card expired or Invalid paymentsource status.

Alternative, additional solution: Will be fine if new status may be returned like ERROR - that is more problem with other cases, not with card payment... so Card expired, Invalid paymentsource may be as FAILED but other errors just marked with status ERROR ??

Wrong format for timestamps

Hi, we are experiencing some strange issues in the payments/{orderid}/details route.

Sometimes the timestamps comes in different formats.
Expected: 'Y-m-d\TH:i:s.u\Z'
Sometimes: 'Y-m-d\TH:i:s\Z' <- missing milliseconds

It looks like this happens when local time is between 00:00L and 02:00L as the Z time will be on a different date. (This is our theory as the issue occured at 00:42L)

Payment request not appearing in Vipps MT

Hi,

I'm experiencing issues with making payments in the Vipps MT app. Initiated from web on different device, through Adyen drop in component. I've tried pull to reload in the payments tab several times, also logged out and back in, removing profile from phone, in addition to uninstalled app and reinstalled.

After a while they end up as expired in the payment history, so they are registered with the phone number at some point. The successful ones in the list in the attached screenshot are when initiating the payment from the same phone as the app is installed on.

Is there any way to debug this? I've tested several phone numbers that work for others in my team.

Golang client library for Vipps Ecom/Recurring

Hi Vipps! 👋

First of all, thanks for an awesome product with great documentation! Integrating with you guys have been a breeze. 🎉

Just thought I'd let you know that I open sourced a library for interacting with EcomV2 and Recurring Payments in Go: go-vipps. It's still in the early stages of development, but should be quite feature complete.

Support different Vipps Interval

It shall be possible to support intervals like:

  • 15 MONTH, 18 MONTHS, 23 MONTH, 24 MONTH
  • 400 DAYS,
  • 53WEEKS, 104 WEEKS, 79 WEEKS ...
  • 2 YEARS, 3 YEARS ....
    Iven periods looks strange this validation that is today between 1..31 if remember correct is not good enought in some cases...

Build of Vipps MT (iOS) is removed from TestFlight.

There is no possibility to use Vipps MT on iOS devices.
The last build is removed/expired from TestFlight.
Could you please download a new build to TestFlight or give some advice on how to test integration with Vipps on the test environment, please?
image

[Android app] Bug when payment in process

When I first start paying everything is ok. But as soon as I close the VIPPS android view, and start the payment process again with the same token, the Android VIPPS application displays a empty white screen without any error. On the IOS, under the same scenario, showing the error message "Payment already started". Implements android vipps app like this
image

an error occurs on all versions of the application

Support 0 kr in CampaignRequest

Today in CampaignRequest may only send more then 1 kr, will be nice to support 0 kr also.

CampaignRequest{
campaignPrice*	integer($int32)
minimum: 100
example: 1500
The price of the agreement in the discount period. The lowering of the price will be displayed in-app.
end*	string($date-time)
example: OrderedMap {}
The date and time the campaign ends. Needs to be UTC
}

Callback dont return correct userToken

Environment: dev ( https://apitest.vipps.no/ecomm/v2/payments )
Request: POST /ecomm/v2/payments
Body

{
...
  "merchantInfo": {
    "authToken": "CI6ImllX3FXQ1hoWHh",
..... 

Current callback response:

Callback Authorization return wrong token. More precisely is the same token as in Swagger example (iOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImllX3FXQ1hoWHh0MXpJ).

Expected result:
Authorization: "CI6ImllX3FXQ1hoWHh"

Laravel Package?

Hi. Is there anything on the horizon about an official Laravel package for Vipps?

I'd love to have the ability to integrate Vipps easily within my Laravel solutions.

Accsess denied

Hi, developer making new app with Vipps AS payment. We Get the Same response. Access denied due to invalid subscription key. Even if We tried to regenrate the keys. See screenshot 1.

Screenshot nr 2. It is by using testing IDS which VIPPS provided. Here you can see we get token from them so we can proceed to next step which is sending back token for further payment process.

Can someone plz contact us on e Mail.
[email protected]

callbackUrl is invalid

Jeg får opp denne feilmeldingen. Hva betyr det? Det er ikke et parameter som blir sendt i /ecomm/v2/payments.

Har ikke funnet tilsvarende feilmelding.

Get access token for recurring api gives error

Using postman config for recurring payment from https://vipps.no/developers-documentation/getting-started/postman-guide/ gives error when trying to get access token.

Variables:
base_url: https://apitest.vipps.no/recurring
client-id: *** (hidden)
client-secret: *** (hidden)
Ocp-Apim-Subscription-Key: *** (hidden)

request url
https://apitest.vipps.no/recurring/accessToken/get

request method
POST

request headers
client-id: *** (hidden)
client-secret: *** (hidden)
Ocp-Apim-Subscription-Key: *** (hidden)

request body
(none)

response status:
404 APIM Resource Not Found

response body:

{"responseInfo":{"responseCode":404,"responseMessage":"Something went wrong, please try again later."},"result":{"message":"Something went wrong, please try again later."}}

String error in BankID app 1.6.0

Should be "Nordea Direct", was "%1$s".
As a customer this makes me nervous about the application.
However it works after closing and restarting the app.
Screenshot_20220123-201413

(CSV) Settlement report net field not accounting for refund

When reading in settlement reports to Fiken, I discovered that some statements had the wrong value compared to banking transcript. I had to rows with -50,00 in the refund column, and the net column did not consider the refund so the actual payout and net field differed 50,00kr.

Is it supposed to be like this, or is it a bug? If integrations (like Fiken) need to calculate for it, where is that stated/documented?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.