HTTP 400 · Bad Request
PAYMENT_PROVIDER_INVALID
The specified payment provider is invalid.
HTTP 400
Payments / Stars
When & why it happens
The supplied payment provider is malformed, points to nothing the server recognises, or fails a server-side validity check.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "PAYMENT_PROVIDER_INVALID" {
// handle this error
}
}
Related errors
INVOICE_PAYLOAD_INVALIDThe specified invoice payload is invalid.PAYMENT_UNSUPPORTEDThis payment method is not acceptable.PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.PREMIUM_CURRENTLY_UNAVAILABLEPremium is currently unavailable.PREMIUM_SUB_ACTIVE_UNTIL_XYou already have a premium subscription active until unixtime %v.