#Has anyone successfully created the dynamic links in test environment?

1 messages · Page 1 of 1 (latest)

ancient condorBOT
#

It seems you are encountering a 401 error, which typically indicates an authentication issue. Here are some steps you can take to resolve this and handle the product ID requirement:

  1. Check Authentication: Ensure that you are using the correct API keys or authentication tokens. A 401 error often means that the credentials provided are invalid or missing. Double-check that you have included the necessary authentication headers in your API requests.

  2. API Key Permissions: Verify that your API key has the necessary permissions to perform the actions you are attempting. If there are restrictions on the key, you may need to adjust the permissions or generate a new key with the appropriate access.

  3. Product ID Requirement: If the API requires a product_id and you don't have a static product ID due to price changes, consider the following:

    • Dynamic Product Creation: Create a new product entry each time the price changes, and use the new product_id for the transaction. This allows you to track payments accurately even if the price varies.
    • Custom Logic: Implement custom logic in your application to handle transactions without a fixed product_id. You might store the transaction details, including the price, in your database and link them to a generic product entry.
  4. Contact Support: If you continue to face issues, consider reaching out to Dodo Payments support for assistance. They can provide specific guidance based on your account and the API usage.

By following these steps, you should be able to address the 401 error and manage transactions with varying product prices effectively.

#

Disclaimer: I am a bot and I may make mistakes. Always refer to the documentation. Here are some of the relevant links that I found regarding your query. [1] [2] [3]

slim topaz
#

explain : Custom Logic: Implement custom logic in your application to handle transactions without a fixed product_id. You might store the transaction details, including the price, in your database and link them to a generic product entry.

azure kestrel
#

Make sure you are using test mode url and test mode api keys