Skip to content

Commit 8ed7fc5

Browse files
authored
Merge pull request #112 from Midtrans/fix-snap-bi-composer
fix: SnapBi namespace autoloading in Composer
2 parents 737ddab + 9ed5ace commit 8ed7fc5

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Midtrans/ApiRequestor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public static function remoteCall($url, $server_key, $data_hash, $method)
9898
CURLOPT_HTTPHEADER => array(
9999
'Content-Type: application/json',
100100
'Accept: application/json',
101-
'User-Agent: midtrans-php-v2.6.1',
101+
'User-Agent: midtrans-php-v2.6.2',
102102
'Authorization: Basic ' . base64_encode($server_key . ':')
103103
),
104104
CURLOPT_RETURNTRANSFER => 1
@@ -183,4 +183,4 @@ private static function processStubed($curl, $url, $server_key, $data_hash, $met
183183

184184
return MT_Tests::$stubHttpResponse;
185185
}
186-
}
186+
}

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "midtrans/midtrans-php",
33
"description": "PHP Wrapper for Midtrans Payment API.",
44
"homepage": "https://midtrans.com",
5-
"version": "2.6.1",
5+
"version": "2.6.2",
66
"type": "library",
77
"license":"MIT",
88
"authors": [
@@ -17,21 +17,26 @@
1717
{
1818
"name": "Ismail Faruqi",
1919
"email": "ismail.faruqi@veritrans.co.id"
20+
},
21+
{
22+
"name": "Muhammad Fauzi Masykur",
23+
"email": "muhammad.masykur@gojek.com"
2024
}
2125
],
2226
"require": {
2327
"php": ">=5.4",
2428
"ext-curl": "*",
2529
"ext-json": "*",
26-
"ext-openssl": "*"
30+
"ext-openssl": "*"
2731
},
2832
"require-dev": {
2933
"phpunit/phpunit": "5.7.*",
3034
"psy/psysh": "0.4.*"
3135
},
3236
"autoload": {
3337
"psr-4": {
34-
"Midtrans\\": "Midtrans/"
38+
"Midtrans\\": "Midtrans/",
39+
"SnapBi\\": "SnapBi/"
3540
}
3641
},
3742
"autoload-dev": {

0 commit comments

Comments
 (0)