<?php
namespace Faker\Provider\sv_SE;
/**
* @see https://www.pts.se/sv/bransch/telefoni/nummer-och-adressering/telefoninummerplanen/telefonnummers-struktur/
*/
class PhoneNumber extends \Faker\Provider\PhoneNumber
{
/**
* @var array Swedish phone number formats
*/
protected static $formats = [
'08-### ### ##',
'0%#-### ## ##',
'0%########',
'+46 (0)%## ### ###',
'+46(0)%########',
'+46 %## ### ###',
'+46%########',
'08-### ## ##',
'0%#-## ## ##',
'0%##-### ##',
'0%#######',
'+46 (0)8 ### ## ##',
'+46 (0)%# ## ## ##',
'+46 (0)%## ### ##',
'+46 (0)%#######',
'+46(0)%#######',
'+46%#######',
'08-## ## ##',
'0%#-### ###',
'0%#######',
'+46 (0)%######',
'+46(0)%######',
'+46%######',
];
/**
* @var array<int, string> Swedish mobile number formats
*/
protected static array $mobileFormats = [
'+467########',
'+46(0)7########',
'+46 (0)7## ## ## ##',
'+46 (0)7## ### ###',
'07## ## ## ##',
'07## ### ###',
'07##-## ## ##',
'07##-### ###',
'07# ### ## ##',
'07#-### ## ##',
'07#-#######',
];
public function mobileNumber(): string
{
$format = static::randomElement(static::$mobileFormats);
return self::numerify($this->generator->parse($format));
}
}
Checks the status of a payment.
**Response: SUCCESS (200 OK)**
{
"message": {
"success": [
"Success"
]
},
"data": {
"token": "2zMRmT3KeYT2BWMAyGhqEfuw4tOYOfGXKeyKqehZ8mF1E35hMwE69gPpyo3e",
"trx_id": "CP44657864",
"payer": {
"username": "testuser",
"email": "user@appdevs.net"
}
"status": "Test",
},
"type": "success"
}