Python Vipps Payment Integration w/ Authentication

Job ID: 38072871

Budget: €8 – €30 EUR

Language: Python

Description:

I am currently developing a Python application using PyQt to integrate with the Vipps payment API. The application is intended to initiate a payment process through Vipps, and upon successful completion of the payment, it should update the GUI to indicate a successful transaction or revert to the initial state if the payment fails or is aborted.

Problem:
The main challenge I am facing is that the application does not correctly detect and handle the completion of the payment process. Specifically, the application struggles to:

Detect when a payment has been successfully completed or when a payment has failed.
Execute subsequent actions based on the payment's outcome.
This issue appears to be related to the handling of the API's responses and the application's state transitions based on those responses.

Expected Behavior:
After a user completes the payment process via the Vipps app or website (redirected through a web view within the application), the application should:

Display a confirmation message if the payment is successful.
Return to the main screen and show an error or retry option if the payment fails.
Current Implementation:
The application utilizes the Vipps ePayment API, making HTTP POST requests to initiate payments and attempting to poll or check for the payment status through subsequent API calls. The payment initiation seems to work, but the application does not properly handle or interpret the status updates from Vipps API responses.

API Documentation:
You can find detailed documentation on the Vipps API at the following link:https://developer.vippsmobilepay.com/. This documentation includes information on how to set up authentication, initiate payments, and handle callbacks or payment status updates.
Related categories: Python API