Test Authentication

Report a test-mode authentication outcome

For test-authentication-web, standing in for the wallet's page. The payer's choice is recorded on the attempt (the first one stands) and resolved by the outcome pipeline like a wallet's callback; payments-api hears payment_intent.payment_created. Answers the attempt as the page sees it. Idempotent: a repeat answers the current state. A live attempt is 404.

post/v1/test-authentication/webhooks

Request

  • Base URL
    https://ewallets-api.paymongo.com
  • URL
    https://ewallets-api.paymongo.com/v1/test-authentication/webhooks
  • Auth
    HTTP bearer

Request body

attach_attempt_idstring required
outcome'succeeded' | 'failed' required
reasonstring

Reason is the scenario behind a failure, in the page's vocabulary: recorded, and read into a decline code (an unknown one declines generically).

Example request

{
  "attach_attempt_id": "aa_31286b005f364ee05e510f76",
  "outcome": "failed",
  "reason": "payer_cancelled"
}

Response

The attempt as the page sees it after the report

has_moreboolean

Example response

{
  "data": {
    "attach_attempt_id": "aa_31286b005f364ee05e510f76",
    "status": "pending"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.