> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alignet.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Yape authorization

> Configure method_details for Ecommerce payments with Yape.

For Yape, the Ecommerce authorization `method_details` object identifies the wallet holder and validation code.

## Main fields

| Field                | Required | Use                                        |
| -------------------- | -------- | ------------------------------------------ |
| `callback_url`       | No       | Host-to-host notification URL.             |
| `phone`              | Yes      | Object containing the holder's phone data. |
| `phone.country_code` | Yes      | Country calling code.                      |
| `phone.subscriber`   | Yes      | Phone number.                              |
| `otp`                | Yes      | OTP generated by the Yape wallet.          |

<Steps>
  <Step title="Collect buyer data">Request the phone associated with Yape and the OTP for the payment attempt.</Step>
  <Step title="Build method_details">Include `phone`, `otp`, and an HTTPS `callback_url` when applicable.</Step>
  <Step title="Process the response">Keep the operation identifiers for later queries, cancellations, or reconciliation.</Step>
</Steps>

<Warning>Do not store or reuse the OTP. Use it only for the operation for which it was generated.</Warning>
