Powens Documentation
DocumentationChangelogConsoleWebsite
  • Documentation
  • Integration guides
    • Quick Start
      • API Overview
      • Add a first user and connection
    • ➖Bank
      • Introduction to Bank
      • Bank integration guide
    • ➖Check
    • ➖Wealth
    • ➖Pay
      • Getting started with Pay
      • Initiating a one-time payment with the Webview
      • Initiating a bulk payment with the Webview
      • Initiating a recurring payment with the Webview
      • Cancelling a payment
      • Validating your implementation with the test connector
      • Advanced
        • Listing connectors with Pay enabled programmatically
        • Implementing your own payment validation webview
        • Confirming payments manually
        • Changing the manual expiration time
        • Changing the maximum amounts for payments
    • ➖Trust
    • ➖Advisory (obsolete)
    • ➖Indicators
    • SCA & connection states
    • Webhooks
    • Advanced
      • Custom connection implementation
      • End-to-end encryption
      • Response signature
  • SDK
    • Connect SDK
    • Powens Connect iOS
  • Reference
    • API Reference
    • Console & Webview documentation
  • Ressources
    • Tools
      • Institutions & capabilities
      • Demo integration
      • Demo product
    • Glossary
  • Changelog
  • Legal notice
Powered by GitBook
On this page
  • Disable automatic payment confirmation
  • Detect if a payment validation requires confirmation
  • Confirm a payment validation
  • Deny a payment validation

Was this helpful?

  1. Integration guides
  2. Pay
  3. Advanced

Confirming payments manually

PreviousImplementing your own payment validation webviewNextChanging the manual expiration time

Last updated 1 year ago

Was this helpful?

For some connectors, it may be possible to have control over the payment confirmation process. This is useful if you want to check that the user is the same at both the beginning and end of the payment validation process, or in some cases, if the updated payment object still corresponds to what you expect.

Note that the confirmation phase of a payment's validation is typically very short, and in most cases, an answer is expected within a minute, or the payment validation is likely to expire.

Disable automatic payment confirmation

By default, your domain automatically confirms payments if necessary. In order to disable this behaviour, you can set the payment.auto_confirmation setting to "0", with the following request:

POST /config
{
  "payment.auto_confirmation": "0"
}

Detect if a payment validation requires confirmation

When receiving a callback from the payer (for example, with one-time payments), you need to poll the payment status. A payment currently awaiting confirmation will have the validating status with the confirm action, as in the following example:

GET /payments/123
{
  "id": 123,
  "state": "validating",
  "action": "confirm",
  ...
}

At this stage, you must run your checks and either confirm or deny the payment.

Confirm a payment validation

To confirm the payment, the following request can be made:

POST /payments/123
{
  "confirm": true
}

Deny a payment validation

To deny the payment, the following request can be made:

POST /payments/123
{
  "confirm": false
}

This changes the payment state to rejected, and if no other error has occurred (such as the payment confirmation request being expired), the error_code will be set to confirmationRefused.

➖
here