Skip to content

Commit

Permalink
update lib to src
Browse files Browse the repository at this point in the history
  • Loading branch information
delower186 committed Jun 24, 2022
1 parent 9526c0b commit 92d8b28
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git clone https://github.com/delower186/2checkout-php.git
Require in your php script.

```php
require_once("/path/to/2checkout-php/lib/Twocheckout.php");
require_once("/path/to/2checkout-php/src/Twocheckout.php");
```

All methods return an Array by default or you can set the format to 'json' to get a JSON response.
Expand Down Expand Up @@ -50,10 +50,6 @@ Twocheckout::format('json');

```



Full documentation for each binding is provided in the **[wiki](https://github.com/2Checkout/2checkout-php/wiki)**.

Example Payment API Usage
-----------------

Expand Down Expand Up @@ -221,7 +217,7 @@ $params = array(
'li_0_name' => 'Test Product',
'li_0_price' => '0.01'
);
Twocheckout_Charge::form($params, 'auto');
TwocheckoutCharge::form($params, 'auto');
```

*Example Response:*
Expand Down Expand Up @@ -285,7 +281,7 @@ $passback = TwocheckoutNotification::check($params, "tango");

Exceptions:
-----------
Twocheckout_Error exceptions are thrown by if an error has returned. It is best to catch these exceptions so that they can be gracefully handled in your application.
TwocheckoutError exceptions are thrown by if an error has returned. It is best to catch these exceptions so that they can be gracefully handled in your application.

*Example Usage*

Expand All @@ -306,5 +302,3 @@ try {
$e->getMessage();
}
```

Full documentation for each binding is provided in the **[wiki](https://github.com/2Checkout/2checkout-php/wiki)**.

0 comments on commit 92d8b28

Please sign in to comment.