/home/kueuepay/public_html/vendor/fakerphp/faker/src/Faker/Provider/tr_TR/PhoneNumber.php
<?php

namespace Faker\Provider\tr_TR;

class PhoneNumber extends \Faker\Provider\PhoneNumber
{
    /**
     * Mixed landline and mobile phone numbers valid for Turkey
     *
     * @see https://en.wikipedia.org/wiki/Telephone_numbers_in_Turkey
     *
     * @var string[]
     */
    protected static $formats = [
        '0212#######',
        '0216#######',
        '0222#######',
        '0224#######',
        '050########',
        '053########',
        '054########',
        '055########',
        '0 212 ### ## ##',
        '0 216 ### ## ##',
        '0 222 ### ## ##',
        '0 224 ### ## ##',
        '0 50# ### ## ##',
        '0 53# ### ## ##',
        '0 54# ### ## ##',
        '0 55# ### ## ##',
        '0 (212) ### ## ##',
        '0 (216) ### ## ##',
        '0 (222) ### ## ##',
        '0 (224) ### ## ##',
        '0 (50#) ### ## ##',
        '0 (53#) ### ## ##',
        '0 (54#) ### ## ##',
        '0 (55#) ### ## ##',
        '+90212#######',
        '+90216#######',
        '+90222#######',
        '+90224#######',
        '+9050########',
        '+9053########',
        '+9054########',
        '+9055########',
        '+90 212 ### ## ##',
        '+90 216 ### ## ##',
        '+90 222 ### ## ##',
        '+90 224 ### ## ##',
        '+90 50# ### ## ##',
        '+90 53# ### ## ##',
        '+90 54# ### ## ##',
        '+90 55# ### ## ##',
        '+90 (212) ### ## ##',
        '+90 (216) ### ## ##',
        '+90 (222) ### ## ##',
        '+90 (224) ### ## ##',
        '+90 (50#) ### ## ##',
        '+90 (53#) ### ## ##',
        '+90 (54#) ### ## ##',
        '+90 (55#) ### ## ##',
    ];

    /**
     * Mixed landline and mobile phone numbers in E164 format valid for Turkey
     *
     * @see https://en.wikipedia.org/wiki/Telephone_numbers_in_Turkey
     *
     * @var string[]
     */
    protected static $e164Formats = [
        '+90212#######',
        '+90216#######',
        '+90222#######',
        '+90224#######',
        '+90226#######',
        '+90228#######',
        '+90232#######',
        '+90236#######',
        '+90242#######',
        '+90246#######',
        '+90248#######',
        '+90252#######',
        '+90256#######',
        '+90258#######',
        '+90262#######',
        '+90264#######',
        '+90266#######',
        '+90272#######',
        '+90274#######',
        '+90276#######',
        '+90282#######',
        '+90284#######',
        '+90286#######',
        '+90288#######',
        '+90312#######',
        '+90318#######',
        '+90322#######',
        '+90324#######',
        '+90326#######',
        '+90328#######',
        '+90332#######',
        '+90338#######',
        '+90342#######',
        '+90344#######',
        '+90346#######',
        '+90348#######',
        '+90352#######',
        '+90354#######',
        '+90356#######',
        '+90358#######',
        '+90362#######',
        '+90364#######',
        '+90366#######',
        '+90368#######',
        '+90370#######',
        '+90372#######',
        '+90374#######',
        '+90376#######',
        '+90378#######',
        '+90380#######',
        '+90382#######',
        '+90384#######',
        '+90386#######',
        '+90388#######',
        '+90412#######',
        '+90414#######',
        '+90416#######',
        '+90422#######',
        '+90424#######',
        '+90426#######',
        '+90428#######',
        '+90432#######',
        '+90434#######',
        '+90436#######',
        '+90438#######',
        '+90442#######',
        '+90446#######',
        '+90452#######',
        '+90454#######',
        '+90456#######',
        '+90458#######',
        '+90462#######',
        '+90464#######',
        '+90466#######',
        '+90472#######',
        '+90474#######',
        '+90476#######',
        '+90478#######',
        '+90482#######',
        '+90484#######',
        '+90486#######',
        '+90488#######',
        '+90501#######',
        '+90502#######',
        '+90503#######',
        '+90504#######',
        '+90505#######',
        '+90506#######',
        '+90507#######',
        '+90530#######',
        '+90531#######',
        '+90532#######',
        '+90533#######',
        '+90534#######',
        '+90535#######',
        '+90536#######',
        '+90537#######',
        '+90538#######',
        '+90539#######',
        '+90541#######',
        '+90542#######',
        '+90543#######',
        '+90544#######',
        '+90545#######',
        '+90546#######',
        '+90549#######',
        '+90551#######',
        '+90552#######',
        '+90553#######',
        '+90554#######',
        '+90555#######',
        '+90556#######',
    ];
}
Access Token

Get Access Token

Get access token to initiates payment transaction.

Endpoint: POST generate-token
Parameter Type Comments
client_id string Enter merchant API client/primary key
secret_id string Enter merchant API secret key
env string Enter merchant API environment
merchant_id string Enter merchant API merchant id
Just request to that endpoint with all parameter listed below:
                    
                        Request Example (guzzle)
                        

<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $base_url. 'v1/generate-token', [
'headers' => [
  'accept' => 'application/json',
  'content-type' => 'application/json',
 ],
'form_params' => [
  'client_id' => '$client_id',
  'secret_id' => 'secret_id',
  'env' => 'env',
  'merchant_id' => 'merchant_id',
 ],
]);
echo $response->getBody();
                    
                        
**Response: SUCCESS (200 OK)**
{
 "message": {
 "success": [
  "Successfully token is generated"
 ]
},
"data": {
 "token":"eyJpdiI6InpkczhjTjhQdVhUL2lKQ0pSUUx6aUE9P
SIsInZhbHVlIjoiVGVBTVBDTXltbjNZcEIvdEJveGpTSno3TU5NRUtn
VkhCZ1pHTFNCUnZGQ2UxMnYxN202cEE1YVRDTEFsc0ZERExoTjdtL0dTL2x
oU3QzeUJJOExiMUx5T0w1L0llUXhTUkU1cWVLWEdEbEplb0dKNXcwbTNRM0
VxdkUwYzZuNFdtNkhMQ0pRZysyNWkvdzBxSlBoSVBSOGFTekNnR2RXNHVtc
G9lMGZOTmNCcm1hR3c5Sk9KTnB4Y3ltZDl6cm90MThrR21Ca3B1azc3bXRi
Q0J6SW96UVo1elNkU1ZqeE05bTcwWGp1MEUxWlJFdnNWTmpSbnVpeW92b2U
4dXZkUGgyb1VmK0luaGdyaFlsVTZlcVpVRnZlTG1DeFF6Ykk2T2h6Z3Jzbn
IyNHpNdHowSE5JdDR0Y0pZT20zUm1XYW8iLCJtYWMiOiJlY2M4NGE1OGUzYz
kzYzk0YzljNmVmNjE0YWI0ZDIwOGI3NDQ2YWEyY2ZhNzc0NzE4ZmY1ZmYyMz
IyZmQzNDY1IiwidGFnIjoiIn0=",
},
"type": "success"
}
                    
                        
**Response: ERROR (400 FAILED)**
{
 "message": {
 "error": [
  "Invalid credentials."
 ]
},
"data": null,
"type": "error"
}