Skip to content

Commit 69b8a43

Browse files
Merge pull request #75 from open-pay/develop
Develop
2 parents 7a04ccc + 8ca6c6b commit 69b8a43

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Openpay/Data/Openpay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Openpay
99
private static $id = '';
1010
private static $apiKey = '';
1111
private static $userAgent = '';
12-
private static $country = 'MX';
12+
private static $country;
1313
private static $apiEndpoint = '';
1414
private static $apiSandboxEndpoint = '';
1515
private static $sandboxMode = true;
@@ -21,7 +21,7 @@ public function __construct()
2121

2222
}
2323

24-
public static function getInstance($id = '', $apiKey = '', $country = 'MX', $publicIp)
24+
public static function getInstance($id = '', $apiKey = '', $country, $publicIp)
2525
{
2626
if ($id != '') {
2727
self::setId($id);

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Private key. There are three options:
7979
```php
8080
Openpay::setId('moiep6umtcnanql3jrxp');
8181
Openpay::setApiKey('sk_3433941e467c4875b178ce26348b0fac');
82+
Openpay::setCountry('MX'); // MX, CO, PE
8283
Openpay::setPublicIp('127.0.0.1'); //Tu ip publica
8384
```
8485

0 commit comments

Comments
 (0)