When type is error, read the messages in message.error. They explain what to fix, such as a missing field or an expired token.
- If the access token has expired, ask for a new one and try again.
- If the request is invalid, correct it first. Repeating it unchanged gives the same answer.
- If you are not sure whether a payment went through, check its status rather than creating a new payment.






