Discussions

Ask a Question
Back to All

Trying the Subscription api but keep getting an error for - default_device

Creating customer in PayMongo...
PayMongo Customer creation error: {
errors: [
{
code: 'parameter_invalid',
detail: 'The default_device passed desktop is invalid.',
source: [Object]
}
]
}
POST /api/payments/create-subscription 400 in 816ms

Has anyone experience this? If I removed the default_device the error will be default_device is required. If I put it back with either value desktop or web it would result as invalid.

Not sure what value to put it, per documentation it should allow it but not happening. Stuck on this.